[clang-tools-extra] 106e63c - [clangd] NFC: Rename field to be compatible with the function name
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Mon May 16 01:18:15 PDT 2022
Author: Kirill Bobyrev
Date: 2022-05-16T10:18:08+02:00
New Revision: 106e63ce47b5b00e376be9eef03a084c71c03f11
URL: https://github.com/llvm/llvm-project/commit/106e63ce47b5b00e376be9eef03a084c71c03f11
DIFF: https://github.com/llvm/llvm-project/commit/106e63ce47b5b00e376be9eef03a084c71c03f11.diff
LOG: [clangd] NFC: Rename field to be compatible with the function name
Added:
Modified:
clang-tools-extra/clangd/Headers.cpp
clang-tools-extra/clangd/Headers.h
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Headers.cpp b/clang-tools-extra/clangd/Headers.cpp
index 6b934eae7b35..cb7abac3e9f9 100644
--- a/clang-tools-extra/clangd/Headers.cpp
+++ b/clang-tools-extra/clangd/Headers.cpp
@@ -164,7 +164,7 @@ class IncludeStructure::RecordHeaders : public PPCallbacks,
if (!Text.startswith(IWYUPragmaExport) &&
!Text.startswith(IWYUPragmaBeginExports))
return false;
- Out->HasIWYUPragmas.insert(
+ Out->HasIWYUExport.insert(
*Out->getID(SM.getFileEntryForID(SM.getFileID(Range.getBegin()))));
}
return false;
diff --git a/clang-tools-extra/clangd/Headers.h b/clang-tools-extra/clangd/Headers.h
index b17107535e3d..ff3f06316832 100644
--- a/clang-tools-extra/clangd/Headers.h
+++ b/clang-tools-extra/clangd/Headers.h
@@ -146,7 +146,7 @@ class IncludeStructure {
}
bool hasIWYUExport(HeaderID ID) const {
- return HasIWYUPragmas.contains(ID);
+ return HasIWYUExport.contains(ID);
}
// Return all transitively reachable files.
@@ -191,7 +191,7 @@ class IncludeStructure {
llvm::DenseSet<HeaderID> NonSelfContained;
// Contains a set of headers that have either "IWYU pragma: export" or "IWYU
// pragma: begin_exports".
- llvm::DenseSet<HeaderID> HasIWYUPragmas;
+ llvm::DenseSet<HeaderID> HasIWYUExport;
};
// Calculates insertion edit for including a new header in a file.
More information about the cfe-commits
mailing list