在错误列表窗格中向消息列表发出诊断 [英] Issuing diagnostics to messages list in the error list pane

查看:92
本文介绍了在错误列表窗格中向消息列表发出诊断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过使用#pragma消息,可以向构建输出发出诊断消息。然后,IDE会过滤此输出以填充错误,警告和消息列表。格式为"path(line):error | warning:..."的行显示
作为错误或警告,但我找不到报告"消息"的方法。字符串的正确格式是什么?

By using #pragma message it's possible to emit diagnostic messages to the build output. The IDE then filters this output to populate the list of errors, warnings and messages. Lines following the format "path(line): error|warning: ..." are displayed as errors or warnings, but I don't find a way to report "messages". What's the proper format for the string?

推荐答案

你不能。

唯一通过格式化输出消息可以实现的两个类别是"错误"。和"警告"。

The only two categories that can be achieved through formatting your output message are "error" and "warning".

要输出分类为"消息"的项目,您必须编写扩展名。

To output items that are categorized as "messages", you would have to write an extension.


这篇关于在错误列表窗格中向消息列表发出诊断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆