Skip to content

Commit

Permalink
ci: exclude Google Test macros from clang-tidy (#16557)
Browse files Browse the repository at this point in the history
Signed-off-by: James Peach <[email protected]>
  • Loading branch information
jpeach authored May 21, 2021
1 parent 02f3162 commit 25574b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ CheckOptions:
- key: readability-identifier-naming.EnumConstantCase
value: 'CamelCase'

# Ignore GoogleTest function macros.
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: '(TEST|TEST_F|TEST_P|INSTANTIATE_TEST_SUITE_P|MOCK_METHOD|TYPED_TEST)'

- key: readability-identifier-naming.ParameterCase
value: 'lower_case'

Expand Down

0 comments on commit 25574b4

Please sign in to comment.