mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-17 22:00:41 +00:00

Summary: The clang used to pick up the qualifiers of the lamba's call operator (which is always const) and fail to show non-const methods of 'this' in completion results. Reviewers: kadircet Reviewed By: kadircet Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D55885 llvm-svn: 349655
22 lines
464 B
C++
22 lines
464 B
C++
class foo {
|
|
void mut_func() {
|
|
[this]() {
|
|
|
|
}();
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:1 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
|
|
// CHECK-CC1: const_func
|
|
// CHECK-CC1: mut_func
|
|
}
|
|
|
|
void const_func() const {
|
|
[this]() {
|
|
|
|
}();
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:1 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
|
|
// CHECK-CC2-NOT: mut_func
|
|
// CHECK-CC2: const_func
|
|
};
|
|
};
|
|
|
|
|