[all-commits] [llvm/llvm-project] 4c9f15: Add -misc-use-anonymous-namespace to .clang-tidy

Sergei Barannikov via All-commits all-commits at lists.llvm.org
Fri May 5 16:33:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c9f1584ce2c373dc571068af5fd65f2e16d05d2
      https://github.com/llvm/llvm-project/commit/4c9f1584ce2c373dc571068af5fd65f2e16d05d2
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2023-05-06 (Sat, 06 May 2023)

  Changed paths:
    M .clang-tidy

  Log Message:
  -----------
  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




More information about the All-commits mailing list