Skip to content

Commit 28f25ff

Browse files
authored
Merge pull request #4780 from apple/revert-4776-needless-warning
2 parents fa86118 + 04107ed commit 28f25ff

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

lib/Basic/StringExtras.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ static StringRef omitNeedlessWords(StringRef name,
669669
NameRole::Partial, allPropertyNames, scratch);
670670
if (shortenedNameWord == newShortenedNameWord &&
671671
shortenedNameWord.back() == 'e') {
672-
shortenedNameWord = shortenedNameWord.drop_back();
672+
shortenedNameWord.drop_back();
673673
newShortenedNameWord =
674674
omitNeedlessWords(shortenedNameWord, typeName.CollectionElement,
675675
NameRole::Partial, allPropertyNames, scratch);

test/IDE/Inputs/custom-modules/OmitNeedlessWords.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
@interface SEGreebieArray : NSObject
88
@end
99

10-
@interface Echo : NSObject
11-
@end
12-
1310
typedef NS_OPTIONS(NSUInteger, OMWWobbleOptions) {
1411
OMWWobbleSideToSide = 0x01,
1512
OMWWobbleBackAndForth = 0x02,
@@ -24,7 +21,6 @@ typedef NS_OPTIONS(NSUInteger, OMWWobbleOptions) {
2421
-(void)jumpToTop:(nonnull id)sender;
2522
-(void)removeWithNoRemorse:(nonnull id)object;
2623
-(void)bookmarkWithURLs:(nonnull NSArray<NSURL *> *)urls;
27-
-(void)listenToEchoes:(nonnull NSArray<Echo *> *)echoes;
2824
-(void)saveToURL:(nonnull NSURL *)url forSaveOperation:(NSInteger)operation;
2925
-(void)indexWithItemNamed:(nonnull NSString *)name;
3026
-(void)methodAndReturnError:(NSError **)error;

test/IDE/print_omit_needless_words.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@
209209
// CHECK-OMIT-NEEDLESS-WORDS: func jumpToTop(_: Any)
210210
// CHECK-OMIT-NEEDLESS-WORDS: func removeWithNoRemorse(_: Any)
211211
// CHECK-OMIT-NEEDLESS-WORDS: func bookmark(with: [NSURL])
212-
// CHECK-OMIT-NEEDLESS-WORDS: func listen(to: [Echo])
213212
// CHECK-OMIT-NEEDLESS-WORDS: func save(to: NSURL, forSaveOperation: Int)
214213
// CHECK-OMIT-NEEDLESS-WORDS: func index(withItemNamed: String)
215214
// CHECK-OMIT-NEEDLESS-WORDS: func methodAndReturnError(_: AutoreleasingUnsafeMutablePointer<NSError?>!)

0 commit comments

Comments
 (0)