Skip to content

Commit a33d504

Browse files
committed
[clang-tidy] Update release notes
1 parent 07e1f95 commit a33d504

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ New check aliases
328328
<clang-tidy/checks/bugprone/copy-constructor-mutates-argument>`
329329
keeping initial check as an alias to the new one.
330330

331+
- Renamed :doc:`google-build-namespaces` to
332+
:doc:`misc-anonymous-namespace-in-header
333+
<clang-tidy/checks/misc/anonymous-namespace-in-header>`
334+
keeping initial check as an alias to the new one.
335+
331336
Changes in existing checks
332337
^^^^^^^^^^^^^^^^^^^^^^^^^^
333338

clang-tools-extra/test/clang-tidy/checkers/google/namespaces.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// RUN: clang-tidy %s -checks='-*,google-build-namespaces,google-build-using-namespace' -header-filter='.*' -- | FileCheck %s -implicit-check-not="{{warning|error}}:"
2+
#include "../misc/Inputs/anon-namespaces.h"
3+
// CHECK: warning: do not use unnamed namespaces in header files [google-build-namespaces]
14
using namespace spaaaace;
25
// CHECK: :[[@LINE-1]]:1: warning: do not use namespace using-directives; use using-declarations instead [google-build-using-namespace]
36

0 commit comments

Comments
 (0)