- Update .clang-tidy to ignore parameters of main like functions for naming violation...
authorNathan James <n.james93@hotmail.co.uk>
Fri, 31 Jan 2020 16:49:13 +0000 (16:49 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Fri, 31 Jan 2020 16:49:45 +0000 (16:49 +0000)
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

.clang-tidy
clang/.clang-tidy
llvm/.clang-tidy

index 3f407e0..e7e0830 100644 (file)
@@ -14,4 +14,6 @@ CheckOptions:
     value:           CamelCase
   - key:             readability-identifier-naming.VariableCase
     value:           CamelCase
+  - key:             readability-identifier-naming.IgnoreMainLikeFunctions
+    value:           1
 
index 849c269..5b425a7 100644 (file)
@@ -19,4 +19,6 @@ CheckOptions:
     value:           CamelCase
   - key:             readability-identifier-naming.VariableCase
     value:           CamelCase
+  - key:             readability-identifier-naming.IgnoreMainLikeFunctions
+    value:           1
 
index 3f407e0..e7e0830 100644 (file)
@@ -14,4 +14,6 @@ CheckOptions:
     value:           CamelCase
   - key:             readability-identifier-naming.VariableCase
     value:           CamelCase
+  - key:             readability-identifier-naming.IgnoreMainLikeFunctions
+    value:           1