[clang-tools-extra] 6274442 - [clangd] Call hash_combine_range with a range (NFC) (#136526)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 20 19:59:30 PDT 2025
Author: Kazu Hirata
Date: 2025-04-20T19:59:28-07:00
New Revision: 6274442f8c657597233b9691298df7b5cd743e66
URL: https://github.com/llvm/llvm-project/commit/6274442f8c657597233b9691298df7b5cd743e66
DIFF: https://github.com/llvm/llvm-project/commit/6274442f8c657597233b9691298df7b5cd743e66.diff
LOG: [clangd] Call hash_combine_range with a range (NFC) (#136526)
Added:
Modified:
clang-tools-extra/clangd/SystemIncludeExtractor.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/SystemIncludeExtractor.cpp b/clang-tools-extra/clangd/SystemIncludeExtractor.cpp
index 9399b910025b6..d9642f1115a6d 100644
--- a/clang-tools-extra/clangd/SystemIncludeExtractor.cpp
+++ b/clang-tools-extra/clangd/SystemIncludeExtractor.cpp
@@ -239,8 +239,7 @@ template <> struct DenseMapInfo<DriverArgs> {
Val.Stdlib,
});
- unsigned SpecsHash =
- llvm::hash_combine_range(Val.Specs.begin(), Val.Specs.end());
+ unsigned SpecsHash = llvm::hash_combine_range(Val.Specs);
return llvm::hash_combine(FixedFieldsHash, SpecsHash);
}
More information about the cfe-commits
mailing list