================
@@ -21,10 +21,13 @@ class Stmt;
 
 namespace tidy::utils::lexer {
 
-/// Returns previous token or ``tok::unknown`` if not found.
-Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
-                       const LangOptions &LangOpts, bool SkipComments = true);
-std::pair<Token, SourceLocation>
+/// Returns previous token.
----------------
zeyi2 wrote:

A minor nit:

```suggestion
/// Returns previous token or ``std::nullopt`` if not found.
```

but TBH I don't have a strong opinion for this :)

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

Reply via email to