D16773: Don't add 'override' specifier for non-modern project settings

Kevin Funk noreply at phabricator.kde.org
Mon Dec 3 08:48:05 GMT 2018


kfunk accepted this revision.
kfunk added a comment.
This revision is now accepted and ready to land.


  LGTM in general. If you prefer your version (instead of the one proposed by me) feel free to push directly.

INLINE COMMENTS

> context.cpp:186
> +                project->filesForPath(IndexedString(view->document()->url().path())).first());
> +            const auto match = QRegularExpression(QStringLiteral(R"(-std=c\+\+(\d+))")).match(arguments);
> +

The correct way to capture this would probably be `-std=c\+\+(\w+)`, to also capture potential things like "-std=c++1x" (though you don't check that here). Still feels cleaner.

> context.cpp:191
> +                const int standard = match.captured(1).toInt();
> +                appendSpecifer = (standard != 98 && standard != 3);
> +            }

And consecutively here: `(standard != "98" && standard != "03")`

Was a little confused by the `3` here at first. I think the string version makes it clearer.

> test_codecompletion.cpp:1479
>          << "class Foo { int** bar(int x); };\nint ** Foo::bar(int x)\n{\n}\n";
> +
>  }

Unrelated.

REPOSITORY
  R32 KDevelop

BRANCH
  config-override

REVISION DETAIL
  https://phabricator.kde.org/D16773

To: amhndu, kfunk
Cc: kfunk, kdevelop-devel, glebaccon, hase, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20181203/e38fc341/attachment-0001.html>


More information about the KDevelop-devel mailing list