summaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorSergei Barannikov <barannikov88@gmail.com>2023-05-02 20:12:32 +0300
committerSergei Barannikov <barannikov88@gmail.com>2023-05-06 02:33:20 +0300
commit4c9f1584ce2c373dc571068af5fd65f2e16d05d2 (patch)
tree9173df47bd37012e20e22e957a4f707c3b862ac8 /.clang-tidy
parentcfad2d3a3d62fee089ad2ac1e87029bb3d00f17f (diff)
downloadllvm-4c9f1584ce2c373dc571068af5fd65f2e16d05d2.tar.gz
Add -misc-use-anonymous-namespace to .clang-tidy
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. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D149664
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy2
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 7a42058034fb..4e1cb114f43b 100644
--- a/.clang-tidy
+++ b/.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