[PATCH] [clang-tidy] Add a namespace checker.

Benjamin Kramer benny.kra at gmail.com
Tue Jul 15 09:58:27 PDT 2014


Hi alexfh, djasper,

This warns on two constructs.
1. anonymous namespaces in header files.
2. using namespace directives everywhere.

http://reviews.llvm.org/D4523

Files:
  clang-tidy/google/CMakeLists.txt
  clang-tidy/google/GoogleTidyModule.cpp
  clang-tidy/google/NamespacesCheck.cpp
  clang-tidy/google/NamespacesCheck.h
  test/clang-tidy/Inputs/google-namespaces.h
  test/clang-tidy/google-member-string-references.cpp
  test/clang-tidy/google-namespaces.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4523.11452.patch
Type: text/x-patch
Size: 6750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140715/a3f448b2/attachment.bin>


More information about the cfe-commits mailing list