[clang-tools-extra] 43c0f90 - [clangd] NFC: Clarify the Include Cleaner warning
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Thu May 19 02:59:42 PDT 2022
Author: Kirill Bobyrev
Date: 2022-05-19T11:59:00+02:00
New Revision: 43c0f90dd6eb1d3481a4d5e384a33d0d99b7aa86
URL: https://github.com/llvm/llvm-project/commit/43c0f90dd6eb1d3481a4d5e384a33d0d99b7aa86
DIFF: https://github.com/llvm/llvm-project/commit/43c0f90dd6eb1d3481a4d5e384a33d0d99b7aa86.diff
LOG: [clangd] NFC: Clarify the Include Cleaner warning
Added:
Modified:
clang-tools-extra/clangd/IncludeCleaner.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/IncludeCleaner.cpp b/clang-tools-extra/clangd/IncludeCleaner.cpp
index f2890369af32..e5b5187e030c 100644
--- a/clang-tools-extra/clangd/IncludeCleaner.cpp
+++ b/clang-tools-extra/clangd/IncludeCleaner.cpp
@@ -486,7 +486,7 @@ std::vector<Diag> issueUnusedIncludesDiagnostics(ParsedAST &AST,
for (const auto *Inc : computeUnusedIncludes(AST)) {
Diag D;
D.Message =
- llvm::formatv("included header {0} is not used",
+ llvm::formatv("included header {0} is not used directly",
llvm::sys::path::filename(
Inc->Written.substr(1, Inc->Written.size() - 2),
llvm::sys::path::Style::posix));
More information about the cfe-commits
mailing list