From: Piotr Zegar Date: Thu, 22 Jun 2023 08:02:20 +0000 (+0000) Subject: [clang-tidy][NFC] Add missing argument comment to LexerUtils.cpp X-Git-Tag: upstream/17.0.6~4241 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3889c8214d1b4fcaa54f18b0944faa026f97b8ba;p=platform%2Fupstream%2Fllvm.git [clang-tidy][NFC] Add missing argument comment to LexerUtils.cpp D148697 post commit review change. --- diff --git a/clang-tools-extra/clang-tidy/utils/LexerUtils.cpp b/clang-tools-extra/clang-tidy/utils/LexerUtils.cpp index 218cf2f..95e0255 100644 --- a/clang-tools-extra/clang-tidy/utils/LexerUtils.cpp +++ b/clang-tools-extra/clang-tidy/utils/LexerUtils.cpp @@ -269,8 +269,9 @@ SourceLocation getLocationForNoexceptSpecifier(const FunctionDecl *FuncDecl, const SourceLocation NoexceptLoc = FuncDecl->getParamDecl(FuncDecl->getNumParams() - 1)->getEndLoc(); if (NoexceptLoc.isValid()) - return Lexer::findLocationAfterToken(NoexceptLoc, tok::r_paren, SM, - LangOpts, true); + return Lexer::findLocationAfterToken( + NoexceptLoc, tok::r_paren, SM, LangOpts, + /*SkipTrailingWhitespaceAndNewLine=*/true); return {}; }