summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/print-display-names.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2019-11-14 14:16:14 +0100
committerSam McCall <sam.mccall@gmail.com>2019-11-15 10:40:38 +0100
commit87054ec07bd57719b9f66bf0548d7ac8019799f5 (patch)
tree6b68b5c0bcd9e64d3d095414939c7bd4c7ea9a4b /clang/test/Index/print-display-names.cpp
parentc42e3851356724e1df15f785ae29a2d4b4e4b289 (diff)
downloadbcm5719-llvm-87054ec07bd57719b9f66bf0548d7ac8019799f5.tar.gz
bcm5719-llvm-87054ec07bd57719b9f66bf0548d7ac8019799f5.zip
[AST] Use written names instead of `type-param-0-0` in more cases when printing types and decls.
Summary: This doesn't cover decls in diagnostics, which use NamedDecl::getNameForDiagnostic(). (That should also be fixed later I think). This covers some cases of https://github.com/clangd/clangd/issues/76 (hover, but not outline or sighelp) Reviewers: hokein Subscribers: ilya-biryukov, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D70236
Diffstat (limited to 'clang/test/Index/print-display-names.cpp')
-rw-r--r--clang/test/Index/print-display-names.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/print-display-names.cpp b/clang/test/Index/print-display-names.cpp
index 958948df538..ff221e1907c 100644
--- a/clang/test/Index/print-display-names.cpp
+++ b/clang/test/Index/print-display-names.cpp
@@ -22,7 +22,7 @@ template<> void g<int>(ClassTmpl<int, int>);
// RUN: env CINDEXTEST_PRINTINGPOLICY_TERSEOUTPUT=1 c-index-test -test-load-source all-pretty %s | FileCheck %s --check-prefix=PRETTY
// PRETTY: print-display-names.cpp:2:7: ClassTemplate=template <typename T, typename> class ClassTmpl {}:2:7 (Definition) Extent=[1:1 - 2:20]
// PRETTY: print-display-names.cpp:4:13: TypedefDecl=typedef int Integer:4:13 (Definition) Extent=[4:1 - 4:20]
-// PRETTY: print-display-names.cpp:6:16: ClassDecl=template<> class ClassTmpl<int, int> {}:6:16 (Definition) [Specialization of ClassTmpl:2:7] Extent=[6:1 - 6:43]
+// PRETTY: print-display-names.cpp:6:16: ClassDecl=template<> class ClassTmpl<Integer, Integer> {}:6:16 (Definition) [Specialization of ClassTmpl:2:7] Extent=[6:1 - 6:43]
// PRETTY: print-display-names.cpp:8:6: FunctionDecl=void f(ClassTmpl<float, Integer> p):8:6 Extent=[8:1 - 8:36]
// PRETTY: print-display-names.cpp:8:34: ParmDecl=ClassTmpl<float, Integer> p:8:34 (Definition) Extent=[8:8 - 8:35]
// PRETTY: print-display-names.cpp:11:6: FunctionTemplate=template <typename T> void g(ClassTmpl<T, T>):11:6 Extent=[10:1 - 11:24]
OpenPOWER on IntegriCloud