================
@@ -126,6 +127,13 @@ std::vector<CommentToken>
getTrailingCommentsInRange(CharSourceRange Range, const SourceManager &SM,
const LangOptions &LangOpts);
+/// Returns the first token in \p Range matching \p Pred.
+/// The returned char range starts at the matched token and ends at the start
+/// of the next token. Returns invalid range if no token matches.
+CharSourceRange findTokenInRange(CharSourceRange Range, const SourceManager
&SM,
----------------
unterumarmung wrote:
I agree, done
https://github.com/llvm/llvm-project/pull/183941
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits