This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Fix location of star ('*') inside MemberPointerTypeLoc
ClosedPublic

Authored by hlopko on Mar 12 2020, 6:33 AM.

Diff Detail

Event Timeline

hlopko created this revision.Mar 12 2020, 6:33 AM
gribozavr2 accepted this revision.Mar 12 2020, 7:59 AM
gribozavr2 added a subscriber: gribozavr2.
gribozavr2 added inline comments.
clang/unittests/AST/DeclTest.cpp
125 ↗(On Diff #249914)

I'd suggest to rewrite this test (and other tests in this file) to a more modern approach to testing. Specifically, I suggest that you imitate clang/unittests/Tooling/RangeSelectorTest.cpp. However, since that would be refactoring existing tests, I suggest that you do it as a follow-up change -- but please do it.

This revision is now accepted and ready to land.Mar 12 2020, 7:59 AM
hlopko updated this revision to Diff 250024.Mar 12 2020, 12:25 PM

[Sema] Fix location of star ('*') inside MemberPointerTypeLoc

Copy of https://reviews.llvm.org/D72073?id=235842, submitting with ilya-biryukov's permission.

hlopko updated this revision to Diff 250141.Mar 13 2020, 1:05 AM

Refactor the test to use matchers.

hlopko updated this revision to Diff 250142.Mar 13 2020, 1:06 AM

Reformat

hlopko updated this revision to Diff 250143.Mar 13 2020, 1:08 AM

Rearrange

gribozavr2 accepted this revision.Mar 13 2020, 1:55 AM
gribozavr2 added inline comments.
clang/unittests/AST/SourceLocationTest.cpp
856

s/D/VD/? (for VarDecl)

Harbormaster failed remote builds in B49101: Diff 250141!
Harbormaster failed remote builds in B49102: Diff 250142!
hlopko updated this revision to Diff 250160.Mar 13 2020, 2:38 AM

Rename D->VD, rebase master.

hlopko marked an inline comment as done.Mar 13 2020, 2:39 AM
gribozavr2 accepted this revision.Mar 13 2020, 2:47 AM
This revision was automatically updated to reflect the committed changes.
Harbormaster completed remote builds in B49116: Diff 250160.