This patch adds a "Qualified Aliases" check, based off the guidelines in https://abseil.io/tips/119, to the abseil module.
The check flags any using declarations which are not fully qualified.
Paths
| Differential D55346
[clang-tidy] check for using declaration qualification Needs RevisionPublic Authored by Naysh on Dec 5 2018, 4:39 PM.
Details Summary This patch adds a "Qualified Aliases" check, based off the guidelines in https://abseil.io/tips/119, to the abseil module. The check flags any using declarations which are not fully qualified.
Diff Detail Event TimelineHerald added subscribers: cfe-commits, xazax.hun, mgorny. · View Herald TranscriptDec 5 2018, 4:39 PM Eugene.Zelenko added inline comments.
Comment Actions Could you send each check in a separate patch, please? This makes the review much more straightforward and I'm sure it will be faster too. This revision now requires changes to proceed.Dec 6 2018, 6:00 AM
Naysh retitled this revision from [clang-tidy] check for using declaration scope and qualification to [clang-tidy] check for using declaration qualification. Comment ActionsTo respond to alexfh's request to split this submission into four separate patches (corresponding to each of the introduced checks), I've updated the patch to only include the "Qualified Aliases" check. I'll add the other checks as separate patches.
This revision now requires changes to proceed.Oct 12 2020, 6:57 AM
Revision Contents
Diff 176900 .gitignore
clang-tidy/abseil/AbseilTidyModule.cppclang-tidy/abseil/AliasFreeHeadersCheck.h
clang-tidy/abseil/AliasFreeHeadersCheck.cpp
clang-tidy/abseil/AnonymousEnclosedAliasesCheck.h
clang-tidy/abseil/AnonymousEnclosedAliasesCheck.cpp
clang-tidy/abseil/CMakeLists.txt
clang-tidy/abseil/QualifiedAliasesCheck.h
clang-tidy/abseil/QualifiedAliasesCheck.cpp
clang-tidy/abseil/SafelyScopedCheck.h
clang-tidy/abseil/SafelyScopedCheck.cpp
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
|
Please upload the patch with full context. See https://llvm.org/docs/Phabricator.html