[PATCH] D55346: [clang-tidy] check for using declaration scope and qualification
Shyan Akmal via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 5 16:39:58 PST 2018
Naysh created this revision.
Naysh added reviewers: EricWF, JonasToth.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.
This patch adds four new, small checks corresponding to the guidelines in https://abseil.io/tips/119.
The checks are:
- Alias Free Headers: makes sure header files do not use convenience aliases
- Anonymous Enclosed Aliases: suggests that using declarations be moved to existing anonymous namespaces
- Qualified Aliases: suggests using declarations be fully qualified
- Safely Scoped: suggests using declarations be moved to innermost namespaces
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D55346
Files:
.gitignore
clang-tidy/abseil/AbseilTidyModule.cpp
clang-tidy/abseil/AliasFreeHeadersCheck.cpp
clang-tidy/abseil/AliasFreeHeadersCheck.h
clang-tidy/abseil/AnonymousEnclosedAliasesCheck.cpp
clang-tidy/abseil/AnonymousEnclosedAliasesCheck.h
clang-tidy/abseil/CMakeLists.txt
clang-tidy/abseil/QualifiedAliasesCheck.cpp
clang-tidy/abseil/QualifiedAliasesCheck.h
clang-tidy/abseil/SafelyScopedCheck.cpp
clang-tidy/abseil/SafelyScopedCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/abseil-alias-free-headers.rst
docs/clang-tidy/checks/abseil-anonymous-enclosed-aliases.rst
docs/clang-tidy/checks/abseil-qualified-aliases.rst
docs/clang-tidy/checks/abseil-safely-scoped.rst
docs/clang-tidy/checks/list.rst
test/clang-tidy/abseil-alias-free-headers.hpp
test/clang-tidy/abseil-anonymous-enclosed-aliases.cpp
test/clang-tidy/abseil-qualified-aliases.cpp
test/clang-tidy/abseil-safely-scoped.cpp
test/clang-tidy/temporaries.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55346.176900.patch
Type: text/x-patch
Size: 26534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181206/7e7e0595/attachment-0001.bin>
More information about the cfe-commits
mailing list