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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits