shafik added inline comments.
================
Comment at: clang/lib/Lex/Lexer.cpp:1203
if (L && !L->isLexingRawMode())
- L->Diag(CP-2, diag::trigraph_ignored);
+ L->Diag(CP - 2 - L->getBuffer().data(), diag::trigraph_ignored);
return 0;
----------------
I wonder do we really need to do these pointer gymnastics, maybe making this a
member function would eliminate the need for it.
================
Comment at: clang/lib/Lex/Lexer.cpp:1815
PP->getDiagnostics(), LangOpts, C,
- makeCharRange(*this, BufferPtr, CurPtr), /*IsStart*/ true);
- BufferPtr = CurPtr;
+ makeCharRange(*this, BufferOffset, CurOffset), /*IsStart*/ true);
+ BufferOffset = CurOffset;
----------------
nit
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143142/new/
https://reviews.llvm.org/D143142
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits