[clang-repl] Allow passing in code as positional arguments.
authorVassil Vassilev <v.g.vassilev@gmail.com>
Thu, 1 Jul 2021 17:03:23 +0000 (17:03 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Thu, 1 Jul 2021 19:57:21 +0000 (19:57 +0000)
commite386871e1d21cf206a1287356e88c5853563fc77
tree25da9dfc687567e1dc353db9ba34d5235bd29d7a
parent45e8a0befbc8e174c3fa4ba4d21ef4445a16191b
[clang-repl] Allow passing in code as positional arguments.

Now we can do things like: clang-repl "int i = 1;" "int j = 2;".

Differential revision: https://reviews.llvm.org/D104898
clang/test/Interpreter/execute.cpp
clang/tools/clang-repl/ClangRepl.cpp