summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index e1f991a9bf6..98565e9834e 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1555,9 +1555,9 @@ unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName,
}
bool isDeletedHeader(llvm::StringRef HeaderName,
- const std::set<llvm::StringRef> HeadersToDelete) {
- return HeadersToDelete.find(HeaderName) != HeadersToDelete.end() ||
- HeadersToDelete.find(HeaderName.trim("\"<>")) != HeadersToDelete.end();
+ const std::set<llvm::StringRef> &HeadersToDelete) {
+ return HeadersToDelete.count(HeaderName) ||
+ HeadersToDelete.count(HeaderName.trim("\"<>"));
}
// FIXME: we also need to insert a '\n' at the end of the code if we have an
OpenPOWER on IntegriCloud