[PATCH] D145316: [Clang][Lex] Generate an annotation token for clang-repl
Jun Zhang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 4 21:20:25 PST 2023
junaire created this revision.
Herald added a project: All.
junaire requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patches adds a new annotation token called annot_input_end, which
can be used to capture expression in value printing. It works somewhat
like annot_end_of_module token we already have.
This approach is proposed by Richard Smith, thanks!
Signed-off-by: Jun Zhang <jun at junz.org>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145316
Files:
clang/include/clang/Basic/TokenKinds.def
clang/include/clang/Parse/Parser.h
clang/lib/Frontend/PrintPreprocessedOutput.cpp
clang/lib/Interpreter/IncrementalParser.cpp
clang/lib/Lex/PPLexerChange.cpp
clang/lib/Parse/ParseCXXInlineMethods.cpp
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/Parser.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145316.502401.patch
Type: text/x-patch
Size: 6223 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230305/71612b19/attachment.bin>
More information about the cfe-commits
mailing list