[cfe-users] tooling clang 7.0 option parser extra argument

Steven Varga via cfe-users cfe-users at lists.llvm.org
Wed Mar 21 21:37:35 PDT 2018


Hi,

I was wondering it is possible to parse extra arguments with option parser?

best,
steven

static llvm::cl::OptionCategory MyToolCategory("h5cpp options");
...
int main(int argc, const char **argv) {

CommonOptionsParser OptionsParser(argc, argv, MyToolCategory);
ClangTool Tool(OptionsParser.getCompilations(),
OptionsParser.getSourcePathList());
....
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20180322/135eb202/attachment.html>


More information about the cfe-users mailing list