Skip to content

Commit 46293f0

Browse files
committed
fix failed tests
1 parent a858a86 commit 46293f0

File tree

1 file changed

+6
-10
lines changed
  • clang-tools-extra/include-cleaner/test

1 file changed

+6
-10
lines changed

clang-tools-extra/include-cleaner/test/tool.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,15 @@ int x = foo();
5959
// EDIT3: #include "foo.h"
6060
// EDIT3-NOT: {{^}}#include "foobar.h"{{$}}
6161

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
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=0' is deprecated in favor of '-disable-insert'. The old flag was confusing since it suggested that inserts were disabled by default, when they were actually enabled.
6765

6866
// RUN: clang-include-cleaner -remove=false -print=changes %s -- -I%S/Inputs/ 2>&1 | \
6967
// 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
68+
// DEPRECATED-REMOVE: warning: '-remove=0' is deprecated in favor of '-disable-remove'. The old flag was confusing since it suggested that removes were disabled by default, when they were actually enabled.
7369

7470
// RUN: clang-include-cleaner -insert=false -remove=false -print=changes %s -- -I%S/Inputs/ 2>&1 | \
7571
// 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'
72+
// DEPRECATED-BOTH: warning: '-insert=0' is deprecated in favor of '-disable-insert'. The old flag was confusing since it suggested that inserts were disabled by default, when they were actually enabled.
73+
// DEPRECATED-BOTH: warning: '-remove=0' is deprecated in favor of '-disable-remove'. The old flag was confusing since it suggested that removes were disabled by default, when they were actually enabled.

0 commit comments

Comments
 (0)