1.. title:: clang-tidy - llvmlibc-callee-namespace
2
3llvmlibc-callee-namespace
4====================================
5
6Checks all calls resolve to functions within ``__llvm_libc`` namespace.
7
8.. code-block:: c++
9
10    namespace __llvm_libc {
11
12    // Allow calls with the fully qualified name.
13    __llvm_libc::strlen("hello");
14
15    // Allow calls to compiler provided functions.
16    (void)__builtin_abs(-1);
17
18    // Bare calls are allowed as long as they resolve to the correct namespace.
19    strlen("world");
20
21    // Disallow calling into functions in the global namespace.
22    ::strlen("!");
23
24    } // namespace __llvm_libc
25