mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-28 07:49:01 -04:00

-code-completion-at=filename:line:column which performs code completion at the specified location by truncating the file at that position and enabling code completion. This approach makes it possible to run multiple tests from a single test file, and gives a more natural command-line interface. llvm-svn: 82571
10 lines
312 B
C++
10 lines
312 B
C++
void f(int i, int j = 2, int k = 5);
|
|
void f(float x, float y);
|
|
|
|
void test() {
|
|
::
|
|
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:5:5 %s -o - | FileCheck -check-prefix=CC1 %s &&
|
|
// CHECK-CC1: f(<#int i#>{#, <#int j#>{#, <#int k#>#}#})
|
|
// CHECK-CC1: f(<#float x#>, <#float y#>)
|
|
// RUN: true
|