Download LCLint User's Guide
Transcript
Contents 10.3.2 Ignored Return Values......................................................................................................56 10.4 Unused Declarations ...............................................................................................................57 10.5 Complete Programs .................................................................................................................58 10.5.1 Unnecessary External Names............................................................................................58 10.5.2 Declarations Missing from Headers ..................................................................................58 10.6 Compiler Limits .......................................................................................................................59 Appendix A Availability ....................................................................................................................60 Appendix B Communication..............................................................................................................60 Appendix C Flags...............................................................................................................................61 Global Flags ...................................................................................................................................61 Help ............................................................................................................................................61 Initialization ...............................................................................................................................62 Pre-processor...............................................................................................................................62 Libraries......................................................................................................................................62 Output.........................................................................................................................................63 Expected Errors...........................................................................................................................64 Message Format ..............................................................................................................................64 Mode Selector Flags........................................................................................................................64 Checking Flags................................................................................................................................66 Key .............................................................................................................................................66 Types ..........................................................................................................................................66 Function Interfaces......................................................................................................................70 Memory Management .................................................................................................................75 Sharing .......................................................................................................................................77 Use Before Definition (Section 7.1) .............................................................................................78 Null Pointers (Section 7.2) ..........................................................................................................78 Macros (Section 8) ......................................................................................................................79 Iterators.......................................................................................................................................80 Naming Conventions...................................................................................................................80 Other Checks ..............................................................................................................................85 Flag Name Abbreviations ................................................................................................................92 Appendix D Annotations....................................................................................................................93 Functions ....................................................................................................................................93 Iterators (Section 8.4)..................................................................................................................94 Constants (Section 8.1) ...............................................................................................................94 Alternate Types (Section 8.2.2) ...................................................................................................94 Declarator Annotations ...............................................................................................................94 Appendix E Control Comments.........................................................................................................99 Error Suppression .......................................................................................................................99 Type Access ................................................................................................................................99 Macro Expansion ........................................................................................................................99 Traditional Lint Comments .......................................................................................................100 Appendix F Libraries ......................................................................................................................101 Standard Libraries.....................................................................................................................101 v