================
@@ -14,13 +14,20 @@
 #include "clang/Lex/Lexer.h"
 #include <optional>
 #include <utility>
+#include <vector>
 
 namespace clang {
 
 class Stmt;
 
 namespace tidy::utils::lexer {
 
+// Represents a comment token and its source location in the original file.
+struct CommentToken {
+  SourceLocation Loc;
+  StringRef Text;
+};
+
----------------
vbvictor wrote:

Can we put this right above `getTrailingCommentsInRange` declaration for tight 
coupling of entities that are used together.

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

Reply via email to