klocwork
reference:
How can I know which parts in the code are never used?
-Wunused
-Wunreachable-code
environment
reference:
video: Klocwork Demo
analysis
1 - Critical
2 - Error
3 - Warning
4 - Review
5 - Severity 5
6 - Severity 6
7 - Severity 7
8 - Severity 8
9 - Severity 9
10 - Severity 10
capture build settings
i.e.:
run an analysis using the build spec
i.e.:
re-create the build spec
i.e.
force a full analysis
i.e.:
load the result
i.e.:
update the build settings
i.e.:
execute the incremental analysis
i.e.:
load the result
i.e.:
load result from both windows and linux
create an integration project on kw server via command line
i.e.:
capture build settings on linux machine
i.e.:
load the database on windows
i.e.:
reference:
Note: For distributed builds, you must run the following procedure on all build machines and merge the resultant build trace files.
inserting the kwwrap command line before your compiler and linker names
convert to
or via creating wrapper scripts
execute the original build command
Convert the build trace into a build specification with kwinject
i.e.:
i.e.: <path_to_kwwrap_trace_file> is
/temp/kwwrap.trace
create environment variables
build with original command
use kwwrap with CMake and generate the trace
creating wrapper scripts
setup environment variables
build with original command
use kwwrap with CMake and generate the trace
authentication
[!TIP] references:
Failing authentication if host name is not found You can enable kwauth to fail authentication in the case where the server host name was not found in the certificate CN or Subject Alternative Name by setting the verifyCertificate option to true. Enabling this results in the following error message if the host name cannot be found:
To set this value to true, create a 'client_config.xml' file in your {client_tools_install_folder}\config\ folder (if it does not already exist). The file must contain the following:
Note that setting
resolveHost="false"
is not mandatory, but doing so can prevent the Klocwork Server from resolving the wrong FQDN as the Server will use whatever host you specify in a remote server URL.
ltoken
is used to authenticate users with tools such as kwbuildproject:
Windows:C:\Users<user_name>.klocwork\ltoken
Unix:~/.klocwork/ltoken
Mac:~/.klocwork/ltoken If there is no ltoken file in your .klocwork directory, run kwauth to generate the file.
[!NOTE|label:references:]
import your projects and server settings
[!NOTE|label:references:]
api
cli
report
CI
reference:
ssl
renew LDAP cert
[!NOTE|label:references:]
keytool and java :
/opt/Klocwork/Server/_jvm/bin
using a secure klocwork server connection
[!TIP] for klocwork 2020.4 Build 20.4.0.81
Create a self-signed keystore file
Configure the Klocwork Server to use SSL (manually)
verify
disabling the ssl connection
[!NOTE]
Simple bind failed error when trying to connect to Active Directory
import the ldap server public certificate directly into the klocwork keystore
[!NOTE|label:references:]
Last updated