Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeCompletion/ignore-ns-level-decls.cpp @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 1f2b6ac9f198 |
children |
line wrap: on
line source
namespace ns { struct bar { }; struct baz { }; int func(int a, bar b, baz c); } void test() { ns:: // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):7 %s -o - | FileCheck %s --check-prefix=CHECK-1 // CHECK-1-DAG: COMPLETION: bar : bar // CHECK-1-DAG: COMPLETION: baz : baz // CHECK-1-DAG: COMPLETION: func : [#int#]func(<#int a#>, <#bar b#>, <#baz c#>) // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-6):7 -no-code-completion-ns-level-decls %s -o - | FileCheck %s --allow-empty --check-prefix=CHECK-EMPTY // CHECK-EMPTY-NOT: COMPLETION: bar : bar // CHECK-EMPTY: {{^}}{{$}} }