File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -58,3 +58,20 @@ int x = foo();
58
58
// RUN: FileCheck --match-full-lines --check-prefix=EDIT3 %s < %t.cpp
59
59
// EDIT3: #include "foo.h"
60
60
// EDIT3-NOT: {{^}}#include "foobar.h"{{$}}
61
+
62
+ // RUN: clang-include-cleaner -insert=false -print=changes %s -- -I%S/Inputs/ 2>&1 | \
63
+ // RUN: FileCheck --check-prefix=DEPRECATED-INSERT %s
64
+ // DEPRECATED-INSERT: [WARNING] -insert is deprecated in favor of `-disable-insert`
65
+ // DEPRECATED-INSERT: The old flag was confusing since it suggested that inserts
66
+ // DEPRECATED-INSERT: were disabled by default, when they were actually enabled
67
+
68
+ // RUN: clang-include-cleaner -remove=false -print=changes %s -- -I%S/Inputs/ 2>&1 | \
69
+ // RUN: FileCheck --check-prefix=DEPRECATED-REMOVE %s
70
+ // DEPRECATED-REMOVE: [WARNING] -remove is deprecated in favor of `-disable-remove`
71
+ // DEPRECATED-REMOVE: The old flag was confusing since it suggested that removes
72
+ // DEPRECATED-REMOVE: were disabled by default, when they were actually enabled
73
+
74
+ // RUN: clang-include-cleaner -insert=false -remove=false -print=changes %s -- -I%S/Inputs/ 2>&1 | \
75
+ // RUN: FileCheck --check-prefix=DEPRECATED-BOTH %s
76
+ // DEPRECATED-BOTH: [WARNING] -insert is deprecated in favor of `-disable-insert`
77
+ // DEPRECATED-BOTH: [WARNING] -remove is deprecated in favor of `-disable-remove`
You can’t perform that action at this time.
0 commit comments