Showing Task List Files in the Build Issues PaneCode scanning and analysis tools create report files in ASCII format. Usually, the report files consist of lines that contain a file name, a line number, and an error message. A similar format is used for stack traces obtained from crash reports. Traditionally, you would fix the errors by manually navigating to them and correcting them, which is tedious. Qt Creator makes this very easy by providing a way to load these files into the Build Issues pane. You can navigate to the corresponding source code by clicking the error message. But first you must convert the files to the Task List File Format by using conversion scripts that based on standard text processing tools of the operating system. In addition, you can generate task list files from code. For an example of a script that checks new lines of code and matches them against regular expressions to generate a task list, see scripts\mytasks.pl in the Qt Creator repository. To open task list files, choose File > Open. Task List File FormatThe filename extension must be .tasks for Qt Creator to recognize a file as a task list file. Each line in a task list file is treated as a tab-separated list of strings with \t, \n, and \\ used as escape characters. The strings are used to create one task per line. The lines can have one of the following formats:
The task type can have one of the following values:
The values are not case sensitive. Lines starting with the hash mark character (#) in the first column are ignored. [Previous: Editing MIME Types] [Next: Using Command Line Options] © 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia. Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. X
|