summaryrefslogtreecommitdiffstats
path: root/tests/cxx/check_also.cc
blob: 89b9e92a395a436a67a6b5007704f2fd9c82bcd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//===--- check_also.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.
//
//===----------------------------------------------------------------------===//

// Tests the '--check_also' flag.

#include "check_also-d1.h"   // part of the --check-also glob
#include "check_also-n1.h"   // not part of the --check-also glob

int main() {
  // IWYU: kI1 is...*check_also-i1.h
  return kI1;
}

/**** IWYU_SUMMARY

tests/cxx/check_also.cc should add these lines:
#include "tests/cxx/check_also-i1.h"

tests/cxx/check_also.cc should remove these lines:
- #include "check_also-d1.h"  // lines XX-XX
- #include "check_also-n1.h"  // lines XX-XX

The full include-list for tests/cxx/check_also.cc:
#include "tests/cxx/check_also-i1.h"  // for kI1

***** IWYU_SUMMARY */