[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / CodeCompletion / ignore-ns-level-decls.cpp
blob556183564e87fa12e71b33766f897c94edbdc9b7
1 namespace ns {
2 struct bar {
3 };
5 struct baz {
6 };
8 int func(int a, bar b, baz c);
11 void test() {
12 ns::
13 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):7 %s -o - | FileCheck %s --check-prefix=CHECK-1
14 // CHECK-1-DAG: COMPLETION: bar : bar
15 // CHECK-1-DAG: COMPLETION: baz : baz
16 // CHECK-1-DAG: COMPLETION: func : [#int#]func(<#int a#>, <#bar b#>, <#baz c#>)
18 // 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
19 // CHECK-EMPTY-NOT: COMPLETION: bar : bar
20 // CHECK-EMPTY: {{^}}{{$}}