llvm-project/clang-tools-extra/clang-tidy/tool
Nathan James fbf611ed2a
[clang-tidy] Extend spelling for CheckOptions
The current way to specify CheckOptions is pretty verbose and unintuitive.
Given that the options are a dictionary it makes much more sense to treat them as such in the config files.
Example:
```
CheckOptions: {SomeCheck.Option: true, SomeCheck.OtherOption: 'ignore'}
# Or
CheckOptions:
  SomeCheck.Option: true
  SomeCheck.OtherOption: 'ignore'
```

This change will still handle the old syntax with no issue, ensuring we don't screw up users current config files.

The only observable differences are support for the new syntax and `-dump=config` will emit using the new syntax.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D128337
2022-06-23 19:59:31 +01:00
..
CMakeLists.txt Reland "enable plugins for clang-tidy" 2022-02-01 17:37:24 -05:00
ClangTidyMain.cpp [clang-tidy] Extend spelling for CheckOptions 2022-06-23 19:59:31 +01:00
ClangTidyMain.h [clang-tidy] Add library for clang-tidy main function 2020-01-24 13:00:45 -08:00
ClangTidyToolMain.cpp [clang-tidy] Add library for clang-tidy main function 2020-01-24 13:00:45 -08:00
clang-tidy-diff.py [clang-tidy] support --load in clang-tidy-diff.py/run-clang-tidy.py 2022-04-28 13:49:18 +02:00
run-clang-tidy.py [clang-tidy] Extend spelling for CheckOptions 2022-06-23 19:59:31 +01:00