[clang] [clang-tools-extra] [clang][refactor] Refactor `findNextTokenIncludingComments` (PR #123060)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 15 06:28:12 PST 2025


================
@@ -89,10 +89,6 @@ SourceLocation findNextAnyTokenKind(SourceLocation Start,
   }
 }
 
-std::optional<Token>
-findNextTokenIncludingComments(SourceLocation Start, const SourceManager &SM,
-                               const LangOptions &LangOpts);
-
----------------
cor3ntin wrote:

I think you could keep that, and just use `Lexer::findNextToken` as its implementation (it would avoid the `/*IncludeComments=*/true` everywhere)

https://github.com/llvm/llvm-project/pull/123060


More information about the cfe-commits mailing list