Skip to content

Commit 0d661e9

Browse files
[clangd] Use DenseMap::contains (NFC)
1 parent ab6d5fa commit 0d661e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/index/SymbolCollector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ void SymbolCollector::finish() {
893893
const Symbol *S = Symbols.find(SID);
894894
if (!S)
895895
continue;
896-
assert(IncludeFiles.find(SID) != IncludeFiles.end());
896+
assert(IncludeFiles.contains(SID));
897897

898898
const auto FID = IncludeFiles.at(SID);
899899
// Determine if the FID is #include'd or #import'ed.

0 commit comments

Comments
 (0)