[PATCH] D149664: Add -misc-use-anonymous-namespace to .clang-tidy
Sergei Barannikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 10:13:27 PDT 2023
barannikov88 created this revision.
Herald added a subscriber: carlosgalvezp.
Herald added a project: All.
barannikov88 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.
This is at odds with the coding standard.
Quoting https://llvm.org/docs/CodingStandards.html#anonymous-namespaces
> Because of this, we have a simple guideline: make anonymous namespaces
as small as possible, and only use them for class declarations.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149664
Files:
.clang-tidy
Index: .clang-tidy
===================================================================
--- .clang-tidy
+++ .clang-tidy
@@ -1,4 +1,4 @@
-Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
+Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,-misc-use-anonymous-namespace,readability-identifier-naming'
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149664.518785.patch
Type: text/x-patch
Size: 654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230502/feec4c70/attachment.bin>
More information about the llvm-commits
mailing list