================
@@ -160,6 +160,59 @@ getTrailingCommentsInRange(CharSourceRange Range, const 
SourceManager &SM,
   return Comments;
 }
 
+CharSourceRange findTokenInRange(CharSourceRange Range, const SourceManager 
&SM,
----------------
vbvictor wrote:

Maybe we will need `pair<Token, CharSourceRange>` someday, like in
```
std::pair<std::optional<Token>, SourceLocation>
getPreviousTokenAndStart
```

But I'm fine leaving as is for now.

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