[clang-tools-extra] b3e38a1 - [clangd] NFC, remove an unused member in
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 1 05:53:47 PDT 2023
Author: Haojian Wu
Date: 2023-06-01T14:53:33+02:00
New Revision: b3e38a174373618ceef07b1b9b327408c7d132e2
URL: https://github.com/llvm/llvm-project/commit/b3e38a174373618ceef07b1b9b327408c7d132e2
DIFF: https://github.com/llvm/llvm-project/commit/b3e38a174373618ceef07b1b9b327408c7d132e2.diff
LOG: [clangd] NFC, remove an unused member in
IncludeStructure::RecordHeaders.
Added:
Modified:
clang-tools-extra/clangd/Headers.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Headers.cpp b/clang-tools-extra/clangd/Headers.cpp
index 344afdba9622a..f1838931f5a4d 100644
--- a/clang-tools-extra/clangd/Headers.cpp
+++ b/clang-tools-extra/clangd/Headers.cpp
@@ -29,7 +29,7 @@ class IncludeStructure::RecordHeaders : public PPCallbacks {
public:
RecordHeaders(const CompilerInstance &CI, IncludeStructure *Out)
: SM(CI.getSourceManager()),
- HeaderInfo(CI.getPreprocessor().getHeaderSearchInfo()), Out(Out) {}
+ Out(Out) {}
// Record existing #includes - both written and resolved paths. Only #includes
// in the main file are collected.
@@ -119,7 +119,6 @@ class IncludeStructure::RecordHeaders : public PPCallbacks {
bool inMainFile() const { return Level == 1; }
const SourceManager &SM;
- HeaderSearch &HeaderInfo;
// Set after entering the <built-in> file.
FileID BuiltinFile;
// Indicates whether <built-in> file is part of include stack.
More information about the cfe-commits
mailing list