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

Clement Courbet via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 17 01:34:17 PST 2025


================
@@ -118,47 +118,19 @@ findMembersUsedInInitExpr(const CXXCtorInitializer *Initializer,
   return Results;
 }
 
-/// Returns the next token after `Loc` (including comment tokens).
-static std::optional<Token> getTokenAfter(SourceLocation Loc,
----------------
legrosbuffle wrote:

Yes, that's why we wanted to get rid of that code, it does not really make sense to have 3 quasi-identical copies of the same code.

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


More information about the cfe-commits mailing list