Qt Creator Documentation

Creating Task List Files

You can load tasks from task lists to the Build Issues pane. You can either create the task lists manually or create scripts to generate them from output of static code analysis tools, for example.

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.

Task List File Format

The 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:

  • description
  • type\tdescription
  • file\ttype\tdescription
  • file\tline\ttype\tdescription

The task type can have one of the following values:

  • A string starting with err, which displays the error icon in the beginning of the line
  • A string starting with warn, which displays the warning icon
  • Any other value, which sets the task type to Unknown and does not display an icon

The values are not case sensitive.

Lines starting with the hash mark character (#) in the first column are ignored.

[Previous: Using Version Control Systems] [Next: Using Command Line Options]

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

s.parentNode.insertBefore(ga, s); })(); -->