Skip to content

Commit f99133e

Browse files
committed
- Update .clang-tidy to ignore parameters of main like functions for 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
1 parent 44a4f5f commit f99133e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.clang-tidy

+2
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ CheckOptions:
1414
value: CamelCase
1515
- key: readability-identifier-naming.VariableCase
1616
value: CamelCase
17+
- key: readability-identifier-naming.IgnoreMainLikeFunctions
18+
value: 1
1719

clang/.clang-tidy

+2
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ CheckOptions:
1919
value: CamelCase
2020
- key: readability-identifier-naming.VariableCase
2121
value: CamelCase
22+
- key: readability-identifier-naming.IgnoreMainLikeFunctions
23+
value: 1
2224

llvm/.clang-tidy

+2
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ CheckOptions:
1414
value: CamelCase
1515
- key: readability-identifier-naming.VariableCase
1616
value: CamelCase
17+
- key: readability-identifier-naming.IgnoreMainLikeFunctions
18+
value: 1
1719

0 commit comments

Comments
 (0)