This is an archive of the discontinued LLVM Phabricator instance.

[ASTImporter] Adding some friend function related unittests.
ClosedPublic

Authored by balazske on Jul 25 2018, 7:51 AM.

Diff Detail

Event Timeline

balazske created this revision.Jul 25 2018, 7:51 AM

Hi Balazs,

The patch looks mostly fine.

unittests/AST/ASTImporterTest.cpp
2290

LLVM naming conventions require it to be LookupRes.

2292

getTuDecl() already return TranslationUnitDecl *. We should just declare FromTU as auto *, so no cast is needed here.

2313

EXPECT_FALSE can be used instead of negations.

2328

Names like FromFriendFunc/FromNormalFunc will make the test more readable.

balazske updated this revision to Diff 160548.Aug 14 2018, 4:03 AM
  • Corrected the code in tests.
balazske marked 3 inline comments as done.Aug 14 2018, 4:04 AM

Hi Balasz,

Thank you for the fixes.

unittests/AST/ASTImporterTest.cpp
2292

Marked as Done, but not actually done.

2328

Gentle ping on this.

balazske updated this revision to Diff 160972.Aug 16 2018, 12:34 AM
  • Renamed variables, corrected a variable type.
a_sidorin accepted this revision.Aug 19 2018, 8:15 AM
This revision is now accepted and ready to land.Aug 19 2018, 8:15 AM
This revision was automatically updated to reflect the committed changes.