This revision was automatically updated to reflect the committed changes.
Closed by commit rL350638: Fix use-after-free bug in Tooling. (authored by
alexfh, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55765/
ymandel added a comment.
Alex, would you mind submitting this since I don't yet have submit privileges?
I'll request them shortly, but I'd rather this go one in the meantime.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55765/new/
https://reviews.llvm.org/D5576
alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.
LG
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55765/new/
https://reviews.llvm.org/D55765
___
cfe-commits mail
ymandel updated this revision to Diff 178653.
ymandel added a comment.
Adjust comments.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55765/new/
https://reviews.llvm.org/D55765
Files:
include/clang/Tooling/Tooling.h
lib/Tooling/Tooling.cpp
unittests/Analys
ymandel updated this revision to Diff 178651.
ymandel added a comment.
Convert other Twine-typed args to StringRef.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55765/new/
https://reviews.llvm.org/D55765
Files:
include/clang/Tooling/Tooling.h
lib/Tooling/To
alexfh added inline comments.
Comment at: include/clang/Tooling/Tooling.h:208
std::unique_ptr
-buildASTFromCode(const Twine &Code, const Twine &FileName = "input.cc",
+buildASTFromCode(StringRef Code, const Twine &FileName = "input.cc",
std::shared_ptr PCHConta
ymandel updated this revision to Diff 178507.
ymandel added a comment.
Update test that was calling builAST with an actual Twine.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55765/new/
https://reviews.llvm.org/D55765
Files:
include/clang/Tooling/Tooling.h
ymandel updated this revision to Diff 178470.
ymandel added a comment.
Change header correspondingly.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55765/new/
https://reviews.llvm.org/D55765
Files:
include/clang/Tooling/Tooling.h
lib/Tooling/Tooling.cpp
In
ymandel updated this revision to Diff 178468.
ymandel added a comment.
Change buildAST functions to take a StringRef instead of a Twine.
In practice, code is almost never constructed on the fly using a Twine, so
StringRef is simpler and avoids needing a copy when constructing the MemBuffer.
Re
ymandel created this revision.
ymandel added a reviewer: alexfh.
Herald added a subscriber: cfe-commits.
`buildASTFromCodeWithArgs()` was creating a memory buffer referencing a
stack-allocated string. This diff changes the implementation to copy the code
string into the memory buffer so that said
10 matches
Mail list logo