mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-04 03:16:07 +00:00

Append optional chunks with their default values. For example: before - "int i", after - "int i = 10" Patch by Ivan Donchevskii! Differential Revision: https://reviews.llvm.org/D33644 llvm-svn: 308433
9 lines
318 B
C++
9 lines
318 B
C++
void f(int i, int j = 2, int k = 5);
|
|
void f(float x, float y...);
|
|
|
|
void test() {
|
|
::
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:5 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
|
|
// CHECK-CC1: f(<#int i#>{#, <#int j = 2#>{#, <#int k = 5#>#}#})
|
|
// CHECK-CC1: f(<#float x#>, <#float y, ...#>)
|