Hi all,
I'm writing some basic static analysis tools for Blink and Chromium, and I wondered if anyone could tell me the best way to provide the correct includes and defines to each file being analysed? For context, I'm using libtooling and running the script over a subtree of code. Clang docs seem to suggest that getting cmake to generate a JSON-formatted compilation database is the typical way to go about this, but with Chromium's slightly funky build system, I'm not sure that's an option.
I've seen a project called Build EAR (BEAR), which looks like it intercepts calls to the compiler and stashes the options used for each one, but I know a number of Googlers are using Clang, and I'm sure they've got a better / less hacky way.
Thanks in advance,
Jon