Revert "Re-land [clangd] Add support for missing includes analysis."
authorViktoriia Bakalova <bakalova@google.com>
Wed, 8 Mar 2023 12:29:43 +0000 (12:29 +0000)
committerViktoriia Bakalova <bakalova@google.com>
Wed, 8 Mar 2023 12:29:43 +0000 (12:29 +0000)
This reverts commit 7bd56ddaeeb578331d3dfc0c4a2fe2727d0d1861.

clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp

index 85ac00a..2e18c18 100644 (file)
@@ -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(