summaryrefslogtreecommitdiffstats
path: root/clang/test/InterfaceStubs/class-template-partial-specialization.cpp
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2019-11-08 20:21:28 -0500
committerPuyan Lotfi <puyan@puyan.org>2019-11-08 20:27:25 -0500
commit79e345fbcc822e914fac4838dd7a4f2ddbb5fcad (patch)
treea007b24aaf5ccb73bfb0cf11b2de761c097c913c /clang/test/InterfaceStubs/class-template-partial-specialization.cpp
parentb11391bb47d6fb75639c331378440b405e64be7a (diff)
downloadbcm5719-llvm-79e345fbcc822e914fac4838dd7a4f2ddbb5fcad.tar.gz
bcm5719-llvm-79e345fbcc822e914fac4838dd7a4f2ddbb5fcad.zip
[clang][IFS] Adds support for more decl types in clang interface stubs.
Adding support for processing the following Decls: NonTypeTemplateParmDecl, CXXConversionDecl, UnresolvedUsingValueDecl, UsingDecl, UsingShadowDecl, TypeAliasTemplateDecl, TypeAliasDecl, VarTemplateDecl, VarTemplateSpecializationDecl, UsingDirectiveDecl, TemplateTemplateParmDecl, ClassTemplatePartialSpecializationDecl, IndirectFieldDecl. Also, this allows for processing NamedDecls that don't have an identifier and skips over VarDecls that are dependent on template types. Differential Revision: https://reviews.llvm.org/D69995
Diffstat (limited to 'clang/test/InterfaceStubs/class-template-partial-specialization.cpp')
-rw-r--r--clang/test/InterfaceStubs/class-template-partial-specialization.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/InterfaceStubs/class-template-partial-specialization.cpp b/clang/test/InterfaceStubs/class-template-partial-specialization.cpp
new file mode 100644
index 00000000000..ae6e7bf2458
--- /dev/null
+++ b/clang/test/InterfaceStubs/class-template-partial-specialization.cpp
@@ -0,0 +1,11 @@
+// RUN: %clang -c -o - -emit-interface-stubs %s | FileCheck %s
+
+// CHECK: --- !experimental-ifs-v1
+// CHECK-NEXT: IfsVersion: 1.0
+// CHECK-NEXT: Triple: x86_64-unknown-linux-gnu
+// CHECK-NEXT: ObjectFileFormat: ELF
+// CHECK-NEXT: Symbols:
+// CHECK-NEXT: ...
+
+template<typename> struct S7 { };
+template<typename T> struct S7<T&> { }; \ No newline at end of file
OpenPOWER on IntegriCloud