Files
qt-creator/tests/unit/unittest/data/completions_order.cpp
Ivan Donchevskii 93269f3ecd Clang: Add unit-tests for function overloads completion order
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>
2018-10-26 07:22:24 +00:00

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.
}