This is an archive of the discontinued LLVM Phabricator instance.

[AST] Correct the CXXOperatorCallExpr source range.
ClosedPublic

Authored by hokein on Mar 13 2020, 5:48 AM.

Details

Summary

Previously, the range for "->" CXXOperatorCallExpr is the range of the
class object (not including the operator!), e.g. "[[vector_ptr]]->size()".

This patch includes the range of the operator, which fixes the issue
where clangd doesn't go to the overloaded operator "->" definition.

Diff Detail

Event Timeline

hokein created this revision.Mar 13 2020, 5:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2020, 5:48 AM
sammccall accepted this revision.Mar 16 2020, 4:02 AM
This revision is now accepted and ready to land.Mar 16 2020, 4:02 AM
This revision was automatically updated to reflect the committed changes.