(clang-format for has_example)
This commit is contained in:
parent
57a5752300
commit
a3e31df4d7
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user