D10115: Change call to openDeclaration to send an Identifier instead of an QualifiedIdentifier

Hugues Morisset noreply at phabricator.kde.org
Fri Jan 26 15:41:13 UTC 2018


huguesmorisset created this revision.
Restricted Application added a subscriber: kdevelop-devel.
huguesmorisset requested review of this revision.

REVISION SUMMARY
    What the deprecated method does:                                                                                                                                                                                                                                                              
    ```                                                                                                                                                                                                                                                                                           
      auto openDeclaration(QualifiedIdentifier x, ...) {                                                                                                                                                                                                                                          
        Identifier i;                                                                                                                                                                                                                                                                             
        if (!x.isEmpty()) {                                                                                                                                                                                                                                                                       
          i = x.last();                                                                                                                                                                                                                                                                           
        }                                                                                                                                                                                                                                                                                         
        return openDeclaration(i, ...);                                                                                                                                                                                                                                                           
      }                                                                                                                                                                                                                                                                                           
    ```                                                                                                                                                                                                                                                                                           
    This does remove a check to isEmpty().

REPOSITORY
  R59 KDevelop Go

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

AFFECTED FILES
  duchain/builders/declarationbuilder.cpp

To: huguesmorisset
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180126/ed46515f/attachment.html>


More information about the KDevelop-devel mailing list