[all-commits] [llvm/llvm-project] ea6ecd: Call printName to get name of Decl

dankm via All-commits all-commits at lists.llvm.org
Tue May 2 08:56:40 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea6ecdbfe09d4318f2d616af794e2930f996e393
  Author: Dan McGregor <danismostlikely at gmail.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/Decl.cpp
    M clang/lib/AST/DeclarationName.cpp
    A clang/test/CodeGen/debug-prefix-map.cpp

  Log Message:
  Call printName to get name of Decl

Rather than sending a name directly to the stream, use printName
to preserve any PrintingPolicy. This ensures that names are properly
affected by path remapping.

Fixes: https://github.com/llvm/llvm-project/issues/62192
Differential Revision: https://reviews.llvm.org/D149272

More information about the All-commits mailing list