[PATCH] D139715: [include-cleaner] Print the line number of removal #includes.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 14 01:52:30 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4702d8d9cf80: [include-cleaner] Print the line number of removal #includes. (authored by hokein).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139715/new/

https://reviews.llvm.org/D139715

Files:
  clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp


Index: clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
===================================================================
--- clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
+++ clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
@@ -130,7 +130,7 @@
       switch (Print) {
       case PrintStyle::Changes:
         for (const Include *I : Results.Unused)
-          llvm::outs() << "- " << I->quote() << "\n";
+          llvm::outs() << "- " << I->quote() << " @Line:" << I->Line << "\n";
         for (const auto &I : Results.Missing)
           llvm::outs() << "+ " << I << "\n";
         break;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139715.482765.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221214/f45a6c2b/attachment.bin>


More information about the cfe-commits mailing list