Changeset View
Changeset View
Standalone View
Standalone View
clang/test/AST/ast-dump-decl.cpp
Show First 20 Lines • Show All 601 Lines • ▼ Show 20 Lines | namespace testCanonicalTemplate { | ||||
// CHECK: VarTemplateSpecializationDecl 0x{{.+}} <{{.+}}:[[@LINE-21]]:28, col:43> col:43 referenced TestVarTemplate 'const int':'const int' static | // CHECK: VarTemplateSpecializationDecl 0x{{.+}} <{{.+}}:[[@LINE-21]]:28, col:43> col:43 referenced TestVarTemplate 'const int':'const int' static | ||||
// CHECK-NEXT:`-TemplateArgument type 'int' | // CHECK-NEXT:`-TemplateArgument type 'int' | ||||
// CHECK-NEXT: `-BuiltinType 0x{{.+}} 'int' | // CHECK-NEXT: `-BuiltinType 0x{{.+}} 'int' | ||||
// CHECK: VarTemplateDecl 0x{{.+}} parent 0x{{.+}} prev 0x{{.+}} <{{.+}}:[[@LINE-23]]:3, line:[[@LINE-22]]:34> col:14 TestVarTemplate | // CHECK: VarTemplateDecl 0x{{.+}} parent 0x{{.+}} prev 0x{{.+}} <{{.+}}:[[@LINE-23]]:3, line:[[@LINE-22]]:34> col:14 TestVarTemplate | ||||
// CHECK-NEXT: |-TemplateTypeParmDecl 0x{{.+}} <line:[[@LINE-24]]:12, col:21> col:21 referenced typename depth 0 index 0 T | // CHECK-NEXT: |-TemplateTypeParmDecl 0x{{.+}} <line:[[@LINE-24]]:12, col:21> col:21 referenced typename depth 0 index 0 T | ||||
// CHECK-NEXT: |-VarDecl 0x{{.+}} parent 0x{{.+}} prev 0x{{.+}} <line:[[@LINE-24]]:3, col:34> col:14 TestVarTemplate 'const T' cinit | // CHECK-NEXT: |-VarDecl 0x{{.+}} parent 0x{{.+}} prev 0x{{.+}} <line:[[@LINE-24]]:3, col:34> col:14 TestVarTemplate 'const T' cinit | ||||
// CHECK-NEXT: | `-InitListExpr 0x{{.+}} <col:32, col:34> 'void' | // CHECK-NEXT: | `-InitListExpr 0x{{.+}} <col:32, col:34> '<dependent type>' | ||||
// CHECK-NEXT: |-VarTemplateSpecialization 0x{{.+}} 'TestVarTemplate' 'const int':'const int' | // CHECK-NEXT: |-VarTemplateSpecialization 0x{{.+}} 'TestVarTemplate' 'const int':'const int' | ||||
// CHECK-NEXT: `-VarTemplateSpecialization 0x{{.+}} 'TestVarTemplate' 'const int':'const int' | // CHECK-NEXT: `-VarTemplateSpecialization 0x{{.+}} 'TestVarTemplate' 'const int':'const int' | ||||
// CHECK: VarTemplateSpecializationDecl 0x{{.+}} parent 0x{{.+}} prev 0x{{.+}} <{{.+}}:[[@LINE-29]]:3, col:34> col:14 referenced TestVarTemplate 'const int':'const int' cinit | // CHECK: VarTemplateSpecializationDecl 0x{{.+}} parent 0x{{.+}} prev 0x{{.+}} <{{.+}}:[[@LINE-29]]:3, col:34> col:14 referenced TestVarTemplate 'const int':'const int' cinit | ||||
// CHECK-NEXT: |-TemplateArgument type 'int' | // CHECK-NEXT: |-TemplateArgument type 'int' | ||||
// CHECK-NEXT: | `-BuiltinType 0x{{.+}} 'int' | // CHECK-NEXT: | `-BuiltinType 0x{{.+}} 'int' | ||||
// CHECK-NEXT: `-InitListExpr 0x{{.+}} <col:32, col:34> 'int':'int' | // CHECK-NEXT: `-InitListExpr 0x{{.+}} <col:32, col:34> 'int':'int' | ||||
} | } | ||||
template <class T> | template <class T> | ||||
class TestClassScopeFunctionSpecialization { | class TestClassScopeFunctionSpecialization { | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |