1 //===--- check_also.cc - test input file for iwyu -------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // Tests the '--check_also' flag. 11 12 #include "check_also-d1.h" // part of the --check-also glob 13 #include "check_also-n1.h" // not part of the --check-also glob 14 main()15int main() { 16 // IWYU: kI1 is...*check_also-i1.h 17 return kI1; 18 } 19 20 /**** IWYU_SUMMARY 21 22 tests/cxx/check_also.cc should add these lines: 23 #include "tests/cxx/check_also-i1.h" 24 25 tests/cxx/check_also.cc should remove these lines: 26 - #include "check_also-d1.h" // lines XX-XX 27 - #include "check_also-n1.h" // lines XX-XX 28 29 The full include-list for tests/cxx/check_also.cc: 30 #include "tests/cxx/check_also-i1.h" // for kI1 31 32 ***** IWYU_SUMMARY */ 33