klocwork

environment

[!NOTE|label:references:]

analysis

[!NOTE|label:references:] issue severity

  • 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

[!NOTE|label:references:] sample code

[!NOTE|label:references:] sample code

  • re-create the build spec

    • i.e.

  • force a full analysis

    • i.e.:

  • load the result

    • i.e.:

[!NOTE|label:references:] sample code

  • update the build settings

    • i.e.:

  • execute the incremental analysis

    • i.e.:

  • load the result

    • i.e.:

load result from both windows and linux

[!NOTE|label:references:] sample code kwbuildproject

  • create an integration project on kw server via command line

    • i.e.:

  • capture build settings on linux machine

    • i.e.:

  • run an analysis using the build spec on linux

  • load the database on windows

    • i.e.:

[!NOTE|label:references:]

Note: For distributed builds, you must run the following procedure on all build machines and merge the resultant build trace files.

  1. inserting the kwwrap command line before your compiler and linker names

convert to

or via creating wrapper scripts

  1. execute the original build command

  2. Convert the build trace into a build specification with kwinject

  • i.e.:

i.e.: <path_to_kwwrap_trace_file> is /temp/kwwrap.trace

using environment variables

  1. create environment variables

  1. build with original command

  1. use kwwrap with CMake and generate the trace

using wrapper scripts

  1. creating wrapper scripts

  1. setup environment variables

  1. build with original command

  1. use kwwrap with CMake and generate the trace

[!NOTE|label:homepages:]

authentication

[!TIP|label: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

[!NOTE|label:reference:]

ssl

renew LDAP cert

[!NOTE|label:references:]

using a secure klocwork server connection

[!TIP] for klocwork 2020.4 Build 20.4.0.81

Last updated

Was this helpful?