aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Tooling/SourceCodeBuildersTest.cpp')
-rw-r--r--clang/unittests/Tooling/SourceCodeBuildersTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/SourceCodeBuildersTest.cpp b/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
index 6db3031..95aa29e 100644
--- a/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
+++ b/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
@@ -66,8 +66,8 @@ struct TestMatch {
// matcher correspondingly. `Matcher` should match one of the statements in
// `StatementCode` exactly -- that is, produce exactly one match. However,
// `StatementCode` may contain other statements not described by `Matcher`.
-static llvm::Optional<TestMatch> matchStmt(StringRef StatementCode,
- StatementMatcher Matcher) {
+static std::optional<TestMatch> matchStmt(StringRef StatementCode,
+ StatementMatcher Matcher) {
auto AstUnit = buildASTFromCodeWithArgs(wrapSnippet(StatementCode),
{"-Wno-unused-value"});
if (AstUnit == nullptr) {