llvm-project/clang/tools
Ivan Donchevskii b3ae2bc62b [libclang] Fix cursors for arguments of Subscript and Call operators
The DeclRefExpr of CXXOperatorCallExpr refering to the custom operator
is visited before the arguments to the operator call. For the Call and
Subscript operator the range of this DeclRefExpr includes the whole call
expression, so that all tokens in that range were mapped to the operator
function, even the tokens of the arguments.

Fix this by ensuring that this particular DeclRefExpr is visited last.

Fixes PR25775.

Fix by Nikolai Kosjar.

Differential Revision: https://reviews.llvm.org/D40481

llvm-svn: 340521
2018-08-23 09:48:11 +00:00
..
arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-index-test [libclang 7/8] Add support for getting property setter and getter names 2018-08-03 05:38:29 +00:00
clang-check Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
clang-diff [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
clang-format clang-format-diff: Make it work with python3 too 2018-08-03 10:04:58 +00:00
clang-format-vs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
clang-func-mapping Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
clang-fuzzer Update README and Dockerfile to include llvm-proto-fuzzer 2018-08-16 20:13:40 +00:00
clang-import-test [ASTImporter] Add test for C++'s try/catch statements. 2018-08-20 22:13:24 +00:00
clang-offload-bundler Refactor ExecuteAndWait to take StringRefs. 2018-06-12 17:43:52 +00:00
clang-refactor Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
clang-rename [clang-rename] make clang-rename.py vim integration python3 compatible 2018-08-06 09:08:06 +00:00
diag-build
diagtool [diagtool] Add diagtool to install target. 2018-05-16 10:23:25 +00:00
driver win: Omit ".exe" from clang and clang-cl driver-level diagnostics. 2018-08-22 23:53:39 +00:00
libclang [libclang] Fix cursors for arguments of Subscript and Call operators 2018-08-23 09:48:11 +00:00
scan-build Fix typos in clang 2018-04-06 15:14:32 +00:00
scan-build-py Fix typos in clang 2018-04-06 15:14:32 +00:00
scan-view Fix typos in clang 2018-04-06 15:14:32 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00