better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

Incorrect syntax for '= default;' and '= delete;'

Open gtianw opened this issue 2 years ago • 1 comments

The syntax about = default;/= delete;, in copy/move assignment operator, are incorrect.

#496 has reported a bug of deleted function.

But it also happen to default function. See microsoft/vscode-cpptools#9281 for details.

gtianw avatar May 07 '22 08:05 gtianw

Probably the same cause in

class Base {
    virtual ~Base() = default;
}

class Derived:Base {
    ~Derived() override = default;
}

the override keyword is not highlighted at all. There is no info regarding "semantic tokens". If = default is removed, highlighting works again. tmp2

EloCode avatar Aug 19 '22 19:08 EloCode

This also repros for "= 0" (abstract virtual method) see https://github.com/microsoft/vscode-cpptools/issues/9957.

sean-mcmanus avatar Oct 05 '22 19:10 sean-mcmanus

Should be fixed now (v1.15.24 released just now), but let me know if it persists

jeff-hykin avatar Oct 06 '22 14:10 jeff-hykin