mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-22 13:05:52 -04:00

Currently we return no results when completing inside of the brackets in a 'char foo[]' declaration. Let the generic expression completion code handle it instead. We could get fancier here (e.g. filter non-constant expressions in contexts where VLAs are not allowed), but it's a strict improvement over the existing version. llvm-svn: 261217
10 lines
242 B
C
10 lines
242 B
C
#define PATHSIZE 256
|
|
|
|
static const int len = 1234;
|
|
|
|
void foo() {
|
|
char arr[
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-macros -code-completion-at=%s:6:12 %s -o - | FileCheck %s
|
|
// CHECK: COMPLETION: len
|
|
// CHECK: COMPLETION: PATHSIZE
|