blob: b7aa6ea623fa58cce518f098f8624ac6dded748d (
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
33
34
35
36
37
38
|
//===--- cxx17ns.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: -Xiwyu --cxx17ns -std=c++17 -I .
#include "tests/cxx/cxx17ns-i1.h"
struct Two {
Two(a::b::c::One& one);
Two(a::b::One2& one);
Two(a::One3& one);
Two(a::One4& one);
};
/**** IWYU_SUMMARY
tests/cxx/cxx17ns.cc should add these lines:
namespace a { namespace { struct One4; } }
namespace a { struct One3; }
namespace a::b { struct One2; }
namespace a::b::c { struct One; }
tests/cxx/cxx17ns.cc should remove these lines:
- #include "tests/cxx/cxx17ns-i1.h" // lines XX-XX
The full include-list for tests/cxx/cxx17ns.cc:
namespace a { namespace { struct One4; } }
namespace a { struct One3; }
namespace a::b { struct One2; }
namespace a::b::c { struct One; }
***** IWYU_SUMMARY */
|