summaryrefslogtreecommitdiffstats
path: root/tests/cxx/depopulated_h_file.cc
blob: 960d9c504350a299059369051343be23fc1973da (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
//===--- depopulated_h_file.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 .

// The directly-included file contains only an inclusion of the file
// defining Foo. IWYU should recommend that inclusion be moved to this file.
#include "tests/cxx/depopulated_h_file.h"

void foo() {
  Foo::Bar();
}

/**** IWYU_SUMMARY

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

tests/cxx/depopulated_h_file.cc should remove these lines:

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

***** IWYU_SUMMARY */