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 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.

    "Custom Output Parsers preferences"

  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.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.