forked from OSchip/llvm-project
Make the spacing of the code completion result for NSDictionary
literals match the spacing introduced by the ObjC modernizer. Fixes the rest of <rdar://problem/11889572>. llvm-svn: 162084
This commit is contained in:
parent
cda209a944
commit
e3eb777415
|
@ -4476,7 +4476,6 @@ static void AddObjCExpressionResults(ResultBuilder &Results, bool NeedAt) {
|
|||
Builder.AddResultTypeChunk("NSDictionary *");
|
||||
Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"{"));
|
||||
Builder.AddPlaceholderChunk("key");
|
||||
Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
|
||||
Builder.AddChunk(CodeCompletionString::CK_Colon);
|
||||
Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
|
||||
Builder.AddPlaceholderChunk("object, ...");
|
||||
|
|
|
@ -11,7 +11,7 @@ id testCompleteAfterAtSign() {
|
|||
// CHECK-AT: COMPLETION: Pattern : [#char[]#]encode(<#type-name#>)
|
||||
// CHECK-AT: COMPLETION: Pattern : [#Protocol *#]protocol(<#protocol-name#>)
|
||||
// CHECK-AT: COMPLETION: Pattern : [#SEL#]selector(<#selector#>)
|
||||
// CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#> : <#object, ...#>}
|
||||
// CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#>: <#object, ...#>}
|
||||
|
||||
// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:11 %s -fconst-strings -o - | FileCheck -check-prefix=CONST-STRINGS %s
|
||||
// CHECK-CONST-STRINGS: COMPLETION: Pattern : [#const char[]#]encode(<#type-name#>)
|
||||
|
|
|
@ -21,7 +21,7 @@ __strong id global;
|
|||
// CHECK-CC1: NotImplemented:{ResultType NSString *}{TypedText @"}{Placeholder string}{Text "} (40)
|
||||
// CHECK-CC1: NotImplemented:{ResultType id}{TypedText @(}{Placeholder expression}{RightParen )} (40)
|
||||
// CHECK-CC1: NotImplemented:{ResultType NSArray *}{TypedText @[}{Placeholder objects, ...}{RightBracket ]} (40)
|
||||
// CHECK-CC1: NotImplemented:{ResultType NSDictionary *}{TypedText @{}{Placeholder key}{HorizontalSpace }{Colon :}{HorizontalSpace }{Placeholder object, ...}{RightBrace }} (40)
|
||||
// CHECK-CC1: NotImplemented:{ResultType NSDictionary *}{TypedText @{}{Placeholder key}{Colon :}{HorizontalSpace }{Placeholder object, ...}{RightBrace }} (40)
|
||||
// CHECK-CC1: NotImplemented:{ResultType SEL}{TypedText _cmd} (80)
|
||||
// CHECK-CC1: TypedefDecl:{TypedText BOOL} (50)
|
||||
// CHECK-CC1: macro definition:{TypedText bool} (51)
|
||||
|
@ -43,7 +43,7 @@ __strong id global;
|
|||
// RUN: c-index-test -code-completion-at=%s:16:5 %s | FileCheck -check-prefix=CHECK-CC4 %s
|
||||
// RUN: c-index-test -code-completion-at=%s:16:14 %s | FileCheck -check-prefix=CHECK-CC4 %s
|
||||
// CHECK-CC4: NotImplemented:{ResultType NSArray *}{TypedText @[}{Placeholder objects, ...}{RightBracket ]} (40)
|
||||
// CHECK-CC4: NotImplemented:{ResultType NSDictionary *}{TypedText @{}{Placeholder key}{HorizontalSpace }{Colon :}{HorizontalSpace }{Placeholder object, ...}{RightBrace }} (40)
|
||||
// CHECK-CC4: NotImplemented:{ResultType NSDictionary *}{TypedText @{}{Placeholder key}{Colon :}{HorizontalSpace }{Placeholder object, ...}{RightBrace }} (40)
|
||||
// CHECK-CC4: NotImplemented:{ResultType SEL}{TypedText _cmd} (80)
|
||||
// CHECK-CC4: macro definition:{TypedText bool} (51)
|
||||
// CHECK-CC4: macro definition:{TypedText NO} (65)
|
||||
|
|
Loading…
Reference in New Issue