[all-commits] [llvm/llvm-project] 7c9c0a: [clang][DeclPrinter] Pass Context into StmtPrinter...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Tue Feb 23 00:42:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c9c0a87c8aecbcebd9dfa8866f41b7926985457
      https://github.com/llvm/llvm-project/commit/7c9c0a87c8aecbcebd9dfa8866f41b7926985457
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M clang-tools-extra/clangd/unittests/HoverTests.cpp
    M clang/lib/AST/DeclPrinter.cpp
    M clang/unittests/AST/DeclPrinterTest.cpp

  Log Message:
  -----------
  [clang][DeclPrinter] Pass Context into StmtPrinter whenever possible

ASTContext were only passed to the StmtPrinter in some places, while it
is always available in DeclPrinter. The context is used by StmtPrinter to better
print statements in some cases, like printing constants as written.

Differential Revision: https://reviews.llvm.org/D97043




More information about the All-commits mailing list