File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ static SourceLocation getStartOfNextLine(SourceLocation Loc,
113
113
const SourceManager &SM,
114
114
const LangOptions &LangOpts) {
115
115
std::unique_ptr<Lexer> Lex = getLexerStartingFromLoc (Loc, SM, LangOpts);
116
- if (!Lex. get () )
116
+ if (!Lex)
117
117
return SourceLocation ();
118
118
llvm::SmallVector<char , 16 > Line;
119
119
// FIXME: this is a bit hacky to get ReadToEndOfLine work.
@@ -647,9 +647,8 @@ static SourceLocation getLocAfterNamespaceLBrace(const NamespaceDecl *NsDecl,
647
647
const LangOptions &LangOpts) {
648
648
std::unique_ptr<Lexer> Lex =
649
649
getLexerStartingFromLoc (NsDecl->getBeginLoc (), SM, LangOpts);
650
- assert (Lex.get () &&
651
- " Failed to create lexer from the beginning of namespace." );
652
- if (!Lex.get ())
650
+ assert (Lex && " Failed to create lexer from the beginning of namespace." );
651
+ if (!Lex)
653
652
return SourceLocation ();
654
653
Token Tok;
655
654
while (!Lex->LexFromRawLexer (Tok) && Tok.isNot (tok::TokenKind::l_brace)) {
Original file line number Diff line number Diff line change @@ -545,8 +545,8 @@ void func() {
545
545
EXPECT_TRUE (Preamble);
546
546
EXPECT_TRUE (Preamble->RequiredModules );
547
547
548
- auto Result = signatureHelp (getFullPath (" Use.cpp" ), Test.point (),
549
- *Preamble. get (), Use, MarkupKind::PlainText);
548
+ auto Result = signatureHelp (getFullPath (" Use.cpp" ), Test.point (), *Preamble,
549
+ Use, MarkupKind::PlainText);
550
550
EXPECT_FALSE (Result.signatures .empty ());
551
551
EXPECT_EQ (Result.signatures [0 ].label , " printA(int a) -> void" );
552
552
EXPECT_EQ (Result.signatures [0 ].parameters [0 ].labelString , " int a" );
You can’t perform that action at this time.
0 commit comments