[clang] cedd736 - [NFCI] [FlowSensitive] [StatusOr] use c++20 for test

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 20 14:36:09 PST 2026


Author: Florian Mayer
Date: 2026-02-20T14:36:05-08:00
New Revision: cedd736518bc07d70c166b8a0c7c0389a1df183e

URL: https://github.com/llvm/llvm-project/commit/cedd736518bc07d70c166b8a0c7c0389a1df183e
DIFF: https://github.com/llvm/llvm-project/commit/cedd736518bc07d70c166b8a0c7c0389a1df183e.diff

LOG: [NFCI] [FlowSensitive] [StatusOr] use c++20 for test

This is to test coroutines

Reviewers: rohanjr

Reviewed By: rohanjr

Pull Request: https://github.com/llvm/llvm-project/pull/182603

Added: 
    

Modified: 
    clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.h

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.h b/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.h
index 92dcd9328c322..8f1b0d0ff6a89 100644
--- a/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.h
+++ b/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.h
@@ -114,7 +114,7 @@ class UncheckedStatusOrAccessModelTestExecutor
                   llvm::move(EltDiagnostics, std::back_inserter(Diagnostics));
                 })
             .withASTBuildArgs(
-                {"-fsyntax-only", "-std=c++17", "-Wno-undefined-inline"})
+                {"-fsyntax-only", "-std=c++20", "-Wno-undefined-inline"})
             .withASTBuildVirtualMappedFiles(
                 tooling::FileContentMappings(Headers.begin(), Headers.end())),
         /*VerifyResults=*/[&Diagnostics, SourceCode](


        


More information about the cfe-commits mailing list