[PATCH] D50542: [clang-tidy] Add abseil-no-internal-deps check
Hugo Gonzalez via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 10 08:25:58 PDT 2018
hugoeg added inline comments.
================
Comment at: clang-tidy/abseil/NoInternalDepsCheck.cpp:24
+
+ Finder->addMatcher(
+ nestedNameSpecifierLoc(loc(specifiesNamespace(namespaceDecl(
----------------
JonasToth wrote:
> Actually that one is generally useful. Accessing the `foo::internal` from outside of `foo` is always a problem. Maybe this matcher can become configurable or just match on any `internal` access from outside the enclosing namespace.
That's a good idea. While we agree, right now our efforts are focused on releasing abseil specific functions. Perhaps we can refactor this check at a later time.
https://reviews.llvm.org/D50542
More information about the cfe-commits
mailing list