llvm-project/clang/tools/libclang
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
..
ARCMigrate.cpp
BuildSystem.cpp [llvm] Cleanup header dependencies in ADT and Support 2022-01-21 13:54:49 +01:00
CIndex.cpp Reland "[AST] Add a new TemplateKind for template decls found via a using decl."" 2022-04-14 11:04:55 +02:00
CIndexCXX.cpp
CIndexCodeCompletion.cpp [CodeCompletion] Signature help for braced constructor calls 2022-01-03 20:14:59 +01:00
CIndexDiagnostic.cpp
CIndexDiagnostic.h
CIndexHigh.cpp [clang] Use llvm::is_contained (NFC) 2021-10-13 20:41:55 -07:00
CIndexInclusionStack.cpp SourceManager: Clarify that FileInfo always has a ContentCache, NFC 2020-10-23 12:38:53 -04:00
CIndexUSRs.cpp
CIndexer.cpp [SystemZ][z/OS] Set more text files as text 2021-04-19 09:31:46 -04:00
CIndexer.h
CLog.h
CMakeLists.txt [clang][cmake] Use `GNUInstallDirs` to support custom installation dirs 2022-01-21 23:58:08 +00:00
CXComment.cpp
CXComment.h
CXCompilationDatabase.cpp
CXCursor.cpp [OpenMP] Initial parsing/sema for the 'omp target parallel loop' construct 2022-03-24 09:19:00 -07:00
CXCursor.h
CXIndexDataConsumer.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
CXIndexDataConsumer.h [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
CXLoadedDiagnostic.cpp [clang] Remove redundant member initialization (NFC) 2022-01-02 10:20:23 -08:00
CXLoadedDiagnostic.h
CXSourceLocation.cpp
CXSourceLocation.h [libclang] Fix error handler in translateSourceLocation. 2021-06-18 13:43:14 +01:00
CXStoredDiagnostic.cpp
CXString.cpp
CXString.h
CXTranslationUnit.h
CXType.cpp [Attr] Fix a btf_type_tag AST generation 2022-03-16 08:46:52 -07:00
CXType.h [clang] Remove unused forward declarations (NFC) 2022-01-09 12:21:00 -08:00
CursorVisitor.h [libclang]: visit BindingDecl in DecompositionDecl 2020-05-02 22:18:31 +02:00
FatalErrorHandler.cpp [clang] FatalErrorHandler.cpp - add explicit <stdio.h> include 2021-10-05 17:03:17 +01:00
Index_Internal.h
Indexing.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
Rewrite.cpp [libclang] Add CXRewriter to libclang API 2020-09-04 14:17:03 -07:00
libclang.map [clang] Fix libclang linking on Solaris 2021-08-07 21:14:15 +02:00
linker-script-to-export-list.py libclang: Fixes for the python script that generates the export list 2021-07-26 18:39:53 -07:00