]> granicus.if.org Git - clang/commitdiff
Workaround reverse-iteration buildbot breakages. Filed PR35244.
authorIlya Biryukov <ibiryukov@google.com>
Wed, 8 Nov 2017 13:05:52 +0000 (13:05 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 8 Nov 2017 13:05:52 +0000 (13:05 +0000)
Clang's completion output is non-deterministic, causing test failures
with turned on LLVM_REVERSE_ITERATION.
The workaround is to use CHECK-DAGs for now, will remove them when
PR35244 gets fixed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317687 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeCompletion/qualifiers-as-written.cpp

index e600267775ef941a5ae870abbc7d33a468e37616..90530ec65c97a8d070ee5834cad1edf1577b68f4 100644 (file)
@@ -25,6 +25,7 @@ void test() {
   // CHECK-1: COMPLETION: method : [#type#]method(<#type#>, <#foo::type#>, <#::foo::type#>, <#::foo::foo::type#>)
   f
   // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:26:3 %s -o - | FileCheck %s --check-prefix=CHECK-2
-  // CHECK-2: COMPLETION: func : [#int#]func(<#foo a#>, <#bar b#>, <#ns::bar c#>, <#ns::baz d#>
-  // CHECK-2: COMPLETION: func : [#int#]func(<#foo::type a#>, <#bar b#>, <#baz c#>
+  // FIXME(ibiryukov): We should get rid of CHECK-DAGs here when completion output is made deterministic (see PR35244).
+  // CHECK-2-DAG: COMPLETION: func : [#int#]func(<#foo a#>, <#bar b#>, <#ns::bar c#>, <#ns::baz d#>
+  // CHECK-2-DAG: COMPLETION: func : [#int#]func(<#foo::type a#>, <#bar b#>, <#baz c#>
 }