Clang Project

clang_source_code/test/CodeCompletion/this-quals.cpp
1class foo {
2  void mut_func() {
3    [this]() {
4
5    }();
6    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:1 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
7    // CHECK-CC1: const_func
8    // CHECK-CC1: mut_func
9  }
10
11  void const_func() const {
12    [this]() {
13
14    }();
15    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:1 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
16    // CHECK-CC2-NOT: mut_func
17    // CHECK-CC2: const_func
18  };
19};
20
21
22