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;
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;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits