This enables the generation of build/compile_commands.json
which is a compilation database recognized by some IDE/editors
to provide compiler quality linting.
To name a few:
- Visual Studio Code
- VIM (with ALE plugin)
pkg-config --cflags for c++ libs includes -std=C++11
waf-1.6 has no concept to separate cflags/cxxflags in uselib for c files
clang error: invalid argument '-std=c++11' not allowed with 'C/ObjC'