| 1 |
.. title:: clang-tidy - google-global-names-in-headers |
| 2 |
|
| 3 |
google-global-names-in-headers |
| 4 |
============================== |
| 5 |
|
| 6 |
Flag global namespace pollution in header files. Right now it only triggers on |
| 7 |
``using`` declarations and directives. |
| 8 |
|
| 9 |
The relevant style guide section is |
| 10 |
https://google.github.io/styleguide/cppguide.html#Namespaces. |
| 11 |
|
| 12 |
Options |
| 13 |
------- |
| 14 |
|
| 15 |
.. option:: HeaderFileExtensions |
| 16 |
|
| 17 |
A comma-separated list of filename extensions of header files (the filename |
| 18 |
extensions should not contain "." prefix). Default is "h". |
| 19 |
For header files without an extension, use an empty string (if there are no |
| 20 |
other desired extensions) or leave an empty element in the list. E.g., |
| 21 |
"h,hh,hpp,hxx," (note the trailing comma). |