Issue 171626
Summary Clang-tidy: readability-convert-member-functions-to-static: false positive when calling overloaded member functions in lambda
Labels clang-tidy, false-positive
Assignees
Reporter Nkaspers
    ```cpp
class A {
public:
    void foo();
    void bar();
    void bar(int a){};
};

// Warning
void A::foo() {
    auto fun = [&](auto a) {
 bar(a);
    };
}

// No Warning
void A::bar() {
    auto fun = [&](int a) {
        bar(a);
    };
}
```

The warning only shows if the member function has overloads and is called with a lambda argument of type `auto`. 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to