cppast icon indicating copy to clipboard operation
cppast copied to clipboard

Expression of default values is always `cpp_unexposed_expression`

Open foonathan opened this issue 8 years ago • 0 comments

  • cppast version: latest one
  • parser: libclang_parser
  • clang version: 3.9.1+

The default value of a function parameter, template non type parameter and the initializer of a (member) variable is not exposed. This is due to an ambiguity when parsing the children of the libclang cursor, there is no way to distinguish between the expression in the array size and the expression of the initializer.

Also see #7.

foonathan avatar Apr 18 '17 14:04 foonathan