当前位置: 首页>>代码示例>>C++>>正文


C++ options::get_bool方法代码示例

本文整理汇总了C++中options::get_bool方法的典型用法代码示例。如果您正苦于以下问题:C++ options::get_bool方法的具体用法?C++ options::get_bool怎么用?C++ options::get_bool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在options的用法示例。


在下文中一共展示了options::get_bool方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: has_show

static bool has_show(options const & opts, name const & kind, unsigned & line, unsigned & col) {
    if (opts.get_bool(kind)) {
        line = opts.get_unsigned("line", 0);
        col  = opts.get_unsigned("column", 0);
        return true;
    } else {
        return false;
    }
}
开发者ID:GallagherCommaJack,项目名称:lean,代码行数:9,代码来源:opt_cmd.cpp

示例2: display_pos

void display_pos(std::ostream & out, options const & o, char const * strm_name, unsigned line, unsigned pos) {
    out << strm_name << ":";
    if (o.get_bool("flycheck", false)) {
        // generate valid line and column for flycheck mode
        if (line == static_cast<unsigned>(-1))
            line = 1;
        if (pos == static_cast<unsigned>(-1))
            pos = 0;
    }
    if (line != static_cast<unsigned>(-1))
        out << line << ":";
    if (pos != static_cast<unsigned>(-1))
        out << pos << ":";
}
开发者ID:skbaek,项目名称:lean,代码行数:14,代码来源:error_handling.cpp

示例3:

bool     get_pp_structure_projections(options const & opts) { return opts.get_bool(*g_pp_structure_projections, LEAN_DEFAULT_PP_STRUCTURE_PROJECTIONS); }
开发者ID:fpvandoorn,项目名称:lean,代码行数:1,代码来源:pp_options.cpp

示例4: get_elaborator_lift_coercions

bool get_elaborator_lift_coercions(options const & opts) {
    return opts.get_bool(*g_elaborator_lift_coercions, LEAN_DEFAULT_ELABORATOR_LIFT_COERCIONS);
}
开发者ID:fgdorais,项目名称:lean,代码行数:3,代码来源:elaborator_context.cpp

示例5: get_elaborator_flycheck_goals

bool get_elaborator_flycheck_goals(options const & opts) {
    return opts.get_bool(*g_elaborator_flycheck_goals, LEAN_DEFAULT_ELABORATOR_FLYCHECK_GOALS);
}
开发者ID:fgdorais,项目名称:lean,代码行数:3,代码来源:elaborator_context.cpp

示例6: get_elaborator_local_instances

bool get_elaborator_local_instances(options const & opts) {
    return opts.get_bool(*g_elaborator_local_instances, LEAN_DEFAULT_ELABORATOR_LOCAL_INSTANCES);
}
开发者ID:fgdorais,项目名称:lean,代码行数:3,代码来源:elaborator_context.cpp

示例7: get_apply_class_instance

bool get_apply_class_instance(options const & opts) {
    return opts.get_bool(*g_apply_class_instance, LEAN_DEFAULT_APPLY_CLASS_INSTANCE);
}
开发者ID:fgdorais,项目名称:lean,代码行数:3,代码来源:apply_tactic.cpp

示例8:

bool     get_pp_binder_types(options const & opts)    { return opts.get_bool(*g_pp_binder_types, LEAN_DEFAULT_PP_BINDER_TYPES); }
开发者ID:cmknapp,项目名称:lean,代码行数:1,代码来源:pp_options.cpp

示例9: get_find_expensive

bool get_find_expensive(options const & opts) {
    return opts.get_bool(*g_find_expensive, LEAN_DEFAULT_FIND_EXPENSIVE);
}
开发者ID:cpehle,项目名称:lean,代码行数:3,代码来源:find_cmd.cpp

示例10: get_elaborator_ignore_instances

bool get_elaborator_ignore_instances(options const & opts) {
    return opts.get_bool(*g_elaborator_ignore_instances, LEAN_DEFAULT_ELABORATOR_IGNORE_INSTANCES);
}
开发者ID:fgdorais,项目名称:lean,代码行数:3,代码来源:elaborator_context.cpp

示例11: get_elaborator_fail_missing_field

bool get_elaborator_fail_missing_field(options const & opts) {
    return opts.get_bool(*g_elaborator_fail_missing_field, LEAN_DEFAULT_ELABORATOR_FAIL_MISSING_FIELD);
}
开发者ID:fgdorais,项目名称:lean,代码行数:3,代码来源:elaborator_context.cpp

示例12:

bool     get_parser_show_errors(options const & opts)  { return opts.get_bool(g_parser_show_errors, LEAN_DEFAULT_PARSER_SHOW_ERRORS); }
开发者ID:Paradoxika,项目名称:lean,代码行数:1,代码来源:parser_imp.cpp


注:本文中的options::get_bool方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。