[all-commits] [llvm/llvm-project] aa7fd9: [clang][NFC] Store a pointer to the ASTContext in ...
Bruno Ricci via All-commits
all-commits at lists.llvm.org
Thu Jul 2 11:29:31 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: aa7fd905e4e1bc510448431da9310e8cf5197523
https://github.com/llvm/llvm-project/commit/aa7fd905e4e1bc510448431da9310e8cf5197523
Author: Bruno Ricci <riccibrun at gmail.com>
Date: 2020-07-02 (Thu, 02 Jul 2020)
Changed paths:
M clang-tools-extra/clang-query/Query.cpp
M clang-tools-extra/clangd/refactor/tweaks/DumpAST.cpp
M clang/include/clang/AST/APValue.h
M clang/include/clang/AST/ASTDumper.h
M clang/include/clang/AST/ASTTypeTraits.h
M clang/include/clang/AST/Comment.h
M clang/include/clang/AST/Stmt.h
M clang/include/clang/AST/TextNodeDumper.h
M clang/include/clang/AST/Type.h
M clang/lib/AST/APValue.cpp
M clang/lib/AST/ASTDumper.cpp
M clang/lib/AST/ASTTypeTraits.cpp
M clang/lib/AST/TextNodeDumper.cpp
M clang/lib/ASTMatchers/ASTMatchFinder.cpp
M clang/lib/CodeGen/CGExprComplex.cpp
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/lib/Frontend/ASTConsumers.cpp
M clang/unittests/AST/CommentParser.cpp
M clang/unittests/AST/MatchVerifier.h
Log Message:
-----------
[clang][NFC] Store a pointer to the ASTContext in ASTDumper and TextNodeDumper
In general there is no way to get to the ASTContext from most AST nodes
(Decls are one of the exception). This will be a problem when implementing
the rest of APValue::dump since we need the ASTContext to dump some kinds of
APValues.
The ASTContext* in ASTDumper and TextNodeDumper is not always
non-null. This is because we still want to be able to use the various
dump() functions in a debugger.
No functional changes intended.
More information about the All-commits
mailing list