Skip to content

Commit 3fa3fd2

Browse files
kazutakahiratasivan-shani
authored andcommitted
[AST] Use llvm::none_of (NFC) (llvm#141447)
1 parent 55bd1ed commit 3fa3fd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/unittests/AST/ASTImporterFixtures.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ std::tuple<Decl *, Decl *> ASTImporterTestBase::getImportedDecl(
173173
TranslationUnitDecl *ASTImporterTestBase::getTuDecl(StringRef SrcCode,
174174
TestLanguage Lang,
175175
StringRef FileName) {
176-
assert(llvm::find_if(FromTUs, [FileName](const TU &E) {
177-
return E.FileName == FileName;
178-
}) == FromTUs.end());
176+
assert(llvm::none_of(
177+
FromTUs, [FileName](const TU &E) { return E.FileName == FileName; }));
179178

180179
std::vector<std::string> Args = getCommandLineArgsForLanguage(Lang);
181180
FromTUs.emplace_back(SrcCode, FileName, Args, Creator, ODRHandling);

0 commit comments

Comments
 (0)