llvm-project/clang/tools
Haojian Wu 6ba1b9075d Reland "[AST] Add a new TemplateKind for template decls found via a using decl.""
This is the template version of https://reviews.llvm.org/D114251.

This patch introduces a new template name kind (UsingTemplateName). The
UsingTemplateName stores the found using-shadow decl (and underlying
template can be retrieved from the using-shadow decl). With the new
template name, we can be able to find the using decl that a template
typeloc (e.g. TemplateSpecializationTypeLoc) found its underlying template,
which is useful for tooling use cases (include cleaner etc).

This patch merely focuses on adding the node to the AST.

Next steps:
- support using-decl in qualified template name;
- update the clangd and other tools to use this new node;
- add ast matchers for matching different kinds of template names;

Differential Revision: https://reviews.llvm.org/D123127
2022-04-14 11:04:55 +02:00
..
amdgpu-arch [amdgpu-arch] Guard hsa.h with __has_include 2021-05-10 07:33:30 +00:00
apinotes-test [Support] Don't include VirtualFileSystem.h in CommandLine.h 2021-04-21 10:19:01 -04:00
arcmt-test [NFC] Reordering parameters in getFile and getFileOrSTDIN 2021-03-25 09:47:49 -04:00
c-arcmt-test
c-index-test Add some function prototypes; NFC 2022-04-08 19:55:19 -04:00
clang-check [clang-check] Adjust argument adjusters for clang-check to strip options blocking the static analyzer 2022-01-14 10:05:47 +01:00
clang-diff clang-{tools,unittests}: Stop using SourceManager::getBuffer, NFC 2020-10-15 00:35:16 -04:00
clang-extdef-mapping [analyzer][ctu] Only import const and trivial VarDecls 2022-04-01 13:49:39 +02:00
clang-format [clang-format] Pass return code of git-clang-format by sys.exit() 2022-04-05 09:52:01 -07:00
clang-format-vs
clang-fuzzer Remove redundant return and continue statements (NFC) 2021-12-24 23:17:54 -08:00
clang-import-test Reland "[clang-repl] Implement partial translation units and error recovery." 2021-07-12 15:21:22 +00:00
clang-linker-wrapper [OpenMP] Do not use the default pipeline without optimizations 2022-04-11 17:27:38 -04:00
clang-nvlink-wrapper [clang][cmake] Use `GNUInstallDirs` to support custom installation dirs 2022-01-21 23:58:08 +00:00
clang-offload-bundler [clang-offload-bundler] fix "no output file" issue with -outputs 2022-04-08 17:11:27 +00:00
clang-offload-wrapper [clang-offload-wrapper] Disabled ELF offload notes embedding by default. 2021-08-18 08:18:03 -07:00
clang-refactor Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
clang-rename [clang][cmake] Use `GNUInstallDirs` to support custom installation dirs 2022-01-21 23:58:08 +00:00
clang-repl Let clang-repl link privately against Clang components 2022-03-28 23:53:53 +02:00
clang-scan-deps [clang][deps] Remove '-fmodules-cache-path=' arguments 2022-03-12 11:42:07 +01:00
clang-shlib [CMake] Don't use -Bsymbolic-functions for MinGW targets 2021-06-30 22:54:26 +03:00
diag-build [clang] Use portable "#!/usr/bin/env bash" shebang for tools and utils. 2021-09-23 21:16:43 +05:30
diagtool Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
driver [NFC][MC] remove unused argument `MCRegisterInfo` in `MCCodeEmitter` 2022-02-16 13:10:09 +08:00
include-mapping [clangd] NFC: Move stdlib headers handling to Clang 2022-02-09 11:05:39 +01:00
libclang Reland "[AST] Add a new TemplateKind for template decls found via a using decl."" 2022-04-14 11:04:55 +02:00
scan-build [clang][scan-build] Change mode of installation for scan-build.1 2022-03-02 13:12:08 +01:00
scan-build-py [scan-build] Fix deadlock at failures in libears/ear.c 2022-02-02 12:55:44 +01:00
scan-view [clang][cmake] Use `GNUInstallDirs` to support custom installation dirs 2022-01-21 23:58:08 +00:00
CMakeLists.txt Reapply [pseudo] Move pseudoparser from clang to clang-tools-extra" 2022-03-16 01:10:55 +01:00