llvm-project/clang-tools-extra/clang-tidy/hicpp
Matheus Izvekov bcd9ba2b7e
[clang] Track the templated entity in type substitution.
This is a change to how we represent type subsitution in the AST.
Instead of only storing the replaced type, we track the templated
entity we are substituting, plus an index.
We modify MLTAL to track the templated entity at each level.

Otherwise, it's much more expensive to go from the template parameter back
to the templated entity, and not possible to do in some cases, as when
we instantiate outer templates, parameters might still reference the
original entity.

This also allows us to very cheaply lookup the templated entity we saw in
the naming context and find the corresponding argument it was replaced
from, such as for implementing template specialization resugaring.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Differential Revision: https://reviews.llvm.org/D131858
2022-10-15 22:08:36 +02:00
..
CMakeLists.txt
ExceptionBaseclassCheck.cpp [clang] Track the templated entity in type substitution. 2022-10-15 22:08:36 +02:00
ExceptionBaseclassCheck.h [clang-tidy][docs] Fix a couple of missed cases from 6e566bc552 2022-06-22 21:37:16 +01:00
HICPPTidyModule.cpp
LICENSE.TXT
MultiwayPathsCoveredCheck.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
MultiwayPathsCoveredCheck.h [clang-tidy][docs] Fix a couple of missed cases from 6e566bc552 2022-06-22 21:37:16 +01:00
NoAssemblerCheck.cpp
NoAssemblerCheck.h [clang-tidy][docs] Fix a couple of missed cases from 6e566bc552 2022-06-22 21:37:16 +01:00
SignedBitwiseCheck.cpp [clang-tidy] hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning) 2022-08-17 19:25:59 +01:00
SignedBitwiseCheck.h [clang-tidy][docs] Fix a couple of missed cases from 6e566bc552 2022-06-22 21:37:16 +01:00