我直接在没有Visual Studio的情况下使用msvc cl.exe,并且希望有一种简单的方法来读取警告和错误。我的模板设置非常复杂,当收到一些警告或错误时,我必须滚动浏览编译器输出的墙,例如
/internal/include/internal/scene/states/scene_events.h(32): error C2440: 'static_cast': cannot convert from 'game::events::random_event' to 'float'
/helpers/tsm/include/tsm/internal/actions.h(55): note: see reference to function template instantiation 'void game::internal::playing_event::receive_event::operator ()<FSM,OutState>(game::events::random_event &&,FSM &,InState &,game::internal::playing_event &) const' being compiled
with
[
FSM=tsm::back::internal::machine_base<game::internal::scene_fsm>,
OutState=game::internal::ready,
InState=game::internal::ready
]
/helpers/tsm/include/tsm/internal/actions.h(54): note: while compiling class template member function 'void tsm::actions::internal::action_invocation<Action,FSM,Event,InState,OutState>::operator ()(Event &&,FSM &,InState &,OutState &) const'
with
[
Action=game::internal::playing_event::receive_event,
FSM=tsm::back::internal::machine_base<game::internal::scene_fsm>,
Event=game::events::random_event,
InState=game::internal::ready,
OutState=game::internal::playing_event
]
....
,依此类推。是否有任何选项可以禁用“ note:”输出? 我在official docs
中找不到任何内容答案 0 :(得分:0)
很抱歉,它是坏消息的传递者,但是无法禁用编译器诊断程序中的那些注释输出。
有(一些)过滤的第三方工具,但是讨论这些工具是不合时宜的。