================
@@ -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,
----------------
vbvictor wrote:

```suggestion
CharSourceRange findTokenTextInRange(CharSourceRange Range, const SourceManager 
&SM,
```
Since we don't actually return `Token` object here, WDYT?

https://github.com/llvm/llvm-project/pull/183941
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to