Debian Codegraph @

llvm-project/clang-tools-extra/docs/clang-tidy/checks/google/build-using-namespace.rst

raw
1 .. title:: clang-tidy - google-build-using-namespace
2
3 google-build-using-namespace
4 ============================
5
6 Finds ``using namespace`` directives.
7
8 The check implements the following rule of the
9 `Google C++ Style Guide <https://google.github.io/styleguide/cppguide.html#Namespaces>`_:
10
11 You may not use a using-directive to make all names from a namespace
12 available.
13
14 .. code-block:: c++
15
16 // Forbidden -- This pollutes the namespace.
17 using namespace foo;
18
19 Corresponding cpplint.py check name: `build/namespaces`.