[PATCH] D75184: [clang-tidy] Optional inheritance of file configs from parent directories
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 09:41:14 PDT 2020
njames93 added a comment.
How are local and global options handled.
For example in root .clang-tidy:
CheckOptions:
- key: some-check.GlobalOption
value: '1'
and in a subfolder .clang-tidy:
CheckOptions:
- key: GlobalOption
value: '0'
Should some-check read GlobalOption (with `Options::getLocalOrGlobal`) as:
- 0 - from the highest level config file or
- 1 - from the highest level local config option.
>From what I can gather it will read the value as `1` as the local option is checked first no matter which file it was defined in.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75184/new/
https://reviews.llvm.org/D75184
More information about the cfe-commits
mailing list