I am working with Clang Libtooling. I need to run my clang MyFrontendAction on certain files specified in the command line.
CommonOptionsParser OptionsParser(argc, argv, MyToolCategory);
ClangTool Tool(OptionsParser.getCompilations(), OptionsParser.getSourcePathList());
int i=Tool.run(newFrontendActionFactory<MyFrontendAction>().get());
I run it by:
./(driver) file1 file2 --
and it runs my tool on both file1 and file2. I just want it to run on file1 and want to do some other stuff on file2. How can I do it?