//===--- associated_h_file_heuristic.cc - test input file for iwyu --------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // IWYU_ARGS: -I . // Tests that we correctly say that a .h is an 'associated' .h file // of a .cc file if it occurs first and shares a basename. #include "tests/cxx/internal/associated_h_file_heuristic.h" #include #include FILE* f = 0; /**** IWYU_SUMMARY tests/cxx/associated_h_file_heuristic.cc should add these lines: tests/cxx/associated_h_file_heuristic.cc should remove these lines: - #include // lines XX-XX The full include-list for tests/cxx/associated_h_file_heuristic.cc: #include "tests/cxx/internal/associated_h_file_heuristic.h" #include // for FILE ***** IWYU_SUMMARY */