[clang] [clang] Change representation of CurLexerKind (PR #70381)

via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 29 09:03:59 PDT 2023


================
@@ -1914,7 +1909,7 @@ class Preprocessor {
 
   /// Recompute the current lexer kind based on the CurLexer/
   /// CurTokenLexer pointers.
-  void recomputeCurLexerKind();
+  void recomputeCurLexerCallback();
----------------
cor3ntin wrote:

I think renaming this one is a bit too aggressive. Ideally that we use a callback is an implementation detail that should not leak more than it needs to

 ```suggestion
  void recomputeCurLexerKind();
```

https://github.com/llvm/llvm-project/pull/70381


More information about the cfe-commits mailing list