D6645: Add spaceship and null coalesce operators to PHP language support

Matthijs Tijink noreply at phabricator.kde.org
Wed Jul 12 11:50:37 UTC 2017


mtijink created this revision.
mtijink added a project: KDevelop.
Restricted Application added a subscriber: kdevelop-devel.

REVISION SUMMARY
  This diff adds the spaceship operator `<=>` (returning `-1`, `0` or `1`, useful in implementing comparison functions) and the null coalesce operator `??` (returning the left operand if it is set and is not null, otherwise the second operand).

REPOSITORY
  R52 KDevelop: PHP Support

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

AFFECTED FILES
  completion/context.cpp
  parser/php.g
  parser/phplexer.cpp
  parser/test/lexertest.cpp
  parser/test/lexertest.h

To: mtijink, #kdevelop
Cc: kdevelop-devel, #kdevelop, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170712/93866564/attachment-0001.html>


More information about the KDevelop-devel mailing list