doc/dyk/lint.html in bake-toolkit-2.0.10 vs doc/dyk/lint.html in bake-toolkit-2.1.0
- old
+ new
@@ -51,9 +51,20 @@
<pre id="rundrum"><code>lint-nt your.lnt test.cpp</code></pre>
To use in bake, add a LintPolicy in Project.meta:
<pre id="rundrum"><code>LintPolicy ".../your.lnt"</code></pre>
+<h3>Output to xml</h3>
+This is an example how to redirect the output to single xml files placed into the main project folder.
+<pre id="rundrum"><code>DefaultToolchain GCC {
+ LintPolicy "-os($(MainProjectDir)/$(ProjectName)_$(ConfigName)_lintout.xml)"
+ LintPolicy "-v"
+ LintPolicy "+xml(doc)"
+ LintPolicy "-format=<message><file>%f</file> <line>%l</line> <type>%t</type> <code>%n</code> <desc>%m</desc></message>"
+ LintPolicy "-format_specific= "
+ LintPolicy "-pragma(message)"</code></pre>
+
+
<h3>Notes</h3>
In rare cases lint has problems if it has to open too many (include) files. If that is the case, use --lint_min and --lint_max command line option of bake. Example:
<pre id="rundrum"><code>bake Debug -p MyLibraryProject --lint --lint_max 50 (lints the first 51 files)
bake Debug -p MyLibraryProject --lint --lint_min 51 --lint_max 100 (lints the next 50 files)
bake Debug -p MyLibraryProject --lint --lint_min 101 (lints the rest of the files)</code></pre>
\ No newline at end of file