brintos

brintos / llvm-project-archived public Read only

0
0
Text · 729 B · 4fbfa25 Raw
25 lines · plain
1.. title:: clang-tidy - bugprone-suspicious-include2 3bugprone-suspicious-include4===========================5 6The check detects various cases when an include refers to what appears to be an7implementation file, which often leads to hard-to-track-down ODR violations.8 9Examples:10 11.. code-block:: c++12 13  #include "Dinosaur.hpp"     // OK, .hpp files tend not to have definitions.14  #include "Pterodactyl.h"    // OK, .h files tend not to have definitions.15  #include "Velociraptor.cpp" // Warning, filename is suspicious.16  #include_next <stdio.c>     // Warning, filename is suspicious.17 18Options19-------20 21.. option::  IgnoredRegex22 23   A regular expression for the file name to be ignored by the check. Default24   is empty string.25