diff options
author | Haojian Wu <hokein@google.com> | 2016-03-14 12:41:24 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2016-03-14 12:41:24 +0000 |
commit | e641cb4807d569a9ddf32e289a40df539f75940d (patch) | |
tree | 9a89982766630d6cf566143e09e9e78af8e2d347 /lldb/packages/Python/lldbsuite/test/python_api/interpreter | |
parent | 22c997deb69f36b73675f0a07545de7127a0eb83 (diff) | |
download | bcm5719-llvm-e641cb4807d569a9ddf32e289a40df539f75940d.tar.gz bcm5719-llvm-e641cb4807d569a9ddf32e289a40df539f75940d.zip |
[clang-tidy] Fix "Name is not a simple identifier" assertion in `modernize-loop-convert` check.
Summary:
Fix assertion failure: "Name is not a simple identifier".
`Decl::GetName` assumes the name should be an identifier. When the check
processes the function calling statement with speciail key name like
'it.operator->()', it will trigger the assert in `GetName`.
Rather than using `Decl::GetName`, we use `getNameAsString` which works
with special key names in C++.
Reviewers: bkramer
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D18141
llvm-svn: 263426
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter')
0 files changed, 0 insertions, 0 deletions