[cfe-users] Implicit or explicit public inheritance in the AST

2020-06-08 Thread Csaba Raduly via cfe-users
Hi all, If I run `clang++ -std=c++17 -Xclang -ast-dump` on the following code: struct B {}; struct D1 : B {}; struct D2 : public B {}; the output is |-CXXRecordDecl 0x8000bdd48 col:8 referenced struct B definition | |-DefinitionData pass_in_registers empty aggregate standard_layout trivially

Re: [cfe-users] Implicit or explicit public inheritance in the AST

2020-06-08 Thread David Blaikie via cfe-users
Looks like comparing getAccessSpecifierAsWritten with getAccessSpecifier might help: https://clang.llvm.org/doxygen/classclang_1_1CXXBaseSpecifier.html#a6abcd6d5d707f4cab88bab1fc916bfad On Mon, Jun 8, 2020 at 1:09 PM Csaba Raduly via cfe-users wrote: > > Hi all, > > If I run `clang++ -std=c++17 -