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

Repository
rC Clang

Event Timeline

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

Hi Balazs,

The patch looks mostly fine.

unittests/AST/ASTImporterTest.cpp
2289

LLVM naming conventions require it to be LookupRes.

2291

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

2312

EXPECT_FALSE can be used instead of negations.

2327

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
2291

Marked as Done, but not actually done.

2327

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.