metareflect
metareflect copied to clipboard
Not enough positional command line arguments specified error
First of all, I've never used CMake, Clangs libtooling or LLVM, so this error might be an obvious one. I went through the LLVM_SETUP, following all the steps, even adding metareflect/tooling as a subdirectory instead of metareflect/metareflect, generated the project with CMake on windows 10, on visual studio 2019, compiled LLVM, ran it and got this:
LLVM ERROR: CommonOptionsParser: failed to parse command-line arguments. [CommonOptionsParser]: metareflect.exe: Not enough positional command line arguments specified!
Must specify at least 1 positional argument: See: D:\LLVM\build\Debug\bin\metareflect.exe --help
Also, I have set metareflect as the single starting project. Secondly, I really enjoyed your talk at CppCon 2018 and got inspired to try this out. Any help with this would be greatly appreciated. Thanks in advance.
If you're still interested, this is caused by not supplying a command line argument (i.e. the file you want parsed) to the metareflect tool. When the tool runs it should look something like
./metareflect.exe <path_to_file>