summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/google-namespaces.cpp
blob: 12c0b2ddcdecc34cc02356e3600183fb15412e30 (plain)
1
2
3
4
5
6
7
8
// RUN: clang-tidy %s -checks='-*,google-build-namespaces,google-build-using-namespace' -header-filter='.*' -- | FileCheck %s -implicit-check-not="{{warning|error}}:"
#include "Inputs/google-namespaces.h"
// CHECK: warning: do not use unnamed namespaces in header files.

using namespace spaaaace;
// CHECK: :[[@LINE-1]]:1: warning: do not use namespace using-directives. Use using-declarations instead.

using spaaaace::core; // no-warning
OpenPOWER on IntegriCloud