[LLVMbugs] [Bug 11213] New: Remove Need for Method Prototypes within a Source File in Objective-C

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 23 04:42:43 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=11213

           Summary: Remove Need for Method Prototypes within a Source File
                    in Objective-C
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: milkservice at gmail.com
                CC: llvmbugs at cs.uiuc.edu


This is a proposal for dropping the need for method prototypes within one .m
file.
The whole file could be parsed for getting all method declarations from their
definitions first.

Reasons:

1) It takes extra time to write prototypes, and more have to be added if method
order is changed.

2) These prototypes are more of visual noise and bloat the file.

3) The prototypes need updates too when the method signature changes.

4) Following some code guidelines (e.g. the ones in "Clean Code"), it is
advised to write methods from top to bottom more and more concrete, and thus a
method should preferably call lower-level methods from below. This asks for
prototypes for nearly all methods.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list