This is an archive of the discontinued LLVM Phabricator instance.

[ASTImporter] Split out Objective-C related unit tests
ClosedPublic

Authored by teemperor on Mar 23 2021, 2:32 AM.

Details

Summary

This moves the two tests we have for importing Objective-C nodes to their own file. The motivation is
that this means I can add more Objective-C tests without making the compilation time of ASTImporterTest
even longer. Also it seems nice to separate the Apple-specific stuff from the ASTImporter test.

Diff Detail

Event Timeline

teemperor created this revision.Mar 23 2021, 2:32 AM
teemperor requested review of this revision.Mar 23 2021, 2:32 AM

This isn't NFC as I made the options array for Objective-C to test -fobjc-arc/-fno-objc-arc. There are usually no templates in Objective-C so
the MSVC delayed template parsing shouldn't affect the AST. objc-arc seems to influence qualifiers so I just used that as a starting point for
the test options array.

martong accepted this revision.Mar 23 2021, 5:30 AM

Sounds good to me!

This revision is now accepted and ready to land.Mar 23 2021, 5:30 AM
This revision was landed with ongoing or failed builds.Mar 23 2021, 5:59 AM
This revision was automatically updated to reflect the committed changes.