[Lldb-commits] [PATCH] D56822: [Reproducers] Tool to insert SBReproducer macros
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 29 03:51:32 PST 2019
labath added inline comments.
================
Comment at: tools/sbrepro/SBRepro.cpp:22-31
+static std::string Join(const std::vector<std::string> &V) {
+ std::string Str;
+ llvm::raw_string_ostream OS(Str);
+ for (std::size_t I = 0, E = V.size(); I < E; ++I) {
+ OS << V[I];
+ if (I != E - 1)
+ OS << ", ";
----------------
There's a `join` in `ADT/StringExtras.h` which should do what you need here.
================
Comment at: tools/sbrepro/SBRepro.cpp:194-197
+ // Skip empty decls.
+ Stmt *Body = Decl->getBody();
+ if (!Body)
+ return true;
----------------
What exactly does this skip? Would e.g. a constructor with an empty body still be considered for macro-ization?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56822/new/
https://reviews.llvm.org/D56822
More information about the lldb-commits
mailing list