Hello and good day.
I have encountered an interesting compilation error that appears/disappears depending on the existence of a statement.
I am still exploring around clang and currently trying the following guide:
At first I was having a hard time reconciling the compilation process as my thought process was:
- is cmake needed since CmakeLists.txt? isn’t this usually for win builds?
- oh well, why not try using cmake? (note: I don’t have prior experience with cmake)
after a few hours …
- hmmm, the cmake operation created some directories and compiling took a long time and the find-class-decls executable was nowhere to be found.
- no choice, ill just try to copy directly the Makefile of other tools. (ignoring the CMakeLists for now)
After some time, compilation was ok and was now exploring around on how to work with source codes being passed.
This exploration covered around CommonOptionsParser and ClangTool.
I added some source code, and for reference, the main() now looks like this: