I know SourceManager can give us the file name. Assuming, I have a CMake based project having subprojects, and the checker is invoked using
scan-build --use-analyzer=clang -enable-checker debug.SomeCustomChecker make
I am wondering whether I can get the name of the target for which the checker is being called right now. And if possible the name of the project as well. The most I am able to get so far is the file name (SourceManager::getFilename), but not the target or the project.
Thank You