Skip to content

Commit 07e1f95

Browse files
committed
[clang-tidy] Replace 'google-build-namespaces' checks with 'misc-anonymous-namespace-in-header' in tests and move it to coresponding place
1 parent 84388d2 commit 07e1f95

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

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

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

clang-tools-extra/test/clang-tidy/checkers/google/Inputs/google-namespaces.h renamed to clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/anon-namespaces.h

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

0 commit comments

Comments
 (0)