[PATCH] D55409: [clang-tidy] check for using declarations not in an anonymous namespace when there exists one

Yucheng Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 6 20:54:11 PST 2018


Ywicheng created this revision.
Ywicheng added reviewers: alexfh, hokein, aaron.ballman, astrelni, EricWF, JonasToth.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.

This patch adds one check corresponding to the Unnamed Namespace section in https://abseil.io/tips/119.

In particular, if there exists an anonymous, it is better to put all aliases there.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D55409

Files:
  clang-tidy/abseil/AbseilTidyModule.cpp
  clang-tidy/abseil/AnonymousEnclosedAliasesCheck.cpp
  clang-tidy/abseil/AnonymousEnclosedAliasesCheck.h
  clang-tidy/abseil/CMakeLists.txt
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/abseil-anonymous-enclosed-aliases.rst
  docs/clang-tidy/checks/list.rst
  test/clang-tidy/abseil-anonymous-enclosed-aliases.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55409.177111.patch
Type: text/x-patch
Size: 9109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181207/b659ce2a/attachment-0001.bin>


More information about the cfe-commits mailing list