@@ -92,7 +92,8 @@ cl::opt<bool> Edit{
92
92
};
93
93
cl::opt<bool > Insert{
94
94
" insert" ,
95
- cl::desc (" Allow header insertions (deprecated. Use -disable-insert instead)" ),
95
+ cl::desc (
96
+ " Allow header insertions (deprecated. Use -disable-insert instead)" ),
96
97
cl::init (true ),
97
98
cl::cat (IncludeCleaner),
98
99
};
@@ -196,17 +197,19 @@ class Action : public clang::ASTFrontendAction {
196
197
getCompilerInstance ().getPreprocessor (), HeaderFilter);
197
198
198
199
if (!Insert) {
199
- llvm::errs () << " `-insert=0` is deprecated in favor of `-disable-insert`. "
200
- " The old flag was confusing since it suggested that inserts "
201
- " were disabled by default, when they were actually enabled. "
202
- " See https://github.com/llvm/llvm-project/issues/132983\n " ;
200
+ llvm::errs ()
201
+ << " [WARNING] -insert is deprecated in favor of `-disable-insert`. "
202
+ " The old flag was confusing since it suggested that inserts "
203
+ " were disabled by default, when they were actually enabled. "
204
+ " See https://github.com/llvm/llvm-project/issues/132983\n " ;
203
205
}
204
206
205
207
if (!Remove) {
206
- llvm::errs () << " `-remove=0` is deprecated in favor of `-disable-remove`. "
207
- " The old flag was confusing since it suggested that removes "
208
- " were disabled by default, when they were actually enabled. "
209
- " See https://github.com/llvm/llvm-project/issues/132983\n " ;
208
+ llvm::errs ()
209
+ << " [WARNING] -remove is deprecated in favor of `-disable-remove`. "
210
+ " The old flag was confusing since it suggested that removes "
211
+ " were disabled by default, when they were actually enabled. "
212
+ " See https://github.com/llvm/llvm-project/issues/132983\n " ;
210
213
}
211
214
212
215
if (!Insert || DisableInsert)
0 commit comments