[all-commits] [llvm/llvm-project] 8a593e: [AST] Correct the CXXOperatorCallExpr source range.
Haojian Wu via All-commits
all-commits at lists.llvm.org
Mon Mar 16 08:51:31 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8a593e29ab9b2799ded3d85a8110d51d4283f128
https://github.com/llvm/llvm-project/commit/8a593e29ab9b2799ded3d85a8110d51d4283f128
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2020-03-16 (Mon, 16 Mar 2020)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
M clang-tools-extra/clangd/unittests/SelectionTests.cpp
M clang-tools-extra/clangd/unittests/XRefsTests.cpp
M clang/lib/AST/ExprCXX.cpp
Log Message:
-----------
[AST] Correct the CXXOperatorCallExpr source range.
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.
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: ilya-biryukov, jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D76128
More information about the All-commits
mailing list