forked from qt-creator/qt-creator
Make sure that the same function overloads with different priorities come together in the completions list. Fixes the case when we complete the method without '.' or '->'. Change-Id: Icaf7ea47f5e58b3ae5cc9764ad79c857f6f6e231 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
29 lines
382 B
C++
29 lines
382 B
C++
class Constructor {
|
|
public:
|
|
Constructor() = default;
|
|
Constructor(int) {}
|
|
};
|
|
|
|
void testConstructor() {
|
|
|
|
}
|
|
|
|
class Base {
|
|
virtual void bar(int a) const;
|
|
};
|
|
|
|
class DifferentPriorities : public Base {
|
|
public:
|
|
void foo();
|
|
void foo() const;
|
|
void bar(int a) const override;
|
|
void testBar() {
|
|
|
|
}
|
|
};
|
|
|
|
void testPriorities() {
|
|
DifferentPriorities d;
|
|
d.
|
|
}
|