没有合适的资源?快使用搜索试试~ 我知道了~
首页Klocwork_C_C++_Cmd-line.pdf
资源详情
资源评论
资源推荐
Klocwork for C/C++
Command-line
Software release 8.0 SR1
Document version 4.0
Copyright © 1998-2008 Klocwork Inc.
All rights reserved
This document, as well as the software described in it, is furnished under license and may only be
used or copied in accordance with the terms of such license. The information contained herein is the
property of Klocwork Inc. and is confidential between Klocwork Inc. and the client and remains the
exclusive property of Klocwork Inc. No part of this documentation may be copied, translated, stored
in a retrieval system, or transmitted in any form or by any means, electronic, mechanical,
photocopying, recording or otherwise without the prior written permission of Klocwork Inc.
If you find any problems in the documentation, please report them to us in writing. Klocwork Inc.
does not warrant that this document is error-free.
Klocwork Inc. and Klocwork are registered trademarks and Klocwork Insight, Klocwork Solo, Klocwork Insight Architect, Klocwork Insight
Review, Klocwork Source Cross-Reference, Klocwork Management Console, Klocwork Developer for Java in Eclipse, Klocwork for C/C++,
Klocwork for Java, Klocwork Extensibility Interface, and Klocwork Stack Overflow Analyzer are trademarks of Klocwork Inc.
Copyright notices for third-party software are contained in the file “3rdparty_copyright_notices.txt”, located in the Klocwork installation
directory.
Adobe®, Adobe Acrobat, Acrobat Exchange, Acrobat Reader, and PostScript are either registered trademarks or trademarks of Adobe Systems
Incorporated in the United States and/or other countries. Rational ClearCase is a registered trademark of IBM Corporation. Linux is a registered
trademark of Linus Torvalds. FLEXlm is a registered trademark of Macrovision Corporation. Microsoft®, Microsoft Word, Microsoft Excel,
Microsoft Office, Internet Explorer, Windows®, Windows NT®, Windows® 2000, Windows® 2000 Server, Windows® Server 2003, Windows®
XP, MS-DOS™, Microsoft Visual Studio®, Microsoft .NET, and Microsoft Visual C++ are trademarks of Microsoft Corporation. Pentium® is a
registered trademark of Intel Corporation. Red Hat is a trademark of Red Hat, Inc., in the United States and other countries. Sun, Sun
Microsystems, the Sun Logo, Solaris, Forte, Java, JRE and all Java-related trademarks and logos are trademarks or registered trademarks of Sun
Microsystems, Inc. in the United States and other countries. All SPARC trademarks are used under license and are trademarks or registered
trademarks of SPARC International, Inc. in the United States and other countries. Products bearing SPARC trademarks are based upon an
architecture developed by Sun Microsystems, Inc. MySQL is a registered trademark of MySQL AB in the USA and other countries. InstallShield
is a service mark and is either a registered trademark or trademark of InstallShield Software Corporation in the United States and/or other
countries. IntelliJ IDEA is either a trademark or a registered trademark of JetBrains, Inc. Java Service Wrapper is a trademark of Tanuki Software.
WinCVS, Krusader and SourceForge are trademarks of OSTG Open Source Technology Group, All Rights Reserved. Apache TomCat is a
trademark of the Apache Software Foundation. Green Hills is a registered trademark of Green Hills Software, Inc. Metrowerks is a registered
trademark of Freescale Semiconductor, Inc. Wind River is a registered trademark of Wind River Systems, Inc. yEd is a trademark of yWorks
GmbH. JBuilder is a registered trademark of Borland Software Corporation. BEA WebLogic is a registered trademark of BEA Systems, Inc.
Klocwork Inc.
Toll-free telephone (North America):
1-866-556-2967
E-mail:
sales@klocwork.com
support@klocwork.com
Web site: http://www.klocwork.com
In the U.S.:
8 New England Executive Park, Suite 180
Burlington, Massachusetts 01803 USA
In Canada:
30 Edgewater Street, Suite 114
Ottawa, Ontario
Canada K2L 1V8
iii
Contents
Chapter 1 About this document 7
Introduction .................................................................................................................................................. 7
Documentation conventions ......................................................................................................................... 7
Help and support ........................................................................................................................................... 7
Chapter 2 Get started 9
About Klocwork for C/C++ and Klocwork for Java ..................................................................................... 9
Before you install Klocwork ....................................................................................................................... 10
Install Klocwork command-line on Linux or Solaris .................................................................................. 11
Install Klocwork command-line on Windows ............................................................................................ 13
Klocwork sample projects .......................................................................................................................... 14
Chapter 3 Commands and option usage for Klocwork for C/C++ 15
Usage .......................................................................................................................................................... 15
Setup commands and options ..................................................................................................................... 15
kwcheck list-projects ....................................................................................................................... 16
kwcheck create ................................................................................................................................ 16
kwcheck set ..................................................................................................................................... 18
kwcheck set-var ............................................................................................................................... 20
kwcheck list-vars ............................................................................................................................. 20
kwcheck remove-var ....................................................................................................................... 21
kwcheck info ................................................................................................................................... 22
Analysis command and options .................................................................................................................. 22
kwcheck run .................................................................................................................................... 22
Synchronization command and options ...................................................................................................... 24
kwcheck sync................................................................................................................................... 24
Output control options ................................................................................................................................ 25
kwcheck list ..................................................................................................................................... 25
kwcheck list-statuses ....................................................................................................................... 27
kwcheck list-states ........................................................................................................................... 28
kwcheck set-status ........................................................................................................................... 28
Configuration commands and options ........................................................................................................ 29
kwcheck import ............................................................................................................................... 29
kwcheck export ................................................................................................................................ 31
kwcheck list-conf ............................................................................................................................. 32
kwcheck discard .............................................................................................................................. 32
kwcheck enable ............................................................................................................................... 33
kwdtconfeditor ................................................................................................................................. 34
iv Contents
Chapter 4 Set up a project 37
Project setup tasks ....................................................................................................................................... 37
Check for available projects on the server .................................................................................................. 38
Create local project and settings directories ............................................................................................... 39
Set Project Server properties ....................................................................................................................... 40
Set License Server properties...................................................................................................................... 40
A note about configuration settings ............................................................................................................ 41
Use a build specification ............................................................................................................................. 41
Note on build specification templates .............................................................................................. 42
Create a build specification ............................................................................................................. 42
Import the build specification .......................................................................................................... 42
Use a build specification template .............................................................................................................. 43
Overview of creating and using a build specification template ....................................................... 43
Import the build specification template ........................................................................................... 44
Set variables for the build specification template ............................................................................ 44
Chapter 5 Run Klocwork for C/C++ from the command line 47
Prerequisites ................................................................................................................................................ 47
Get information about your project ............................................................................................................. 47
Run the analysis .......................................................................................................................................... 49
Run Klocwork on your project ........................................................................................................ 49
About incremental analysis ............................................................................................................. 50
Forcing a complete analysis with the --rebuild option ..................................................................... 50
Run Klocwork on one or more files in your project ........................................................................ 51
About synchronization ................................................................................................................................ 51
Synchronize your results ................................................................................................................. 52
Disable or enable automatic synchronization .................................................................................. 53
About the Klocwork output ........................................................................................................................ 54
Default Klocwork output ................................................................................................................. 54
About issue states ............................................................................................................................ 56
About issue statuses ......................................................................................................................... 56
Chapter 6 Manage Klocwork output 59
Reduce the list of detected issues ................................................................................................................ 59
Change issue statuses and add comments ................................................................................................... 60
Filter issues in the list ................................................................................................................................. 61
View traceback for detected issues ............................................................................................................. 62
Example ........................................................................................................................................... 62
Chapter 7 Configure Klocwork for issue detection 63
Introduction ................................................................................................................................................ 63
List configuration files for a project ........................................................................................................... 63
About configuration settings ....................................................................................................................... 64
The user profile ................................................................................................................................ 65
The metric thresholds configuration file .......................................................................................... 65
The usage rules configuration file ................................................................................................... 66
The knowledge base file .................................................................................................................. 66
Contents v
Change the configuration settings ............................................................................................................... 67
Turn issues on or off with kwcheck enable ..................................................................................... 67
Turn issues on or off with kwdtconfeditor....................................................................................... 67
Edit the configuration file or create a new one ................................................................................ 69
Import a configuration file into your project .............................................................................................. 70
Export a configuration file from your project ............................................................................................. 71
Remove configuration files from your project ............................................................................................ 72
Appendix A Troubleshooting 73
Troubleshooting licensing ........................................................................................................................... 73
Can't connect to License Server ....................................................................................................... 74
Can't change the issue status ....................................................................................................................... 74
Can't enable or disable issues or import configuration files ....................................................................... 75
Analysis fails .............................................................................................................................................. 75
Appendix B Uninstalling Klocwork 77
To remove Klocwork software from a Windows machine ......................................................................... 77
To perform an unattended uninstallation from a Windows machine .......................................................... 78
To remove Klocwork software from a Linux or Solaris machine ............................................................... 78
剩余79页未读,继续阅读
stephegn
- 粉丝: 9
- 资源: 39
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0