- Qt Creator Documentation
- Add custom output parsers
- Qt Creator 17.0.0

How To

# Add custom output parsers

Custom output parsers scan command-line output for error and warning patterns that you specify and create entries for found patterns in Issues.

To add or change custom output parsers, select Preferences > Build & Run > Custom Output Parsers.

To edit the settings of a custom output parser, select it in the list, and then select Edit.

To use a custom output parser for all build or run configurations by default, select Build default or Run default.

To remove the selected parser, select Remove.

## Set custom parser preferences

You can capture errors and warnings separately, according to the settings you specify in the Error and Warning tab.

To create a custom output parser:

1. Select Preferences > Build & Run > Custom Output Parsers > Add.

2. In the Error message capture pattern field, specify a regular expression to define what is an error. The custom parser matches the compile output line by line against the regular expression and displays errors in Issues. Create regular expression groups that contain the file name, line number and error message.
3. In the Capture Positions field, map the regular expression groups to File name, Line number, and Message.
4. In the Capture Output Channels field, specify whether messages from standard output, standard error, or both channels should be captured.
5. In the Test group, you can test how the message that you enter in the Error message field is matched when using the current settings.
6. Select OK to add the parser to the list of parsers and return to the Custom Output Parsers tab.
7. Double-click the parser name to change it to something more descriptive than the default value.

See also Activate custom output parsers, Configure projects for building, and Configure projects for running.

How To