summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion/macros.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-13 23:24:38 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-13 23:24:38 +0000
commit52ce62f06964d4212f31a01551b8106794b4cc7e (patch)
tree69a230c7fa6cdcbe791db92ff878cac9a0b53d43 /clang/test/CodeCompletion/macros.c
parentad7a5b07a794744e5c29211ea5a7eb97585854e2 (diff)
downloadbcm5719-llvm-52ce62f06964d4212f31a01551b8106794b4cc7e.tar.gz
bcm5719-llvm-52ce62f06964d4212f31a01551b8106794b4cc7e.zip
Improve the sorting of code-completion results. We now always sort by
the "typed" text, first, then take into account nested-name-specifiers, name hiding, etc. This means that the resulting sort is actually alphabetical :) llvm-svn: 93370
Diffstat (limited to 'clang/test/CodeCompletion/macros.c')
-rw-r--r--clang/test/CodeCompletion/macros.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/clang/test/CodeCompletion/macros.c b/clang/test/CodeCompletion/macros.c
index f8861e912be..6330d25172c 100644
--- a/clang/test/CodeCompletion/macros.c
+++ b/clang/test/CodeCompletion/macros.c
@@ -19,19 +19,20 @@ void test(struct Point *p) {
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CC1 %s
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:14:9 %s -o - | FileCheck -check-prefix=CC2 %s
- // CC1: color
- // CC1: x
- // CC1: y
- // CC1: z
// CC1: BAR(<#X#>, <#Y#>)
+ // CC1: color
// CC1: FOO
// CC1: IDENTITY(<#X#>)
// CC1: WIBBLE
- // CC2: Blue
- // CC2: Green
- // CC2: Red
+ // CC1: x
+ // CC1: y
+ // CC1: z
+
// CC2: BAR(<#X#>, <#Y#>)
+ // CC2: Blue
// CC2: FOO
+ // CC2: Green
// CC2: IDENTITY(<#X#>)
+ // CC2: Red
// CC2: WIBBLE
}
OpenPOWER on IntegriCloud