25 lines · plain
1.. title:: clang-tidy - abseil-no-internal-dependencies2 3abseil-no-internal-dependencies4===============================5 6Warns if code using Abseil depends on internal details. If something is in a7namespace that includes the word "internal", code is not allowed to depend upon8it because it's an implementation detail. They cannot friend it, include it,9you mention it or refer to it in any way. Doing so violates Abseil's10compatibility guidelines and may result in breakage. See11https://abseil.io/about/compatibility for more information.12 13The following cases will result in warnings:14 15.. code-block:: c++16 17 absl::strings_internal::foo();18 // warning triggered on this line19 class foo {20 friend struct absl::container_internal::faa;21 // warning triggered on this line22 };23 absl::memory_internal::MakeUniqueResult();24 // warning triggered on this line25