I was generating AST for Objective C code on a .m file
The command is roughly like clang-check -ast-dump /source/file.m &> /output/file.txt
It had an error that said
Error while trying to load a compilation database: Could not auto-detect compilation database for file '/source/file.m'
No compilation database found in /source or any parent directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
In file included from /source .. fatal error:'UIKit/UIKit.h' file not found
I'm not sure if it's related to the error thrown above, but many of my CompoundStmt blocks are empty. If they contain C or C++ code then they are reflected in the CompoundStmt, but not when it contains code like NSString *query = [NSString stringWithFormat:@"select * from peopleInfo where peopleInfoID=%d, self.recordIDToEdit]
or even NSString *abc = "ABC"