[PATCH] D13318: Add a utility function to add target information to a command line

Manuel Klimek via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 1 00:51:05 PDT 2015


klimek accepted this revision.
klimek added a comment.
This revision is now accepted and ready to land.

LG


================
Comment at: include/clang/Tooling/Tooling.h:437
@@ +436,3 @@
+///
+/// \note This will not set \c CommandLine[0] to \c InvokedAs.
+void addTargetAndModeForProgramName(std::vector<std::string> &CommandLine,
----------------
Add that for tools, CommandLine[0] will need to be a tool path relatively to which the builtin headers can be found.


http://reviews.llvm.org/D13318





More information about the cfe-commits mailing list