llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/141447.diff


1 Files Affected:

- (modified) clang/unittests/AST/ASTImporterFixtures.cpp (+2-3) 


``````````diff
diff --git a/clang/unittests/AST/ASTImporterFixtures.cpp 
b/clang/unittests/AST/ASTImporterFixtures.cpp
index 897b370dd3cdc..e4e5a078262c3 100644
--- a/clang/unittests/AST/ASTImporterFixtures.cpp
+++ b/clang/unittests/AST/ASTImporterFixtures.cpp
@@ -173,9 +173,8 @@ std::tuple<Decl *, Decl *> 
ASTImporterTestBase::getImportedDecl(
 TranslationUnitDecl *ASTImporterTestBase::getTuDecl(StringRef SrcCode,
                                                     TestLanguage Lang,
                                                     StringRef FileName) {
-  assert(llvm::find_if(FromTUs, [FileName](const TU &E) {
-           return E.FileName == FileName;
-         }) == FromTUs.end());
+  assert(llvm::none_of(
+      FromTUs, [FileName](const TU &E) { return E.FileName == FileName; }));
 
   std::vector<std::string> Args = getCommandLineArgsForLanguage(Lang);
   FromTUs.emplace_back(SrcCode, FileName, Args, Creator, ODRHandling);

``````````

</details>


https://github.com/llvm/llvm-project/pull/141447
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to