[PATCH] D23421: [Clang-tidy] CERT-DCL58-CPP (checker for std namespace modification)

Gábor Horváth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 15 04:15:09 PST 2017


xazax.hun updated this revision to Diff 88506.
xazax.hun marked 3 inline comments as done.
xazax.hun retitled this revision from "[Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)" to "[Clang-tidy] CERT-DCL58-CPP (checker for std namespace modification)".
xazax.hun edited the summary of this revision.
xazax.hun added a comment.

- Add a simulated system header for tests.
- Do not warn on explicit template specializations within std namespace.
- Do not warn when the namespace is empty (so no declaration is introduced within the namespace)
- Extended the test cases.
- Added a link to the documentation
- Updated the name of the checker in the description and title of this revision.


https://reviews.llvm.org/D23421

Files:
  clang-tidy/cert/CERTTidyModule.cpp
  clang-tidy/cert/CMakeLists.txt
  clang-tidy/cert/DontModifyStdNamespaceCheck.cpp
  clang-tidy/cert/DontModifyStdNamespaceCheck.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/cert-dcl58-cpp.rst
  docs/clang-tidy/checks/list.rst
  test/clang-tidy/Inputs/Headers/system.h
  test/clang-tidy/cert-dcl58-cpp.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23421.88506.patch
Type: text/x-patch
Size: 8214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170215/edb99e7f/attachment-0001.bin>


More information about the cfe-commits mailing list