[clangd] NFC: Clarify the Include Cleaner warning

This commit is contained in:
Kirill Bobyrev 2022-05-19 11:59:00 +02:00
parent 530bab1f93
commit 43c0f90dd6
No known key found for this signature in database
GPG Key ID: 2307C055C8384FA0

View File

@ -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));