[clang-tools-extra] df92d79 - Revert "Re-land [clangd] Add support for missing includes analysis."
Viktoriia Bakalova via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 8 04:31:26 PST 2023
Author: Viktoriia Bakalova
Date: 2023-03-08T12:29:43Z
New Revision: df92d7911b9ce0221ebf60a937da3e9101150bc1
URL: https://github.com/llvm/llvm-project/commit/df92d7911b9ce0221ebf60a937da3e9101150bc1
DIFF: https://github.com/llvm/llvm-project/commit/df92d7911b9ce0221ebf60a937da3e9101150bc1.diff
LOG: Revert "Re-land [clangd] Add support for missing includes analysis."
This reverts commit 7bd56ddaeeb578331d3dfc0c4a2fe2727d0d1861.
Added:
Modified:
clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp b/clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp
index 85ac00a89e5c..2e18c18a2662 100644
--- a/clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp
+++ b/clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp
@@ -461,7 +461,7 @@ TEST(IncludeCleaner, GenerateMissingHeaderDiags) {
Config Cfg;
Cfg.Diagnostics.MissingIncludes = Config::IncludesPolicy::Strict;
Cfg.Diagnostics.Includes.IgnoreHeader = {[](llvm::StringRef Header) {
- return Header.ends_with("buzz.h");
+ return Header == testPath("buzz.h", llvm::sys::path::Style::posix);
}};
WithContextValue Ctx(Config::Key, std::move(Cfg));
Annotations MainFile(R"cpp(
More information about the cfe-commits
mailing list