[PATCH] D50542: [clang-tidy] Add abseil-no-internal-deps check
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 10 09:27:01 PDT 2018
JonasToth added a comment.
Thank you for your first contribution to LLVM btw :)
================
Comment at: clang-tidy/abseil/NoInternalDepsCheck.cpp:24
+
+ TODO(hugoeg): refactor matcher to be configurable or just match on any internal access from outside the enclosing namespace.
+
----------------
Missing //
================
Comment at: clang-tidy/abseil/NoInternalDepsCheck.cpp:35
+void NoInternalDepsCheck::check(const MatchFinder::MatchResult &Result) {
+ const auto *intr_dep =
+ Result.Nodes.getNodeAs<NestedNameSpecifierLoc>("internal_dep");
----------------
Please follow the LLVM naming convention (s/initr_dep/InternalDependency/ or similar)
https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly
for reference
https://reviews.llvm.org/D50542
More information about the cfe-commits
mailing list