[PATCH] D133725: Searching for tokens including comments

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 15 10:15:58 PDT 2022


aaron.ballman added a comment.

Can you help me understand the expected use for these change?



================
Comment at: clang/lib/Lex/Lexer.cpp:1278
 
-  const char *TokenBegin = File.data() + LocInfo.second;
+  const char *const TokenBegin = File.data() + LocInfo.second;
 
----------------
Drive-by change? (We don't typically use top-level `const` except for occasional structure members.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133725/new/

https://reviews.llvm.org/D133725



More information about the cfe-commits mailing list