[PATCH] D143142: [clang][lex] Enable Lexer to grow its buffer

Vassil Vassilev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 9 02:45:33 PST 2023


v.g.vassilev added inline comments.


================
Comment at: clang/lib/Lex/Lexer.cpp:211
+  L->BufferOffset =
+      StrData - InputFile.getBufferStart(); // FIXME: this is wrong
+  L->BufferSize = L->BufferOffset + TokLen;
----------------
Is that an outdated comment? If not maybe elaborate why this is wrong.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143142



More information about the cfe-commits mailing list