aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
diff options
context:
space:
mode:
authorFabian Wolff <fabian.wolff@alumni.ethz.ch>2022-01-17 20:50:32 +0100
committerFabian Wolff <fabian.wolff@alumni.ethz.ch>2022-01-17 20:50:32 +0100
commit42bc3275d3687524ddc0d20c72722b9324f87be4 (patch)
tree1e9d687cc98a5cbcf4004c60fb98ac6aea14f1e1 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
parent523573e90ddb6db3b58d7a04b7dbe90fa7366dc2 (diff)
downloadllvm-42bc3275d3687524ddc0d20c72722b9324f87be4.zip
llvm-42bc3275d3687524ddc0d20c72722b9324f87be4.tar.gz
llvm-42bc3275d3687524ddc0d20c72722b9324f87be4.tar.bz2
[clang-tidy] Fix `readability-redundant-declaration` false positive for template friend declaration
Fixes [[ https://bugs.llvm.org/show_bug.cgi?id=48086 | PR#48086 ]]. The problem is that the current matcher uses `hasParent()` to detect friend declarations, but for a template friend declaration, the immediate parent of the `FunctionDecl` is a `FunctionTemplateDecl`, not the `FriendDecl`. Therefore, I have replaced the matcher with `hasAncestor()`. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D114299
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions