[all-commits] [llvm/llvm-project] 510945: [clang][index] Fix processing of CompoundAssignOpe...
Aleksandr Platonov via All-commits
all-commits at lists.llvm.org
Thu Oct 19 13:09:45 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 51094545e28d222dc11eea513904506624d715c6
https://github.com/llvm/llvm-project/commit/51094545e28d222dc11eea513904506624d715c6
Author: Aleksandr Platonov <platonov.aleksandr at huawei.com>
Date: 2023-10-19 (Thu, 19 Oct 2023)
Changed paths:
M clang/lib/Index/IndexBody.cpp
M clang/unittests/Index/IndexTests.cpp
Log Message:
-----------
[clang][index] Fix processing of CompoundAssignOperator at setting up reference roles (#69370)
Without this patch in expressions like `foo += 1` reference `foo` has no
read and write roles.
This happens because `CompoundAssignOperator` is also a
`BinaryOperator`, thus handling `CompoindAssignOperator` in `else`
branch is a dead code.
More information about the All-commits
mailing list