Hi,
any progress on supporting trailing return types?
(https://en.cppreference.com/w/cpp/language/function)
Consider the following piece of code:
class Bart
{
public:
explicit Bart() = default;
~Bart() = default;
Bart(const Bart &other) = delete;
Bart(Bart &&other) = delete;
auto operator=(const Bart &other) -> Bart& = delete;
auto operator=(Bart &&other) -> Bart& = delete;
auto foo(int param) const -> int
{
return 50;
}
int foo2(int param) const
{
return 242;
}
};
auto someFct() -> void
{
auto b = Bart{};
b.foo(1);
b.foo2(2);
}
This is the way it is shown in VisualStudio:
You can clearly see the unrecognized trailing return types of Bart::foo() and someFct().
When hovering over the method foo (with trailing return type), the return type is not shown:
Same thing works fine when hovering over foo2 (old school return style):
The code completion seems to handle it better:
Note that this one even shows the fact that it is const (and when adding virtual or overwrite, that is shown as well...
I think that all tooltips from the screenshots are shown by VAX, since when I disable VAX,
no tooltips are shown when doing the same actions.
VA_X.dll file version 10.9.2366.0 built 2020.02.20
DevEnv.exe version 16.4.29728.190 Professional
Bart