llvm-project/clang/tools/libclang
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
..
ARCMigrate.cpp [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
BuildSystem.cpp Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
CIndex.cpp [libclang] Fix cursors for arguments of Subscript and Call operators 2018-08-23 09:48:11 +00:00
CIndexCXX.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexCodeCompletion.cpp [libclang] Optionally add code completion results for arrow instead of dot 2018-06-13 12:37:08 +00:00
CIndexDiagnostic.cpp Revert "Revert "[NFC] Refactor DiagnosticRenderer to use FullSourceLoc"" 2017-06-27 09:50:38 +00:00
CIndexDiagnostic.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CIndexHigh.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CIndexInclusionStack.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexUSRs.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexer.cpp IWYU for llvm-config.h in clang. See r331124 for details. 2018-04-30 13:52:15 +00:00
CIndexer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CLog.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CMakeLists.txt libclang: add install/distribution targets for python 2018-08-20 22:50:18 +00:00
CXComment.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CXComment.h
CXCompilationDatabase.cpp [Tooling][libclang] Remove unused CompilationDatabase::MappedSources 2017-05-23 13:50:43 +00:00
CXCursor.cpp [libclang 8/8] Add support for the flag_enum attribute 2018-08-03 05:55:40 +00:00
CXCursor.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXIndexDataConsumer.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
CXIndexDataConsumer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXLoadedDiagnostic.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXLoadedDiagnostic.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXSourceLocation.cpp Reverting r316278 due to failing build bots. 2017-10-21 21:52:48 +00:00
CXSourceLocation.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXStoredDiagnostic.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CXString.cpp Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
CXString.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXTranslationUnit.h [libclang] Record code-completion invocations to a temporary file when 2017-12-07 20:37:50 +00:00
CXType.cpp [libclang 4/8] Add the clang_Type_getNullability() API 2018-08-03 04:38:04 +00:00
CXType.h
CursorVisitor.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Index_Internal.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Indexing.cpp [Index] Set OrigD before D is changed. 2018-07-20 08:08:56 +00:00
libclang.exports [libclang 7/8] Add support for getting property setter and getter names 2018-08-03 05:38:29 +00:00