[clang-tidy][NFC] Add missing argument comment to LexerUtils.cpp
authorPiotr Zegar <me@piotrzegar.pl>
Thu, 22 Jun 2023 08:02:20 +0000 (08:02 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Thu, 22 Jun 2023 09:12:40 +0000 (09:12 +0000)
D148697 post commit review change.

clang-tools-extra/clang-tidy/utils/LexerUtils.cpp

index 218cf2f..95e0255 100644 (file)
@@ -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 {};
 }