[PATCH] D143148: [clang-repl] Add basic multiline input support
Sunho Kim via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 6 03:07:17 PST 2023
sunho created this revision.
Herald added a project: All.
sunho retitled this revision from "Add multiline support in clang-repl" to "[clang-repl] Add basic multiline support".
sunho edited the summary of this revision.
sunho updated this revision to Diff 494983.
sunho added a comment.
sunho updated this revision to Diff 494985.
sunho added a comment.
sunho updated this revision to Diff 495041.
sunho added a comment.
sunho updated this revision to Diff 495043.
sunho updated this revision to Diff 495044.
sunho updated this revision to Diff 495054.
sunho retitled this revision from "[clang-repl] Add basic multiline support" to "[clang-repl] Add basic multiline input support".
sunho edited the summary of this revision.
sunho published this revision for review.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Update
sunho added a comment.
Update
sunho added a comment.
Update
sunho added a comment.
Update
Add basic multi-line input support to clang-repl by using newly available SourceFileGrower interface of Preprocessor.
Compared to cling, this change uses fully fledged clang preprocessor (not MetaLexer) so it supports very complicated macro expressions.
NOTE: this is the related to https://discourse.llvm.org/t/rfc-flexible-lexer-buffering-for-handling-incomplete-input-in-interactive-c-c/64180
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D143148
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/lib/Interpreter/IncrementalParser.cpp
clang/lib/Interpreter/IncrementalParser.h
clang/lib/Interpreter/Interpreter.cpp
clang/test/Interpreter/multiline-func-macro-brace-error.cpp
clang/test/Interpreter/multiline-func-macro-brace.cpp
clang/test/Interpreter/multiline-func.cpp
clang/test/Interpreter/multiline-ifdef.cpp
clang/tools/clang-repl/ClangRepl.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143148.495054.patch
Type: text/x-patch
Size: 16939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230206/a419ce94/attachment.bin>
More information about the cfe-commits
mailing list