[PATCH] D73715: - Update .clang-tidy to ignore parameters of main like functions for naming violations in clang and llvm directory
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 30 08:13:49 PST 2020
njames93 created this revision.
njames93 added reviewers: alexfh, hokein.
Herald added subscribers: llvm-commits, cfe-commits, aheejin.
Herald added projects: clang, LLVM.
njames93 marked an inline comment as done.
njames93 added inline comments.
================
Comment at: clang/.clang-tidy:23
+ - key: readability-identifier-naming.IgnoreMainLikeFunctions
+ value: 1
----------------
Although identifier-naming is disabled, its still a good idea to include this just in case people run clang tidy manually
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73715
Files:
.clang-tidy
clang/.clang-tidy
llvm/.clang-tidy
Index: llvm/.clang-tidy
===================================================================
--- llvm/.clang-tidy
+++ llvm/.clang-tidy
@@ -14,4 +14,6 @@
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: CamelCase
+ - key: readability-identifier-naming.IgnoreMainLikeFunctions
+ value: 1
Index: clang/.clang-tidy
===================================================================
--- clang/.clang-tidy
+++ clang/.clang-tidy
@@ -19,4 +19,6 @@
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: CamelCase
+ - key: readability-identifier-naming.IgnoreMainLikeFunctions
+ value: 1
Index: .clang-tidy
===================================================================
--- .clang-tidy
+++ .clang-tidy
@@ -14,4 +14,6 @@
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: CamelCase
+ - key: readability-identifier-naming.IgnoreMainLikeFunctions
+ value: 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73715.241471.patch
Type: text/x-patch
Size: 1137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200130/85a21af0/attachment-0001.bin>
More information about the cfe-commits
mailing list