/usr/share/help/de/programming-guidelines/tooling.page is in gnome-devel-docs 3.28.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 | <?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" id="tooling" xml:lang="de">
<info>
<link type="guide" xref="index#general-guidelines"/>
<credit type="author copyright">
<name>Philip Withnall</name>
<email its:translate="no">philip.withnall@collabora.co.uk</email>
<years>2015</years>
</credit>
<include xmlns="http://www.w3.org/2001/XInclude" href="cc-by-sa-3-0.xml"/>
<desc>Das richtige Werkzeug für verschiedene Aufgaben</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Mario Blättermann</mal:name>
<mal:email>mario.blaettermann@gmail.com</mal:email>
<mal:years>2016</mal:years>
</mal:credit>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Christian Kirbach</mal:name>
<mal:email>christian.kirbach@gmail.com</mal:email>
<mal:years>2016</mal:years>
</mal:credit>
</info>
<title>Tooling</title>
<p>
Development tools are much more than just a text editor and a compiler.
Correct use of the right tools can drastically ease debugging and tracking
down of complex problems with memory allocation and system calls, amongst
other things. Some of the most commonly used tools are described below;
other tools exist for more specialized use cases, and should be used when
appropriate.
</p>
<p>
An overarching principle to use when developing is to always have as many
debugging options enabled as possible, rather than keeping them disabled
until near release time. By constantly testing code with all available
debug tooling, bugs can be caught early on, before they become ingrained in
code and thus harder to remove.
</p>
<p>
Practically, this means having all compiler and other tool warnings enabled
and set to fail the build process with an error if they are emitted.
</p>
<synopsis>
<title>Zusammenfassung</title>
<list>
<item><p>
Compile frequently with a second compiler.
(<link xref="#gcc-and-clang"/>)
</p></item>
<item><p>
Enable a large selection of compiler warnings and make them fatal.
(<link xref="#gcc-and-clang"/>)
</p></item>
<item><p>
Use GDB to debug and step through code. (<link xref="#gdb"/>)
</p></item>
<item><p>
Use Valgrind to analyze memory usage, memory errors, cache and CPU
performance and threading errors. (<link xref="#valgrind"/>)
</p></item>
<item><p>
Use gcov and lcov to analyze unit test coverage.
(<link xref="#gcov-and-lcov"/>)
</p></item>
<item><p>
Use compiler sanitizers to analyze memory, thread and undefined behavior
problems. (<link xref="#sanitizers"/>)
</p></item>
<item><p>
Submit to Coverity as a cronjob and eliminate static analysis errors as
they appear. (<link xref="#coverity"/>)
</p></item>
<item><p>
Use Clang static analyzer and Tartan regularly to eliminate statically
analysable errors locally. (<link xref="#clang-static-analyzer"/>)
</p></item>
</list>
</synopsis>
<section id="gcc-and-clang">
<title>GCC und Clang</title>
<p>
<link href="https://gcc.gnu.org/onlinedocs/gcc/">GCC</link> is the
standard C compiler for Linux. An alternative exists in the form of
<link href="http://clang.llvm.org/docs/UsersManual.html">Clang</link>,
with comparable functionality. Choose one (probably GCC) to use as a main
compiler, but occasionally use the other to compile the code, as the two
detect slightly different sets of errors and warnings in code. Clang also
comes with a static analyzer tool which can be used to detect errors in
code without compiling or running it; see
<link xref="#clang-static-analyzer"/>.
</p>
<p>
Both compilers should be used with as many warning flags enabled as
possible. Although compiler warnings do occasionally provide false
positives, most warnings legitimately point to problems in the code, and
hence should be fixed rather than ignored. A development policy of
enabling all warning flags and also specifying the <code>-Werror</code>
flag (which makes all warnings fatal to compilation) promotes fixing
warnings as soon as they are introduced. This helps code quality. The
alternative of ignoring warnings leads to long debugging sessions to track
down bugs caused by issues which would have been flagged up by the
warnings. Similarly, ignoring warnings until the end of the development
cycle, then spending a block of time enabling and fixing them all wastes
time.
</p>
<p>
Both GCC and Clang support a wide range of compiler flags, only some of
which are related to modern, multi-purpose code (for example, others are
outdated or architecture-specific). Finding a reasonable set of flags to
enable can be tricky, and hence the
<link href="http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html">
<code>AX_COMPILER_FLAGS</code></link> macro exists.
</p>
<p>
<code>AX_COMPILER_FLAGS</code> enables a consistent set of compiler
warnings, and also tests that the compiler supports each flag before
enabling it. This accounts for differences in the set of flags supported
by GCC and Clang. To use it, add <code>AX_COMPILER_FLAGS</code> to
<file>configure.ac</file>. If you are using in-tree copies of
autoconf-archive macros, copy
<link href="http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_compiler_flags.m4">
<file>ax_compiler_flags.m4</file></link> to the <file>m4/</file> directory
of your project. Note that it depends on the following autoconf-archive
macros which are GPL-licenced so potentially cannot be copied in-tree.
They may have to remain in autoconf-archive, with that as a build time
dependency of the project:
</p>
<list>
<item><p><code>ax_append_compile_flags.m4</code></p></item>
<item><p><code>ax_append_flag.m4</code></p></item>
<item><p><code>ax_check_compile_flag.m4</code></p></item>
<item><p><code>ax_require_defined.m4</code></p></item>
</list>
<p>
<code>AX_COMPILER_FLAGS</code> supports disabling <code>-Werror</code> for
release builds, so that releases may always be built against newer
compilers which have introduced more warnings. Set its third parameter to
‘yes’ for release builds (and only release builds) to enable this
functionality. Development and CI builds should always have
<code>-Werror</code> enabled.
</p>
<p>
Release builds can be detected using the
<link href="http://www.gnu.org/software/autoconf-archive/ax_is_release.html"><code>AX_IS_RELEASE</code></link>
macro, the result of which can be passed directly to
<code>AX_COMPILER_FLAGS</code>:
</p>
<code style="valid">AX_IS_RELEASE([git])
AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS],[$ax_is_release])</code>
<p>
The choice of release stability policy (the first argument to
<code>AX_IS_RELEASE</code>) should be made per project, taking the
project’s <link xref="versioning">versioning stability</link> into
account.
</p>
</section>
<section id="gdb">
<title>GDB</title>
<p>
GDB is the standard debugger for C on Linux. Its most common uses are for
debugging crashes, and for stepping through code as it executes. A full
tutorial for using GDB is given
<link href="https://sourceware.org/gdb/current/onlinedocs/gdb/">
here</link>.
</p>
<p>
To run GDB on a program from within the source tree, use:
<cmd>libtool exec gdb --args <var>./program-name</var> <var>--some --arguments --here</var></cmd>
</p>
<p>
This is necessary due to libtool wrapping each compiled binary in the
source tree in a shell script which sets up some libtool variables. It is
not necessary for debugging installed executables.
</p>
<p>
GDB has many advanced features which can be combined to essentially create
small debugging scripts, triggered by different breakpoints in code.
Sometimes this is a useful approach (for example, for
<link href="https://tecnocode.co.uk/2010/07/12/reference-count-debugging-with-gdb/">
reference count debugging</link>), but sometimes simply using
<link href="https://developer.gnome.org/glib/stable/glib-Message-Logging.html#g-debug">
<code>g_debug()</code></link> to output a debug message is simpler.
</p>
</section>
<section id="valgrind">
<title>Valgrind</title>
<p>
Valgrind is a suite of tools for instrumenting and profiling programs. Its
most famous tool is <link xref="#memcheck">memcheck</link>, but it has
several other powerful and useful tools too. They are covered separately
in the sections below.
</p>
<p>
A useful way of running Valgrind is to run a program’s unit test suite
under Valgrind, setting Valgrind to return a status code indicating the
number of errors it encountered. When run as part of
<cmd>make check</cmd>, this will cause the checks to succeed if Valgrind
finds no problems, and fail otherwise. However, running
<cmd>make check</cmd> under Valgrind is not trivial to do on the command
line. A macro,
<link href="http://www.gnu.org/software/autoconf-archive/ax_valgrind_check.html">
<code>AX_VALGRIND_CHECK</code></link> can be used which adds a new
<cmd>make check-valgrind</cmd> target to automate this. To use it:
</p>
<steps>
<item><p>
Copy
<link href="http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_valgrind_check.m4">
<file>ax_valgrind_check.m4</file></link> to the <file>m4/</file>
directory of your project.
</p></item>
<item><p>
Add <code>AX_VALGRIND_CHECK</code> to <file>configure.ac</file>.
</p></item>
<item><p>
Add <code>@VALGRIND_CHECK_RULES@</code> to the <file>Makefile.am</file>
in each directory which contains unit tests.
</p></item>
</steps>
<p>
When <cmd>make check-valgrind</cmd> is run, it will save its results in
<file>test-suite-*.log</file>, one log file per tool. Note that you will
need to run it from the directory containing the unit tests.
</p>
<p>
Valgrind has a way to suppress false positives, by using
<link href="http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress">
suppression files</link>. These list patterns which may match error stack
traces. If a stack trace from an error matches part of a suppression
entry, it is not reported. For various reasons, GLib currently causes a
number of false positives in <link xref="#memcheck">memcheck</link> and
<link xref="#helgrind-and-drd">helgrind and drd</link> which must be
suppressed by default for Valgrind to be useful. For this reason, every
project should use a standard GLib suppression file as well as a project
specific one.
</p>
<p>
Suppression files are supported by the <code>AX_VALGRIND_CHECK</code>
macro:
</p>
<code>@VALGRIND_CHECK_RULES@
VALGRIND_SUPPRESSIONS_FILES = my-project.supp glib.supp
EXTRA_DIST = $(VALGRIND_SUPPRESSIONS_FILES)</code>
<section id="memcheck">
<title>memcheck</title>
<p>
memcheck is a memory usage and allocation analyzer. It detects problems
with memory accesses and modifications of the heap (allocations and
frees). It is a highly robust and mature tool, and its output can be
entirely trusted. If it says there is ‘definitely’ a memory leak, there
is definitely a memory leak which should be fixed. If it says there is
‘potentially’ a memory leak, there may be a leak to be fixed, or it may
be memory allocated at initialization time and used throughout the life
of the program without needing to be freed.
</p>
<p>
To run memcheck manually on an installed program, use:
</p>
<p><cmd>valgrind --tool=memcheck --leak-check=full <var>my-program-name</var></cmd></p>
<p>
Or, if running your program from the source directory, use the following
to avoid running leak checking on the libtool helper scripts:
</p>
<p><cmd>libtool exec valgrind --tool=memcheck --leak-check=full <var>./my-program-name</var></cmd></p>
<p>
Valgrind lists each memory problem it detects, along with a short
backtrace (if you’ve compiled your program with debug symbols), allowing
the cause of the memory error to be pinpointed and fixed.
</p>
<p>Ein vollständiges Tutorial zu Memcheck finden Sie <link href="http://valgrind.org/docs/manual/mc-manual.html">hier</link>.</p>
</section>
<section id="cachegrind-and-kcachegrind">
<title>cachegrind und KCacheGrind</title>
<p>
cachegrind is a cache performance profiler which can also measure
instruction execution, and hence is very useful for profiling general
performance of a program.
<link href="http://kcachegrind.sourceforge.net/html/Home.html">
KCacheGrind</link> is a useful UI for it which allows visualization and
exploration of the profiling data, and the two tools should rarely be
used separately.
</p>
<p>
cachegrind works by simulating the processor’s memory hierarchy, so
there are situations where it is
<link href="http://valgrind.org/docs/manual/cg-manual.html#cg-manual.annopts.accuracy">
not perfectly accurate</link>. However, its results are always
representative enough to be very useful in debugging performance
hotspots.
</p>
<p>Ein vollständiges Tutorial zu Cachegrind finden Sie <link href="http://valgrind.org/docs/manual/cg-manual.html">hier</link>.</p>
</section>
<section id="helgrind-and-drd">
<title>helgrind und drd</title>
<p>
helgrind and drd are threading error detectors, checking for race
conditions in memory accesses, and abuses of the
<link href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html">
POSIX pthreads API</link>. They are similar tools, but are implemented
using different techniques, so both should be used.
</p>
<p>
The kinds of errors detected by helgrind and drd are: data accessed from
multiple threads without consistent locking, changes in lock acquisition
order, freeing a mutex while it is locked, locking a locked mutex,
unlocking an unlocked mutex, and several other errors. Each error, when
detected, is printed to the console in a little report, with a separate
report giving the allocation or spawning details of the mutexes or
threads involved so that their definitions can be found.
</p>
<p>
helgrind and drd can produce more false positives than memcheck or
cachegrind, so their output should be studied a little more carefully.
However, threading problems are notoriously elusive even to experienced
programmers, so helgrind and drd errors should not be dismissed lightly.
</p>
<p>Vollständiges Tutorials zu Helgrind und drd finden Sie <link href="http://valgrind.org/docs/manual/hg-manual.html">hier</link> und <link href="http://valgrind.org/docs/manual/drd-manual.html"> hier</link>.</p>
</section>
<section id="sgcheck">
<title>sgcheck</title>
<p>
sgcheck is an array bounds checker, which detects accesses to arrays
which have overstepped the length of the array. However, it is a very
young tool, still marked as experimental, and hence may produce more
false positives than other tools.
</p>
<p>
As it is experimental, sgcheck must be run by passing
<cmd>--tool=exp-sgcheck</cmd> to Valgrind, rather than
<cmd>--tool=sgcheck</cmd>.
</p>
<p>Ein vollständiges Tutorial zu sgcheck finden Sie <link href="http://valgrind.org/docs/manual/sg-manual.html">hier</link>.</p>
</section>
</section>
<section id="gcov-and-lcov">
<title>gcov und lcov</title>
<p>
<link href="https://gcc.gnu.org/onlinedocs/gcc/Gcov.html">gcov</link> is
a profiling tool built into GCC, which instruments code by adding extra
instructions at compile time. When the program is run, this code
generates <file>.gcda</file> and <file>.gcno</file> profiling output
files. These files can be analyzed by the <cmd>lcov</cmd> tool, which
generates visual reports of code coverage at runtime, highlighting lines
of code in the project which are run more than others.
</p>
<p>
A critical use for this code coverage data collection is when running
the unit tests: if the amount of code covered (for example, which
particular lines were run) by the unit tests is known, it can be used to
guide further expansion of the unit tests. By regularly checking the code
coverage attained by the unit tests, and expanding them towards 100%,
you can be sure that the entire project is being tested. Often it is the
case that a unit test exercises most of the code, but not a particular
control flow path, which then harbours residual bugs.
</p>
<p>
lcov supports
<link href="http://en.wikipedia.org/wiki/Code_coverage#Basic_coverage_criteria">
branch coverage measurement</link>, so is not suitable for demonstrating
coverage of safety critical code. It is perfectly suitable for
non-safety critical code.
</p>
<p>
As code coverage has to be enabled at both compile time and run time, a
macro is provided to make things simpler. The
<link href="http://www.gnu.org/software/autoconf-archive/ax_code_coverage.html">
<code>AX_CODE_COVERAGE</code></link> macro adds a
<cmd>make check-code-coverage</cmd> target to the build system, which
runs the unit tests with code coverage enabled, and generates a report
using <cmd>lcov</cmd>.
</p>
<p>So fügen Sie Unterstützung für <code>AX_CODE_COVERAGE</code> zu einem Projekt hinzu:</p>
<steps>
<item><p>Kopieren Sie <link href="http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_code_coverage.m4"> <file>ax_code_coverage.m4</file></link> in den <file>m4/</file>-Ordner Ihres Projekts.</p></item>
<item><p>Fügen Sie <code>AX_CODE_COVERAGE</code> zu <file>configure.ac</file> hinzu.</p></item>
<item><p>Fügen Sie <code>@CODE_COVERAGE_RULES</code> zur Datei <file>Makefile.am</file> der obersten Ebene hinzu.</p></item>
<item><p>
Add <code>$(CODE_COVERAGE_CFLAGS)</code> to the automake
<code><var>*</var>_CFLAGS</code> variable for each target you want
coverage for, for example for all libraries but no unit test code. Do
the same for <code>$(CODE_COVERAGE_LDFLAGS)</code> and
<code><var>*</var>_LDFLAGS</code>.
</p></item>
</steps>
<p>Dokumentation zur Verwendung von gcov und lcov finden Sie <link href="http://ltp.sourceforge.net/coverage/lcov.php">hier</link>.</p>
</section>
<section id="sanitizers">
<title>Address, Thread and Undefined Behavior Sanitizers</title>
<p>
GCC and Clang both support several sanitizers: sets of extra code and
checks which can be optionally compiled in to an application and used to
flag various incorrect behaviors at runtime. They are powerful tools, but
have to be enabled specially, recompiling your application to enable and
disable them. They cannot be enabled at the same time as each other, or
used at the same time as <link xref="#valgrind">Valgrind</link>. They are
still young, so have little integration with other tooling.
</p>
<p>
All sanitizers are available for both GCC and Clang, accepting the same
set of compiler options.
</p>
<section id="address-sanitizer">
<title>Address Sanitizer</title>
<p>
The <link href="https://code.google.com/p/address-sanitizer/">address
sanitizer</link> (‘asan’) detects use-after-free and buffer overflow
bugs in C and C++ programs. A full tutorial on using asan is
<link href="http://clang.llvm.org/docs/AddressSanitizer.html#usage">available
for Clang</link> — the same instructions should work for GCC.
</p>
</section>
<section id="thread-sanitizer">
<title>Thread Sanitizer</title>
<p>
The <link href="https://code.google.com/p/thread-sanitizer/">thread
sanitizer</link> (‘tsan’) detects data races on memory locations, plus
a variety of invalid uses of POSIX threading APIs. A full tutorial on
using tsan is
<link href="http://clang.llvm.org/docs/ThreadSanitizer.html#usage">available
for Clang</link> — the same instructions should work for GCC.
</p>
</section>
<section id="undefined-behavior-sanitizer">
<title>Undefined Behavior Sanitizer</title>
<p>
The undefined behavior sanitizer (‘ubsan’) is a collection of smaller
instrumentations which detect various potentially undefined behaviors in
C programs. A set of instructions for enabling ubsan is
<link href="http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation">available
for Clang</link> — the same instructions should work for GCC.
</p>
</section>
</section>
<section id="coverity">
<title>Coverity</title>
<p>
<link href="http://scan.coverity.com/">Coverity</link> is one of the most
popular and biggest commercial static analyzer tools available. However,
it is available to use free for Open Source projects, and any project is
encouraged to <link href="https://scan.coverity.com/users/sign_up">sign
up</link>.
<link href="https://scan.coverity.com/faq#how-get-project-included-in-scan">
Analysis is performed</link> by running some analysis tools locally, then
uploading the source code and results as a tarball to Coverity’s site. The
results are then visible online to members of the project, as annotations
on the project’s source code (similarly to how lcov presents its results).
</p>
<p>
As Coverity cannot be run entirely locally, it cannot be integrated
properly into the build system. However, scripts do exist to automatically
scan a project and upload the tarball to Coverity regularly. The
recommended approach is to run these scripts regularly on a server
(typically as a cronjob), using a clean checkout of the project’s git
repository. Coverity automatically e-mails project members about new
static analysis problems it finds, so the same approach as for
<link xref="#gcc-and-clang">compiler warnings</link> can be taken:
eliminate all the static analysis warnings, then eliminate new ones as
they are detected.
</p>
<p>
Coverity is good, but it is not perfect, and it does produce a number of
false positives. These should be marked as ignored in the online
interface.
</p>
</section>
<section id="clang-static-analyzer">
<title>Clang Static Analyzer</title>
<p>
One tool which can be used to perform static analysis locally is the
<link href="http://clang-analyzer.llvm.org/">Clang static analyzer</link>,
which is a tool co-developed with the <link xref="#gcc-and-clang">Clang
compiler</link>. It detects a variety of problems in C code which
compilers cannot, and which would otherwise only be detectable at run time
(using unit tests).
</p>
<p>
Clang produces some false positives, and there is no easy way to ignore
them. The recommended thing to do is to
<link href="http://clang-analyzer.llvm.org/faq.html#suppress_issue">file
a bug report against the static analyzer</link>, so that the false
positive can be fixed in future.
</p>
<p>Ein vollständiges Tutorial zu Clang finden Sie <link href="http://clang-analyzer.llvm.org/scan-build.html">hier</link>.</p>
<section id="tartan">
<title>Tartan</title>
<p>
However, for all the power of the Clang static analyzer, it cannot
detect problems with specific libraries, such as GLib. This is a problem
if a project uses GLib exclusively, and rarely uses POSIX APIs (which
Clang does understand). There is a plugin available for the Clang static
analyzer, called
<link href="http://people.collabora.com/~pwith/tartan/">Tartan</link>,
which extends Clang to support checks against some of the common GLib
APIs.
</p>
<p>
Tartan is still young software, and will produce false positives and may
crash when run on some code. However, it can find legitimate bugs quite
quickly, and is worth running over a code base frequently to detect new
errors in the use of GLib in the code. Please
<link href="http://people.collabora.com/~pwith/tartan/#troubleshooting">
report any problems with Tartan</link>.
</p>
<p>
A full tutorial on enabling Tartan for use with the Clang static
analyzer is
<link href="http://people.collabora.com/~pwith/tartan/#usage-standalone">
here</link>. If set up correctly, the output from Tartan will be mixed
together with the normal static analyzer output.
</p>
</section>
</section>
</page>
|