aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Lex/LexerTest.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-25 11:55:33 -0700
committerKazu Hirata <kazu@google.com>2022-06-25 11:55:33 -0700
commitb8df4093e4d82c67a419911a46b63482043643e5 (patch)
tree21094939ea6c8b726c481d7b28eaf4ea27c64008 /clang/unittests/Lex/LexerTest.cpp
parent7d101e43cd8afe7368c2180ce33b70b71572e846 (diff)
downloadllvm-b8df4093e4d82c67a419911a46b63482043643e5.zip
llvm-b8df4093e4d82c67a419911a46b63482043643e5.tar.gz
llvm-b8df4093e4d82c67a419911a46b63482043643e5.tar.bz2
[clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC)
Diffstat (limited to 'clang/unittests/Lex/LexerTest.cpp')
-rw-r--r--clang/unittests/Lex/LexerTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Lex/LexerTest.cpp b/clang/unittests/Lex/LexerTest.cpp
index f534de1..0ad644c 100644
--- a/clang/unittests/Lex/LexerTest.cpp
+++ b/clang/unittests/Lex/LexerTest.cpp
@@ -612,7 +612,7 @@ TEST_F(LexerTest, FindNextToken) {
SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID());
while (true) {
auto T = Lexer::findNextToken(Loc, SourceMgr, LangOpts);
- ASSERT_TRUE(T.hasValue());
+ ASSERT_TRUE(T);
if (T->is(tok::eof))
break;
GeneratedByNextToken.push_back(getSourceText(*T, *T));