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.
Paths
| Differential D55409
[clang-tidy] check for using declarations not in an anonymous namespace when there exists one Needs ReviewPublic Authored by Ywicheng on Dec 6 2018, 8:53 PM.
Details Summary 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.
Diff Detail Event TimelineHerald added subscribers: cfe-commits, xazax.hun, mgorny. · View Herald TranscriptDec 6 2018, 8:53 PM aaron.ballman added inline comments.
This revision now requires changes to proceed.Dec 10 2018, 5:06 AM Naysh added inline comments.
Revision Contents
Diff 195656 clang-tidy/abseil/AbseilTidyModule.cpp
clang-tidy/abseil/AnonymousEnclosedAliasesCheck.h
clang-tidy/abseil/AnonymousEnclosedAliasesCheck.cpp
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
|
Detecting incorrect -> Detecting the incorrect