Skip to content

Commit

Permalink
- Update .clang-tidy to ignore parameters of main like functions for …
Browse files Browse the repository at this point in the history
…naming violations in clang and llvm directory

Summary: Every call to a main like function in llvm and clang lib violates the naming convention for parameters. This prevents clang-tidy warning on such breaches.

Reviewers: alexfh, hokein

Reviewed By: hokein

Subscribers: merge_guards_bot, aheejin, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D73715
  • Loading branch information
njames93 committed Jan 31, 2020
1 parent 44a4f5f commit f99133e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ CheckOptions:
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: CamelCase
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: 1

2 changes: 2 additions & 0 deletions clang/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ CheckOptions:
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: CamelCase
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: 1

2 changes: 2 additions & 0 deletions llvm/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ CheckOptions:
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: CamelCase
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: 1

0 comments on commit f99133e

Please sign in to comment.