Add clang-tidy check google-global-names-in-headers.
authorSamuel Benzaquen <sbenza@google.com>
Wed, 11 Feb 2015 21:21:05 +0000 (21:21 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Wed, 11 Feb 2015 21:21:05 +0000 (21:21 +0000)
commit59c8aa92b8933fdf1cfefdaadc877c7ad640d4cb
treee9d9fd05535a4433382744f98fad68c71c05c2e2
parent3e76643a957a2ff569b19c96a61587b1895edc84
Add clang-tidy check google-global-names-in-headers.

Summary:
google-global-names-in-headers flags global namespace pollution in header files.
Right now it only triggers on using declarations and directives.

Reviewers: alexfh

Subscribers: curdeius

Differential Revision: http://reviews.llvm.org/D7563

llvm-svn: 228875
clang-tools-extra/clang-tidy/google/CMakeLists.txt
clang-tools-extra/clang-tidy/google/GlobalNamesInHeadersCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/google/GlobalNamesInHeadersCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp