(clang-format for has_example)
This commit is contained in:
parent
57a5752300
commit
a3e31df4d7
1 changed files with 8 additions and 7 deletions
|
@ -402,13 +402,14 @@ void printAttr(Context & ctx, Out & out, const std::string & path, Value & root)
|
|||
}
|
||||
}
|
||||
|
||||
bool has_example(Context & ctx, Value & option) {
|
||||
try {
|
||||
findAlongAttrPath(ctx.state, "example", ctx.autoArgs, option);
|
||||
return true;
|
||||
} catch (Error &) {
|
||||
return false;
|
||||
}
|
||||
bool has_example(Context & ctx, Value & option)
|
||||
{
|
||||
try {
|
||||
findAlongAttrPath(ctx.state, "example", ctx.autoArgs, option);
|
||||
return true;
|
||||
} catch (Error &) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void printOption(Context & ctx, Out & out, const std::string & path, Value & option)
|
||||
|
|
Loading…
Reference in a new issue