Our GN produce compilation_database.json with several records for same C++ files when we compile it for several toolset, but clang-tidy always silently use first entry.
My suggestion to report error and exit when compilation_database.json contain several records for file and maybe add special argument that restore old behaviour.
For example, we can compile same file for these toolsets:
Our GN produce
compilation_database.json
with several records for same C++ files when we compile it for several toolset, but clang-tidy always silently use first entry.My suggestion to report error and exit when
compilation_database.json
contain several records for file and maybe add special argument that restore old behaviour.For example, we can compile same file for these toolsets:
g++
arm-none-eabi-g++ -mthumb -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16
arm-none-eabi-g++ -marm -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4