[AST/index] Introduce an option 'SuppressTemplateArgsInCXXConstructors' in printing...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 15 Feb 2016 01:32:36 +0000 (01:32 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 15 Feb 2016 01:32:36 +0000 (01:32 +0000)
commitd5719084451ae227c75b2db7078162f921a5a823
tree116afc1d5b03c81f8ef41ea2785233b6673b78eb
parent9b0ac3345716b686ad09b613b627d4f97c87d58f
[AST/index] Introduce an option 'SuppressTemplateArgsInCXXConstructors' in printing policy.

Enable it for USRs and names when indexing.
Forward references can have different template argument names; including them
makes USRs and names unstable, since the name depends on whether we saw a forward reference or not.

llvm-svn: 260866
clang/include/clang/AST/PrettyPrinter.h
clang/include/clang/Index/IndexSymbol.h
clang/lib/AST/DeclarationName.cpp
clang/lib/Index/IndexSymbol.cpp
clang/lib/Index/USRGeneration.cpp
clang/test/Index/Core/index-source.cpp [new file with mode: 0644]
clang/tools/c-index-test/core_main.cpp