[PATCH] D50542: [clang-tidy] Add abseil-no-internal-deps check

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 11 03:27:10 PDT 2018


JonasToth added a comment.

No concerns except the small nits from my side.



================
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.
+  
----------------
Nit: This comment is very long, pls break the line


================
Comment at: docs/clang-tidy/checks/abseil-no-internal-deps.rst:6
+
+Gives a warning if code using Abseil depends on internal details. If something is in a namespace or filename/path that includes the word “internal”, code is not allowed to depend upon it beaucse it’s an implementation detail. They cannot friend it, include it, you mention it or refer to it in any way. Doing so violtaes Abseil's compatibility guidelines and may result in breakage.
+
----------------
s/violtaes/violates/


================
Comment at: docs/clang-tidy/checks/abseil-no-internal-deps.rst:8
+
+The folowing cases will result in warnings:
+
----------------
s/folowing/following/


https://reviews.llvm.org/D50542





More information about the cfe-commits mailing list