...
clang::tooling::CommonOptionsParser OptionsParser(argc, arg_list, my_tool_category);
ClangTool Tool(OptionsParser.getCompilations(),
GetFiles(OptionsParser.getSourcePathList()));
...
If I don’t enter a positional parameter, an error will be output:
user umlgen % ./build/bin/umlgen
LLVM ERROR: CommonOptionsParser: failed to parse command-line arguments. [CommonOptionsParser]: umlgen: Not enough positional command line arguments specified!
Must specify at least 1 positional argument: See: ./build/bin/umlgen --help
[1] 28231 abort ./build/bin/umlgen
I want to set this error message, is there a way?
Aucun commentaire:
Enregistrer un commentaire