summaryrefslogtreecommitdiffstats
path: root/tests/cxx/no_comments.cc
blob: a30c6b5c019a556032aadc5871cb77cb5c2383bb (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
//===--- no_comments.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 --no_comments -I .

// Test that passing the --no_comments switch to IWYU suppresses both
// '// lines NN-NN' and '// for symbol' comments.

#include "tests/cxx/direct.h"

// IWYU: IndirectClass is...*indirect.h
IndirectClass global;

/**** IWYU_SUMMARY

tests/cxx/no_comments.cc should add these lines:
#include "tests/cxx/indirect.h"

tests/cxx/no_comments.cc should remove these lines:
- #include "tests/cxx/direct.h"

The full include-list for tests/cxx/no_comments.cc:
#include "tests/cxx/indirect.h"

***** IWYU_SUMMARY */