cppast icon indicating copy to clipboard operation
cppast copied to clipboard

Inconsistency when using C++11 `friend` syntax for types

Open foonathan opened this issue 8 years ago • 0 comments

  • cppast version: latest one
  • parser: libclang_parser
  • clang version: 4.0

C++11 introduced a new syntax to mark types as friends, friend foo instead of friend class foo. When parsing friend foo it will be treated as if friend class foo was written. But when parsing friend ns::foo, it will be detected properly.

foonathan avatar Apr 18 '17 14:04 foonathan