1 // RUN: %check_clang_tidy %s bugprone-suspicious-include %t -- -- -isystem %S/Inputs/Headers -fmodules
2 
3 // clang-format off
4 
5 // CHECK-MESSAGES: [[@LINE+4]]:11: warning: suspicious #include of file with '.cpp' extension
6 // CHECK-MESSAGES: [[@LINE+3]]:11: note: did you mean to include 'a'?
7 // CHECK-MESSAGES: [[@LINE+2]]:11: note: did you mean to include 'a.h'?
8 // CHECK-MESSAGES: [[@LINE+1]]:11: note: did you mean to include 'a.hpp'?
9 #include "a.cpp"
10 
11 // CHECK-MESSAGES: [[@LINE+2]]:11: warning: suspicious #include of file with '.cpp' extension
12 // CHECK-MESSAGES: [[@LINE+1]]:11: note: did you mean to include 'i.h'?
13 #include "i.cpp"
14 
15 #include "b.h"
16 
17 // CHECK-MESSAGES: [[@LINE+1]]:16: warning: suspicious #include_next of file with '.c' extension
18 #include_next <c.c>
19 
20 // CHECK-MESSAGES: [[@LINE+1]]:13: warning: suspicious #include of file with '.cc' extension
21 # include  <c.cc>
22 
23 // CHECK-MESSAGES: [[@LINE+1]]:14: warning: suspicious #include of file with '.cxx' extension
24 #  include  <c.cxx>
25