This is an archive of the discontinued LLVM Phabricator instance.

[SyntaxTree] Fix crash on pointer to member function
ClosedPublic

Authored by eduucaldas on Aug 3 2020, 11:29 AM.

Diff Detail

Event Timeline

eduucaldas created this revision.Aug 3 2020, 11:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2020, 11:29 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
eduucaldas requested review of this revision.Aug 3 2020, 11:29 AM

Additionally deleting TraverseParenTypeLoc changes nothing in the tests. I can also investigate that, I can try to come up with a test that makes this Traverse override relevant and if I'm not able, I would remove this override.

clang/unittests/Tooling/Syntax/TreeTest.cpp
4087–4088

I spent 15 minutes investigating that, if you think I should go further I will.

gribozavr2 accepted this revision.Aug 3 2020, 11:34 AM
gribozavr2 added inline comments.
clang/unittests/Tooling/Syntax/TreeTest.cpp
4083–4084

Please add spaces before {.

4089

Could you add separate tests for X::Y:: and for **?

This revision is now accepted and ready to land.Aug 3 2020, 11:34 AM
eduucaldas marked 2 inline comments as done.

answer comments

gribozavr2 accepted this revision.Aug 4 2020, 4:22 AM
This revision was automatically updated to reflect the committed changes.