diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-12-16 21:40:16 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-12-16 21:40:16 +0000 |
commit | 18b7d82e960b6254f5cf99b5ccf2641aa4cc7c3f (patch) | |
tree | 737e651273778d99f30c18e3e6ecd09bb8686ec6 /clang/test/Index/keep-going.cpp | |
parent | 91ad7a9b69ba7d061fd95830bd509ef9fa92583d (diff) | |
download | bcm5719-llvm-18b7d82e960b6254f5cf99b5ccf2641aa4cc7c3f.tar.gz bcm5719-llvm-18b7d82e960b6254f5cf99b5ccf2641aa4cc7c3f.zip |
[libclang] Restore the CXXRecordDecl path for clang_Type_getNumTemplateArguments and clang_Type_getTemplateArgumentAsType
Patch by Emilio Cobos Álvarez!
See https://reviews.llvm.org/D26907
llvm-svn: 289995
Diffstat (limited to 'clang/test/Index/keep-going.cpp')
-rw-r--r-- | clang/test/Index/keep-going.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Index/keep-going.cpp b/clang/test/Index/keep-going.cpp index a25d1c4b041..82987c6cf13 100644 --- a/clang/test/Index/keep-going.cpp +++ b/clang/test/Index/keep-going.cpp @@ -19,10 +19,10 @@ class C : public A<float> { }; // CHECK: FieldDecl=a:4:13 (Definition) [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0] // CHECK: TypeRef=T:3:16 [type=T] [typekind=Unexposed] [canonicaltype=type-parameter-0-0] [canonicaltypekind=Unexposed] [isPOD=0] // CHECK: ClassDecl=B:6:7 (Definition) [type=B] [typekind=Record] [isPOD=0] -// CHECK: C++ base class specifier=A<int>:4:7 [access=public isVirtual=false] [type=A<int>] [typekind=Unexposed] [canonicaltype=A<int>] [canonicaltypekind=Record] [templateargs/1= [type=int] [typekind=Int]] [isPOD=0] [nbFields=1] +// CHECK: C++ base class specifier=A<int>:4:7 [access=public isVirtual=false] [type=A<int>] [typekind=Unexposed] [templateargs/1= [type=int] [typekind=Int]] [canonicaltype=A<int>] [canonicaltypekind=Record] [canonicaltemplateargs/1= [type=int] [typekind=Int]] [isPOD=0] [nbFields=1] // CHECK: TemplateRef=A:4:7 [type=] [typekind=Invalid] [isPOD=0] // CHECK: ClassDecl=C:10:7 (Definition) [type=C] [typekind=Record] [isPOD=0] -// CHECK: C++ base class specifier=A<float>:4:7 [access=public isVirtual=false] [type=A<float>] [typekind=Unexposed] [canonicaltype=A<float>] [canonicaltypekind=Record] [templateargs/1= [type=float] [typekind=Float]] [isPOD=0] [nbFields=1] +// CHECK: C++ base class specifier=A<float>:4:7 [access=public isVirtual=false] [type=A<float>] [typekind=Unexposed] [templateargs/1= [type=float] [typekind=Float]] [canonicaltype=A<float>] [canonicaltypekind=Record] [canonicaltemplateargs/1= [type=float] [typekind=Float]] [isPOD=0] [nbFields=1] // CHECK: TemplateRef=A:4:7 [type=] [typekind=Invalid] [isPOD=0] // CHECK-DIAG: keep-going.cpp:1:10: error: 'missing1.h' file not found |