-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert CStyleCastExpr <ToVoid> to _ #393
Labels
Comments
I'm not sure what this issue is for? |
In according to
/*
** This is the callback routine from sqlite3_exec() that appends all
** output onto the end of a ShellText object.
*/
static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){
ShellText *p = (ShellText*)pArg;
int i;
UNUSED_PARAMETER(az);
if( azArg==0 ) return 0;
//..... /*
** Used to prevent warnings about unused parameters
*/
#define UNUSED_PARAMETER(x) (void)(x) Example of C code for tests: int main(){
char **az;
(void)(az);
return 0;
} In AST:
Result of Go code: package main
func main() {
__init()
var az [][]byte
(az)
return
}
func __init() {
}
|
In according to SQLITE_PRIVATE sqlite3_int64 sqlite3StatusValue(int op){
wsdStatInit;
assert( op>=0 && op<ArraySize(wsdStat.nowValue) );
assert( op>=0 && op<ArraySize(statMutex) );
assert( sqlite3_mutex_held(statMutex[op] ? sqlite3Pcache1Mutex()
: sqlite3MallocMutex()) );
return wsdStat.nowValue[op];
} In AST tree:
Go result: func sqlite3StatusValue(op int) sqlite3_int64 {
(0)
(0)
(0)
return sqlite3Stat.nowValue[op]
} |
In my point of view, in Go interpretation it is like : |
elliotchance
pushed a commit
that referenced
this issue
Dec 9, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example in clang AST tree:
The text was updated successfully, but these errors were encountered: