No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287892
91177308-0d34-0410-b5e6-
96231b3b80d8
}
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