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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to