[PATCH] D49890: Clang-Tidy Export Problem

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 27 06:08:53 PDT 2018


lebedev.ri added a comment.

I'm not sure what this differential *actually* does.

That being said
https://clang.llvm.org/docs/JSONCompilationDatabase.html#format

> directory: The working directory of the compilation. All paths specified in the command or file fields must be either absolute or relative to this directory.
>  file: The main translation unit source processed by this compilation step. This is used by tools as the key into the compilation database. There can be multiple command objects for the same file, for example if the same source file is compiled with different configurations.

Can you just make clang-tidy respect the `directory` value?
If `directory` is invalid, then it is not a valid Compilation Database to begin with..


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D49890





More information about the cfe-commits mailing list