Checks for usages of identifiers reserved for use by the implementation.
+- New :doc:`bugprone-suspicious-include
+ <clang-tidy/checks/bugprone-suspicious-include>` check.
+
+ Finds cases where an include refers to what appears to be an implementation
+ file, which often leads to hard-to-track-down ODR violations, and diagnoses
+ them.
+
- New :doc:`cert-oop57-cpp
<clang-tidy/checks/cert-oop57-cpp>` check.
Finds recursive functions and diagnoses them.
-- New :doc:`bugprone-suspicious-include
- <clang-tidy/checks/bugprone-suspicious-include>` check.
-
- Finds includes that appear to be referring to implementation files (which
- tends to cause ODR violations), and diagnoses them.
-
New check aliases
^^^^^^^^^^^^^^^^^
bugprone-suspicious-include
===========================
-The checker detects various cases when an include refers to what appears to be
-an implementation file, which often leads to hard-to-track-down ODR violations.
+The check detects various cases when an include refers to what appears to be an
+implementation file, which often leads to hard-to-track-down ODR violations.
Examples:
-------
.. option:: HeaderFileExtensions
- Default value: ";h;hh;hpp;hxx"
+ Default value: `";h;hh;hpp;hxx"`
A semicolon-separated list of filename extensions of header files (the
filename extensions should not contain a "." prefix). For extension-less
header files, use an empty string or leave an empty string between ";"
.. option:: ImplementationFileExtensions
- Default value: "c;cc;cpp;cxx"
+ Default value: `"c;cc;cpp;cxx"`
Likewise, a semicolon-separated list of filename extensions of
implementation files.