(clang-format for has_example)

This commit is contained in:
Chuck 2019-09-17 17:36:26 -07:00 committed by Linus Heckemann
parent 57a5752300
commit a3e31df4d7

View File

@ -402,13 +402,14 @@ void printAttr(Context & ctx, Out & out, const std::string & path, Value & root)
} }
} }
bool has_example(Context & ctx, Value & option) { bool has_example(Context & ctx, Value & option)
try { {
findAlongAttrPath(ctx.state, "example", ctx.autoArgs, option); try {
return true; findAlongAttrPath(ctx.state, "example", ctx.autoArgs, option);
} catch (Error &) { return true;
return false; } catch (Error &) {
} return false;
}
} }
void printOption(Context & ctx, Out & out, const std::string & path, Value & option) void printOption(Context & ctx, Out & out, const std::string & path, Value & option)