aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/bookmaker/definition.cpp
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-01-05 12:10:09 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-05 18:13:34 +0000
commitf5404bbcf49dbb3b0799cb6bd647c9a2ea14bea4 (patch)
treecbaa37d72402371e72cbec0ccd9b37f9c03200af /tools/bookmaker/definition.cpp
parentc14f144484eff57f6861766510876d83b9046fa6 (diff)
update bookmaker
change https://skia-review.googlesource.com/c/skia/+/91380 should have triggered a bookmaker failure but, while it reported the error it did not return that the check failed. See https://chromium-swarm.appspot.com/task?id=3adfe04df6f9ce10&refresh=10 Update bookmaker to detect and return error also, add some SkImage examples fixed some linefeeds TBR=bsalomon@google.com Docs-Preview: https://skia.org/?cl=90883 Bug: skia:6898 Change-Id: I3530c8d81785b71568f6229c2aad3259dded59d7 Reviewed-on: https://skia-review.googlesource.com/90883 Commit-Queue: Cary Clark <caryclark@skia.org> Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tools/bookmaker/definition.cpp')
-rw-r--r--tools/bookmaker/definition.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/tools/bookmaker/definition.cpp b/tools/bookmaker/definition.cpp
index 77f4446445..82b0a33a81 100644
--- a/tools/bookmaker/definition.cpp
+++ b/tools/bookmaker/definition.cpp
@@ -1215,18 +1215,10 @@ void RootDefinition::clearVisited() {
}
}
-bool RootDefinition::dumpUnVisited(bool skip) {
- bool allStructElementsFound = true;
+bool RootDefinition::dumpUnVisited() {
+ bool success = true;
for (auto& leaf : fLeaves) {
if (!leaf.second.fVisited) {
- // TODO: parse embedded struct in includeParser phase, then remove this condition
- if (skip) {
- const Definition& def = leaf.second;
- if (def.fChildren.size() > 0 &&
- MarkType::kDeprecated == def.fChildren[0]->fMarkType) {
- continue;
- }
- }
// FIXME: bugs requiring long tail fixes, suppressed here:
// SkBitmap::validate() is wrapped in SkDEBUGCODE in .h and not parsed
if ("SkBitmap::validate()" == leaf.first) {
@@ -1238,12 +1230,13 @@ bool RootDefinition::dumpUnVisited(bool skip) {
}
// FIXME: end of long tail bugs
SkDebugf("defined in bmh but missing in include: %s\n", leaf.first.c_str());
+ success = false;
}
}
for (auto& branch : fBranches) {
- allStructElementsFound &= branch.second->dumpUnVisited(skip);
+ success &= branch.second->dumpUnVisited();
}
- return allStructElementsFound;
+ return success;
}
const Definition* RootDefinition::find(const string& ref, AllowParens allowParens) const {