[clang-tools-extra] 551c7e8 - [clangd] Fix broken call missed in D138780

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 28 05:37:01 PST 2022


Author: Sam McCall
Date: 2022-11-28T14:36:48+01:00
New Revision: 551c7e81891abcf49aff625187f348ff119c4618

URL: https://github.com/llvm/llvm-project/commit/551c7e81891abcf49aff625187f348ff119c4618
DIFF: https://github.com/llvm/llvm-project/commit/551c7e81891abcf49aff625187f348ff119c4618.diff

LOG: [clangd] Fix broken call missed in D138780

Added: 
    

Modified: 
    clang-tools-extra/clangd/index/CanonicalIncludes.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
index 8568079ca1adb..f123b029f9fb3 100644
--- a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
+++ b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
@@ -9,6 +9,7 @@
 #include "CanonicalIncludes.h"
 #include "Headers.h"
 #include "clang/Basic/FileEntry.h"
+#include "clang/Tooling/Inclusions/HeaderAnalysis.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/FileSystem/UniqueID.h"
 #include "llvm/Support/Path.h"
@@ -710,7 +711,7 @@ collectIWYUHeaderMaps(CanonicalIncludes *Includes) {
     PragmaCommentHandler(CanonicalIncludes *Includes) : Includes(Includes) {}
 
     bool HandleComment(Preprocessor &PP, SourceRange Range) override {
-      auto Pragma = parseIWYUPragma(
+      auto Pragma = tooling::parseIWYUPragma(
           PP.getSourceManager().getCharacterData(Range.getBegin()));
       if (!Pragma || !Pragma->consume_front("private, include "))
         return false;


        


More information about the cfe-commits mailing list