diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-24 23:40:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-24 23:40:45 +0000 |
commit | 45140a90409616550ac6f013594372bbd8267330 (patch) | |
tree | b7d82239f6f41638079f33ad31a7e9b4f83fa4ea /clang/test/Index/complete-preprocessor.m | |
parent | 7d46051eea78f39352b5fa2de3a5700e0384e447 (diff) | |
download | bcm5719-llvm-45140a90409616550ac6f013594372bbd8267330.tar.gz bcm5719-llvm-45140a90409616550ac6f013594372bbd8267330.zip |
In code-completion contexts where both types and other values are
present, prefer values to types, since it's more common to compute
with values than it is to declare new entities or perform type
casts. So, tweak the ranking of types vs. other declarations and
constants accordingly.
llvm-svn: 111998
Diffstat (limited to 'clang/test/Index/complete-preprocessor.m')
-rw-r--r-- | clang/test/Index/complete-preprocessor.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Index/complete-preprocessor.m b/clang/test/Index/complete-preprocessor.m index 5a20c1c3330..6ca7214fa2e 100644 --- a/clang/test/Index/complete-preprocessor.m +++ b/clang/test/Index/complete-preprocessor.m @@ -61,13 +61,13 @@ FOO(in,t) value; // CHECK-CC4: macro definition:{TypedText BAR} (70) // CHECK-CC4: macro definition:{TypedText FOO}{LeftParen (}{Placeholder a}{Comma , }{Placeholder b}{RightParen )} (70) // RUN: c-index-test -code-completion-at=%s:14:5 %s | FileCheck -check-prefix=CHECK-CC5 %s -// CHECK-CC5: NotImplemented:{TypedText const} (40) -// CHECK-CC5: NotImplemented:{TypedText double} (40) -// CHECK-CC5: NotImplemented:{TypedText enum} (40) +// CHECK-CC5: NotImplemented:{TypedText const} (65) +// CHECK-CC5: NotImplemented:{TypedText double} (65) +// CHECK-CC5: NotImplemented:{TypedText enum} (65) // CHECK-CC5: NotImplemented:{TypedText extern} (30) -// CHECK-CC5: NotImplemented:{TypedText float} (40) +// CHECK-CC5: NotImplemented:{TypedText float} (65) // CHECK-CC5: macro definition:{TypedText FOO}{LeftParen (}{Placeholder a}{Comma , }{Placeholder b}{RightParen )} (70) -// CHECK-CC5: TypedefDecl:{TypedText id} (40) +// CHECK-CC5: TypedefDecl:{TypedText id} (65) // CHECK-CC5: NotImplemented:{TypedText inline} (30) -// CHECK-CC5: NotImplemented:{TypedText int} (40) -// CHECK-CC5: NotImplemented:{TypedText long} (40) +// CHECK-CC5: NotImplemented:{TypedText int} (65) +// CHECK-CC5: NotImplemented:{TypedText long} (65) |