v.g.vassilev commandeered this revision.
v.g.vassilev edited reviewers, added: junaire; removed: v.g.vassilev.
v.g.vassilev added a comment.
Jun has moved on in his career and I'd like to take responsibility for this
patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
http
aaron.ballman added inline comments.
Comment at: clang/lib/Headers/__clang_interpreter_runtime_printvalue.h:44
+template >>
+inline std::string PrintValueRuntime(const T &Val) {
+ return "{not representable}";
Need to use a reserved identifier for everything so
junaire added inline comments.
Comment at: clang/lib/Interpreter/ValuePrinter.cpp:262
+
+static llvm::Expected CompileDecl(Interpreter &Interp,
+ Decl *D) {
v.g.vassilev wrote:
> Let's add a FIXME here. Th
junaire updated this revision to Diff 526566.
junaire marked 2 inline comments as done.
junaire added a comment.
Add LLVM preamble
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/cl
v.g.vassilev added inline comments.
Comment at: clang/lib/Interpreter/ValuePrinter.cpp:1
+#include "InterpreterUtils.h"
+#include "clang/AST/ASTContext.h"
Please add the llvm preamble.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://
v.g.vassilev added inline comments.
Comment at: clang/lib/Interpreter/IncrementalParser.h:86
+ Parser &getParser() { return *P; }
+
Is that used?
Comment at: clang/lib/Interpreter/ValuePrinter.cpp:262
+
+static llvm::Expected CompileDecl(Int
junaire added inline comments.
Comment at: clang/tools/clang-repl/CMakeLists.txt:40
+ ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z
+
??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z
+
??$?6U?$char_traits@D@std@
junaire updated this revision to Diff 526383.
junaire added a comment.
Make CreateUniqName a static helper
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpre
v.g.vassilev added inline comments.
Comment at: clang/include/clang/Interpreter/Interpreter.h:113
llvm::Expected CompileDtorCall(CXXRecordDecl
*CXXRD);
+ std::string CreateUniqName(std::string Base);
We should move this routine to its user in maybe ValuePr
junaire updated this revision to Diff 526256.
junaire added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/include/clang/I
junaire updated this revision to Diff 525425.
junaire added a comment.
Remove `Interpereter::getParser` + More clean up
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpr
junaire added inline comments.
Comment at: clang/lib/Interpreter/Interpreter.cpp:434
+
+llvm::Expected Interpreter::CompileDecl(Decl *D) {
+ assert(D && "The Decl being compiled can't be null");
aaron.ballman wrote:
> Any way to make this take a `const Decl *` i
junaire updated this revision to Diff 525420.
junaire marked 15 inline comments as done.
junaire added a comment.
Address comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/c
aaron.ballman added a comment.
I didn't have the chance to complete my review (this is a pretty massive
change), but here are some in-progress comments.
Comment at: clang/include/clang/Interpreter/Interpreter.h:105
+ Parser &getParser() const;
+
const misma
v.g.vassilev added subscribers: sunho, sgraenitz, lhames.
v.g.vassilev added a comment.
I believe this is heading in a good direction. Here are some comments from a
partial review. Also perhaps we should extend the patch description (future
commit message) to capture the idea of the pretty-print
junaire updated this revision to Diff 524096.
junaire added a comment.
.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/include/clang/Interp
junaire updated this revision to Diff 524093.
junaire added a comment.
add `caas` namespace
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/i
junaire updated this revision to Diff 524091.
junaire added a comment.
.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/include/clang/Interp
junaire added a comment.
Invite more people to the party :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
___
cfe-commits mailing list
cfe-commits@lists.llvm.
junaire updated this revision to Diff 524088.
junaire added a comment.
.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/include/clang/Interp
junaire updated this revision to Diff 521985.
junaire added a comment.
Make and use our own std::void_t
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter
junaire updated this revision to Diff 521981.
junaire added a comment.
- include to avoid incorrect lookup on Windows
- Add `-Xcc -fno-delayed-template-parsing` to fix failure on Windows
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
ht
junaire updated this revision to Diff 521962.
junaire added a comment.
Add macro guard.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/inclu
junaire updated this revision to Diff 521961.
junaire added a comment.
Don't use C++17 because Clang on Windows is not default to that :(
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/inc
junaire updated this revision to Diff 520998.
junaire added a comment.
Export symbols in Windows.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
c
junaire updated this revision to Diff 520914.
junaire added a comment.
Add some comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/incl
junaire updated this revision to Diff 520913.
junaire added a comment.
Remove unused code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/in
junaire updated this revision to Diff 520912.
junaire added a comment.
Fix
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/include/clang/Inte
junaire added inline comments.
Comment at: clang/test/Interpreter/pretty-print.cpp:107
+p2
+// CHECK-NEXT: (std::_MakeUniq::__single_object &) std::unique_ptr ->
[[Addr:@0x.*]]
+
junaire wrote:
> Hi @mizvekov, do you have a clue about why it doesn't print the co
junaire updated this revision to Diff 518458.
junaire added a comment.
Fix AutoType sugar
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/inc
junaire added inline comments.
Comment at: clang/test/Interpreter/pretty-print.cpp:107
+p2
+// CHECK-NEXT: (std::_MakeUniq::__single_object &) std::unique_ptr ->
[[Addr:@0x.*]]
+
Hi @mizvekov, do you have a clue about why it doesn't print the correct type?
So i
junaire updated this revision to Diff 518289.
junaire added a comment.
.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/include/clang/Interp
junaire updated this revision to Diff 518287.
junaire added a comment.
.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/include/clang/Interp
junaire updated this revision to Diff 518266.
junaire added a comment.
.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146809/new/
https://reviews.llvm.org/D146809
Files:
clang/include/clang/Interpreter/Interpreter.h
clang/include/clang/Interp
34 matches
Mail list logo