Skip to content

Instantly share code, notes, and snippets.

@ofan
Last active December 19, 2015 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ofan/5936601 to your computer and use it in GitHub Desktop.
Save ofan/5936601 to your computer and use it in GitHub Desktop.
"const char * char_const_p_;" will give:
<cdecl id="376" addr="0x101780ac0" >
<attributelist id="377" addr="0x101780ac0" >
...
// Difference
<attribute name="decl" value="p." id="380" addr="0x1017823c0" />
<attribute name="type" value="q(const).char" id="382" addr="0x1017823c0" />
...
</attributelist >
</cdecl >
"char* const char_p_const_;" will give:
<cdecl id="385" addr="0x101780c80" >
<attributelist id="386" addr="0x101780c80" >
...
// Difference
<attribute name="decl" value="q(const).p." id="389" addr="0x1017823c0" />
<attribute name="type" value="char" id="393" addr="0x1017823c0" />
...
</attributelist >
</cdecl >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment