linter-clang icon indicating copy to clipboard operation
linter-clang copied to clipboard

Support build directory

Open szechyjs opened this issue 9 years ago • 3 comments

I currently use cmake and the convention is to use a build directory. As a result the compile_commands.json file is placed in the build directory and not the project root.

It would be nice it we could specify a path to look for the compile_commands.json file.

szechyjs avatar Jan 18 '16 18:01 szechyjs

Any progress on this? Would really like to see this feature.

seveibar avatar Jun 10 '16 23:06 seveibar

Considering that CMake is one of the most spread build systems, and out-of-tree compilation is very common, looking for the compile_commands.json file in the ${PROJECT_SOURCE_DIR}/build directory would be a great feature.

+1

diegoferigo avatar Apr 04 '17 12:04 diegoferigo

This sounds like it would actually be better filed on clang-flags as that is what is used to bring in support for automated arguments to clang.

Arcanemagus avatar Apr 04 '17 16:04 Arcanemagus