本文整理汇总了C++中iface::displayer::show_frame方法的典型用法代码示例。如果您正苦于以下问题:C++ displayer::show_frame方法的具体用法?C++ displayer::show_frame怎么用?C++ displayer::show_frame使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iface::displayer
的用法示例。
在下文中一共展示了displayer::show_frame方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: display_frame
void mdb_shell::display_frame(const data::frame& frame,
iface::displayer& displayer_) const
{
displayer_.show_frame(frame);
data::file_location source_location = frame.source_location();
if (source_location.name == _env_path)
{
// We don't want to show stuff from the internal header
source_location = data::file_location();
}
// TODO: we should somehow compensate the file_locations returned by
// clang for the <stdin> file. This is hard because the file clang sees
// is just two lines (an include for the PCH and the current line)
// Until this is figured out, printing file sections for <stdin> is
// turned off
// displayer_.show_file_section(source_location, env.get());
displayer_.show_file_section(source_location, "");
}