Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

AnnotateAttr templated test

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.23 sec, absolute service time: 0,24 sec 
edit mode |  history  | discussion
Error(s):
TranslationUnitDecl 0x215f160 <<invalid sloc>> <invalid sloc>
|-TypedefDecl 0x215f698 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128'
| `-BuiltinType 0x215f3b0 '__int128'
|-TypedefDecl 0x215f6f8 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128'
| `-BuiltinType 0x215f3d0 'unsigned __int128'
|-TypedefDecl 0x215f788 <<invalid sloc>> <invalid sloc> implicit __builtin_ms_va_list 'char *'
| `-PointerType 0x215f750 'char *'
|   `-BuiltinType 0x215f1f0 'char'
|-TypedefDecl 0x215faa8 <<invalid sloc>> <invalid sloc> implicit __builtin_va_list 'struct __va_list_tag [1]'
| `-ConstantArrayType 0x215fa50 'struct __va_list_tag [1]' 1 
|   `-RecordType 0x215f870 'struct __va_list_tag'
|     `-CXXRecord 0x215f7d8 '__va_list_tag'
|-ClassTemplateDecl 0x215fc40 <source_file.cpp:2:1, line:6:1> line:3:8 Test
| |-TemplateTypeParmDecl 0x215faf8 <line:2:11, col:20> col:20 typename Trait
| |-CXXRecordDecl 0x215fbb0 <line:3:1, line:6:1> line:3:8 struct Test definition
| | |-CXXRecordDecl 0x21aca10 <col:1, col:8> col:8 implicit struct Test
| | `-FieldDecl 0x21acb98 <line:5:5, col:9> col:9 a 'int'
| |   |-AnnotateAttr 0x21acbe0 <col:71, col:97> "testAnnotation2"
| |   `-AnnotateAttr 0x21acc30 <col:26, col:52> "testAnnotation1"
| |-ClassTemplateSpecializationDecl 0x21acdd8 <line:2:1, line:6:1> line:3:8 struct Test definition
| | |-TemplateArgument type 'int'
| | |-CXXRecordDecl 0x21ad048 prev 0x21acdd8 <col:1, col:8> col:8 implicit struct Test
| | |-FieldDecl 0x21ad0d8 <line:5:5, col:9> col:9 referenced a 'int'
| | | |-AnnotateAttr 0x21ad148 <col:71> "testAnnotation2"
| | | `-AnnotateAttr 0x21ad198 <col:26> "testAnnotation1"
| | |-CXXConstructorDecl 0x21ad1e0 <line:3:8> col:8 implicit used Test 'void (void) throw()' inline
| | | `-CompoundStmt 0x21ad520 <col:8>
| | `-CXXConstructorDecl 0x21ad338 <col:8> col:8 implicit Test 'void (const struct Test<int> &)' inline noexcept-unevaluated 0x21ad338
| |   `-ParmVarDecl 0x21ad480 <col:8> col:8 'const struct Test<int> &'
| `-ClassTemplateSpecializationDecl 0x21ad590 <line:2:1, line:6:1> line:3:8 struct Test definition
|   |-TemplateArgument type '_Bool'
|   |-CXXRecordDecl 0x21ad7f8 prev 0x21ad590 <col:1, col:8> col:8 implicit struct Test
|   |-FieldDecl 0x21ad888 <line:5:5, col:9> col:9 referenced a 'int'
|   | |-AnnotateAttr 0x21ad8f8 <col:71> "testAnnotation2"
|   | `-AnnotateAttr 0x21ad948 <col:26> "testAnnotation1"
|   |-CXXConstructorDecl 0x21b4ef0 <line:3:8> col:8 implicit used Test 'void (void) throw()' inline
|   | `-CompoundStmt 0x21b51c8 <col:8>
|   `-CXXConstructorDecl 0x21b5018 <col:8> col:8 implicit Test 'void (const struct Test<_Bool> &)' inline noexcept-unevaluated 0x21b5018
|     `-ParmVarDecl 0x21b5160 <col:8> col:8 'const struct Test<_Bool> &'
`-FunctionDecl 0x21accb0 <line:8:1, line:13:1> line:8:5 main 'int (void)'
  `-CompoundStmt 0x21b54a8 <line:9:1, line:13:1>
    |-DeclStmt 0x21ad568 <line:10:5, col:16>
    | `-VarDecl 0x21acf88 <col:5, col:15> col:15 used t 'Test<int>':'struct Test<int>' callinit
    |   `-CXXConstructExpr 0x21ad538 <col:15> 'Test<int>':'struct Test<int>' 'void (void) throw()'
    |-DeclStmt 0x21b5210 <line:11:5, col:18>
    | `-VarDecl 0x21ad738 <col:5, col:16> col:16 used t2 'Test<_Bool>':'struct Test<_Bool>' callinit
    |   `-CXXConstructExpr 0x21b51e0 <col:16> 'Test<_Bool>':'struct Test<_Bool>' 'void (void) throw()'
    `-ReturnStmt 0x21b5490 <line:12:5, col:21>
      `-BinaryOperator 0x21b5318 <col:12, col:21> 'int' '+'
        |-ImplicitCastExpr 0x21b52e8 <col:12, col:14> 'int' <LValueToRValue>
        | `-MemberExpr 0x21b5250 <col:12, col:14> 'int' lvalue .a 0x21ad0d8
        |   `-DeclRefExpr 0x21b5228 <col:12> 'Test<int>':'struct Test<int>' lvalue Var 0x21acf88 't' 'Test<int>':'struct Test<int>'
        `-ImplicitCastExpr 0x21b5300 <col:18, col:21> 'int' <LValueToRValue>
          `-MemberExpr 0x21b52b0 <col:18, col:21> 'int' lvalue .a 0x21ad888
            `-DeclRefExpr 0x21b5288 <col:18> 'Test<_Bool>':'struct Test<_Bool>' lvalue Var 0x21ad738 't2' 'Test<_Bool>':'struct Test<_Bool>'