aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2020-12-12 13:17:49 +0000
committerStephen Kelly <steveire@gmail.com>2021-03-10 22:38:39 +0000
commitd627a27d264b47eda3f15f086ff419dfe053ebf7 (patch)
tree146914ed77667ecaf2128841c96372c7098b82db /llvm/utils/UpdateTestChecks/common.py
parent08d33aa6807d998ef777a4e6d56b629878d0e73b (diff)
downloadllvm-d627a27d264b47eda3f15f086ff419dfe053ebf7.zip
llvm-d627a27d264b47eda3f15f086ff419dfe053ebf7.tar.gz
llvm-d627a27d264b47eda3f15f086ff419dfe053ebf7.tar.bz2
[AST] Add generator for source location introspection
Generate a json file containing descriptions of AST classes and their public accessors which return SourceLocation or SourceRange. Use the JSON file to generate a C++ API and implementation for accessing the source locations and method names for accessing them for a given AST node. This new API can be used to implement 'srcloc' output in clang-query: http://ce.steveire.com/z/m_kTIo In this first version of this feature, only the accessors for Stmt classes are generated, not Decls, TypeLocs etc. Those can be added after this change is reviewed, as this change is mostly about infrastructure of these code generators. Differential Revision: https://reviews.llvm.org/D93164
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
0 files changed, 0 insertions, 0 deletions