This is an archive of the discontinued LLVM Phabricator instance.

Make sure Objective-C category support in IncludeSorter handles top-level imports
ClosedPublic

Authored by compositeprimes on Oct 16 2020, 5:21 PM.

Details

Summary

Currently, this would not correctly associate a category with the related include if it was top-level (i.e. no slashes in the path). This ensures that we explicitly think about that case.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 16 2020, 5:21 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
compositeprimes requested review of this revision.Oct 16 2020, 5:21 PM
gribozavr2 accepted this revision.Oct 17 2020, 12:00 AM
gribozavr2 added a subscriber: gribozavr2.

Any chance of adding a test?

This revision is now accepted and ready to land.Oct 17 2020, 12:00 AM

Any chance of adding a test?

Done!

gribozavr2 accepted this revision.Oct 26 2020, 7:03 AM
This revision was landed with ongoing or failed builds.Oct 26 2020, 12:25 PM
This revision was automatically updated to reflect the committed changes.