[clang-tools-extra] bc18d8d - [clangd] Drop dependence on standard library in check.test
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 2 00:53:15 PDT 2020
Author: Sam McCall
Date: 2020-10-02T09:53:06+02:00
New Revision: bc18d8d9b705d31a94c51900c8b18e4feaf9c7fb
URL: https://github.com/llvm/llvm-project/commit/bc18d8d9b705d31a94c51900c8b18e4feaf9c7fb
DIFF: https://github.com/llvm/llvm-project/commit/bc18d8d9b705d31a94c51900c8b18e4feaf9c7fb.diff
LOG: [clangd] Drop dependence on standard library in check.test
Added:
Modified:
clang-tools-extra/clangd/test/check.test
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/test/check.test b/clang-tools-extra/clangd/test/check.test
index 832629ce29ef..d83562c4dcf0 100644
--- a/clang-tools-extra/clangd/test/check.test
+++ b/clang-tools-extra/clangd/test/check.test
@@ -1,13 +1,18 @@
-# RUN: clangd -log=verbose -check 2>&1 | FileCheck -strict-whitespace %s
+// RUN: cp %s %t.cpp
+// RUN: clangd -log=verbose -check=%t.cpp 2>&1 | FileCheck -strict-whitespace %s
-CHECK: Testing on source file {{.*}}test.cc
-CHECK: internal (cc1) args are: -cc1
-CHECK: Building preamble...
-CHECK: Built preamble
-CHECK: Building AST...
-CHECK: Testing features at each token
-CHECK-DAG: hover: false
-CHECK-DAG: hover: true
-CHECK-DAG: tweak: AddUsing
-CHECK: All checks completed, 0 errors
+// CHECK: Testing on source file
+// CHECK: internal (cc1) args are: -cc1
+// CHECK: Building preamble...
+// CHECK: Built preamble
+// CHECK: Building AST...
+// CHECK: Testing features at each token
+// CHECK-DAG: tweak: ExpandAuto
+// CHECK-DAG: hover: true
+// CHECK-DAG: tweak: AddUsing
+// CHECK: All checks completed, 0 errors
+namespace ns {
+struct Foo {};
+} // namespace ns
+auto f = ns::Foo();
More information about the cfe-commits
mailing list