This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] add option to specify build path
ClosedPublic

Authored by Sarcasm on Sep 27 2015, 11:15 AM.

Details

Summary

compile_commands.json is usually generated in the build directory.
Projects like LLVM/Clang enforce out-of-source builds.
This option allow allow such projects to work out of the box, without
moving the compilation database manually.

The naming of the option is similar to the one use by other tools:

clang-{check,modernize,query,rename,tidy} -p=<build_path> <...>

Diff Detail

Repository
rL LLVM

Event Timeline

Sarcasm updated this revision to Diff 35822.Sep 27 2015, 11:15 AM
Sarcasm retitled this revision from to [clang-tidy] add option to specify build path.
Sarcasm updated this object.
Sarcasm added a reviewer: alexfh.
alexfh accepted this revision.Sep 28 2015, 8:23 AM
alexfh edited edge metadata.

Looks good!

This revision is now accepted and ready to land.Sep 28 2015, 8:23 AM
This revision was automatically updated to reflect the committed changes.