[PATCH] D139835: [include-cleaner] Include the reference type when printing the SymbolReference.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 12 05:52:47 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
hokein marked an inline comment as done.
Closed by commit rG6c0c280b8ddc: [include-cleaner] Include the reference type when printing the SymbolReference. (authored by hokein).
Changed prior to commit:
https://reviews.llvm.org/D139835?vs=482077&id=482092#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139835/new/
https://reviews.llvm.org/D139835
Files:
clang-tools-extra/include-cleaner/lib/Types.cpp
Index: clang-tools-extra/include-cleaner/lib/Types.cpp
===================================================================
--- clang-tools-extra/include-cleaner/lib/Types.cpp
+++ clang-tools-extra/include-cleaner/lib/Types.cpp
@@ -46,7 +46,7 @@
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const SymbolReference &R) {
// We can't decode the Location without SourceManager. Its raw representation
// isn't completely useless (and distinguishes SymbolReference from Symbol).
- return OS << R.Target << "@0x"
+ return OS << R.RT << " reference to " << R.Target << "@0x"
<< llvm::utohexstr(
R.RefLocation.getRawEncoding(), /*LowerCase=*/false,
/*Width=*/CHAR_BIT * sizeof(SourceLocation::UIntTy));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139835.482092.patch
Type: text/x-patch
Size: 764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221212/6b4acc03/attachment.bin>
More information about the cfe-commits
mailing list