[all-commits] [llvm/llvm-project] 473fbc: [clang][NFC] Store a pointer to the ASTContext in ...

Bruno Ricci via All-commits all-commits at lists.llvm.org
Fri Jul 3 06:00:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 473fbc90d1fbf17e16594dfb17248c4f50b4d399
      https://github.com/llvm/llvm-project/commit/473fbc90d1fbf17e16594dfb17248c4f50b4d399
  Author: Bruno Ricci <riccibrun at gmail.com>
  Date:   2020-07-03 (Fri, 03 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
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

  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.

Reverted in fcf4d5e4499a391dff42ea1a096f146db44147b6 since a few dump()
functions in lldb where missed.


  Commit: 54eb42537e8c566fa15046bc0302bf5390d26f08
      https://github.com/llvm/llvm-project/commit/54eb42537e8c566fa15046bc0302bf5390d26f08
  Author: Bruno Ricci <riccibrun at gmail.com>
  Date:   2020-07-03 (Fri, 03 Jul 2020)

  Changed paths:
    M clang/test/AST/ast-dump-comment.cpp

  Log Message:
  -----------
  [clang][NFC] Also test for serialization in test/AST/ast-dump-comment.cpp


  Commit: c10295e1bdbf892946bf1db6c3c8feb1219c4070
      https://github.com/llvm/llvm-project/commit/c10295e1bdbf892946bf1db6c3c8feb1219c4070
  Author: Bruno Ricci <riccibrun at gmail.com>
  Date:   2020-07-03 (Fri, 03 Jul 2020)

  Changed paths:
    M clang/test/AST/ast-dump-lambda.cpp

  Log Message:
  -----------
  [clang][NFC] Add a missing /dev/null in test/AST/ast-dump-lambda.cpp


Compare: https://github.com/llvm/llvm-project/compare/1ab88de0ed96...c10295e1bdbf


More information about the All-commits mailing list