![](https://csdnimg.cn/release/download_crawler_static/1090774/bg3.jpg)
i
1. BASIC FACTS.................................................................................................................. .........1
2. INTRODUCTION............................................................................................................. .........2
2.1 An Example............................................................................................................... .........2
2.2 A Lint for C++........................................................................................................... .........3
2.3 Language Definition.................................................................................................. .........4
3. GETTING STARTED WITH PC-LINT............................................................................ .........6
3.1 Setup.......................................................................................................................... .........6
3.2 Configuration............................................................................................................. .........7
3.3 Running the Test Programs........................................................................................ .........8
3.4 Linting your Programs............................................................................................... .......10
3.4.1 Other Extents for C++ Modules........................................................................ .......11
3.4.2 Controlling the Messages.................................................................................. .......11
3.4.3 Options.............................................................................................................. .......12
3.4.4 Extending the Command Line.......................................................................... .......12
3.5 Integrating With Your Environment.......................................................................... .......12
3.6 .dsp processing........................................................................................................... .......13
3.7 Other Operating Systems........................................................................................... .......15
3.7.1 Multiple Configurations.................................................................................... .......16
3.7.2 DOS-ins Files.................................................................................................... .......16
3.7.3 DOS Extender Notes......................................................................................... .......18
4. THE COMMAND LINE.................................................................................................... .......20
4.1 Indirect (.lnt) Files ..................................................................................................... .......21
4.2 Exit Code................................................................................................................... .......21
5. OPTIONS........................................................................................................................... .......23
5.1 Rules for Specifying Options..................................................................................... .......23
5.2 Error Inhibition Options............................................................................................. .......26
5.3 Size and Alignment Options...................................................................................... .......38
5.4 Verbosity Options...................................................................................................... .......40
5.5 Flag Options............................................................................................................... .......42
5.6 Message Presentation Options ................................................................................... .......59
5.6.1 Message Height Option.................................................................................... .......60
5.6.2 Message Width Option..................................................................................... .......62
5.6.3 Message Format Options .................................................................................. .......62
5.6.4 -append.............................................................................................................. .......63
5.7 Other Options............................................................................................................. .......64
5.8 Compiler Adaptation.................................................................................................. .......84
5.8.1 Microsoft Keywords......................................................................................... .......86
5.8.2 Compiler Codes................................................................................................ .......87
5.8.3 Customization Facilities ................................................................................... .......90
5.8.4 Identifier Characters......................................................................................... .......94
5.8.5 Preprocessor Statements................................................................................... .......95
5.8.6 In-line assembly code....................................................................................... .......95
5.8.7 The General Solution........................................................................................ .......96
6. LIBRARIES....................................................................................................................... .......97
6.1 Library Header Files.................................................................................................. .......97
6.2 Library Modules ........................................................................................................ .....101
- 1
- 2
前往页