1// RUN: %check_clang_tidy %s misc-include-cleaner %t \
2// RUN: -config='{CheckOptions: \
3// RUN: {"misc-include-cleaner.UnusedIncludes": false,\
4// RUN: "misc-include-cleaner.MissingIncludes": false,\
5// RUN: }}' -- -I%S/Inputs -isystem%S/Inputs/system -fno-delayed-template-parsing
6
7// CHECK-MESSAGES: warning: The check 'misc-include-cleaner' will not perform any analysis because 'UnusedIncludes' and 'MissingIncludes' are both false. [clang-tidy-config]
8
9#include "bar.h"
10// CHECK-FIXES-NOT: {{^}}#include "baz.h"{{$}}
11

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner-wrong-config.cpp