From b8df4093e4d82c67a419911a46b63482043643e5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 25 Jun 2022 11:55:33 -0700 Subject: [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) --- clang/unittests/Tooling/SourceCodeTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/unittests/Tooling/SourceCodeTest.cpp') diff --git a/clang/unittests/Tooling/SourceCodeTest.cpp b/clang/unittests/Tooling/SourceCodeTest.cpp index badc6f8..2d4757c 100644 --- a/clang/unittests/Tooling/SourceCodeTest.cpp +++ b/clang/unittests/Tooling/SourceCodeTest.cpp @@ -474,7 +474,7 @@ int c = BAR 3.0; IntLitVisitor Visitor; Visitor.OnIntLit = [](IntegerLiteral *Expr, ASTContext *Context) { auto Range = CharSourceRange::getTokenRange(Expr->getSourceRange()); - EXPECT_FALSE(getRangeForEdit(Range, *Context).hasValue()); + EXPECT_FALSE(getRangeForEdit(Range, *Context)); }; Visitor.runOver(Code); } -- cgit v1.1