Page MenuHomeFreeBSD

Search for objective c method definitions
ClosedPublic

Authored by thj on Feb 8 2022, 1:51 PM.
Tags
None
Referenced Files
F174809643: D34202.id102948.diff
Tue, Oct 6, 3:27 AM
F174806447: D34202.id102494.diff
Tue, Oct 6, 2:59 AM
F174804074: D34202.id102609.diff
Tue, Oct 6, 2:37 AM
F174803308: D34202.diff
Tue, Oct 6, 2:31 AM
Unknown Object (File)
Sun, Oct 4, 4:23 AM
Unknown Object (File)
Wed, Sep 30, 11:10 AM
Unknown Object (File)
Mon, Sep 28, 3:38 PM
Unknown Object (File)
Mon, Sep 28, 1:52 PM

Details

Summary

When searching back for function definitions, consider lines starting
with '+' and '-', this allows us to pick up objective methods as well as
c style function definitions.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

thj requested review of this revision.Feb 8 2022, 1:51 PM

don't forget to add a unit test

This revision is now accepted and ready to land.Feb 8 2022, 2:36 PM
  • Add tests for finding function names
This revision now requires review to proceed.Feb 10 2022, 3:17 PM

Other than that wording tweak, spelling and grammar in manual page change LGTM.

usr.bin/diff/diff.1
400
This revision is now accepted and ready to land.Feb 11 2022, 7:16 PM
jilles added inline comments.
usr.bin/diff/tests/functionname_objcm.in
22

Fortunately, this code is never run :) The pointer subtraction is immediate undefined behaviour.

This revision was automatically updated to reflect the committed changes.