aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/bookmaker
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2017-08-04 12:48:24 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-04 17:25:24 +0000
commit4c06f5ee08b169e8b636bc619e355e604b25cf47 (patch)
tree8cb96b968563c3f7cd307bbf7bbdb8cc4b2cfc92 /tools/bookmaker
parent6f08ece37fb4ef61f518b99561702ea996735419 (diff)
fix links and missing constructor
Docs-Preview: https://skia.org/?cl=31145 Bug: skia: 6898 Change-Id: Ic94a15551f3683d9de5d3bda53394d2efce0d6a4 Reviewed-on: https://skia-review.googlesource.com/31145 Commit-Queue: Cary Clark <caryclark@skia.org> Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tools/bookmaker')
-rw-r--r--tools/bookmaker/mdOut.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/bookmaker/mdOut.cpp b/tools/bookmaker/mdOut.cpp
index f048d64aab..f7a18ad9fb 100644
--- a/tools/bookmaker/mdOut.cpp
+++ b/tools/bookmaker/mdOut.cpp
@@ -90,6 +90,9 @@ string MdOut::addReferences(const char* refStart, const char* refEnd,
}
if (!foundMatch) {
if (!(def = this->isDefined(t, fullRef, true))) {
+ if (!result.size()) {
+ t.reportError("missing method");
+ }
return result;
}
ref = fullRef;
@@ -406,7 +409,6 @@ const Definition* MdOut::isDefined(const TextParser& parser, const string& ref,
if (string::npos != ref.find("_Private")) {
return nullptr;
}
- SkDebugf("");
}
if ('f' == ref[0]) {
// FIXME : find def associated with prior, e.g.: r.fX where 'SkPoint r' was earlier
@@ -504,8 +506,7 @@ string MdOut::linkRef(const string& leadingSpaces, const Definition* def,
while (start > 0 && (isalnum(filename[start - 1]) || '_' == filename[start - 1])) {
--start;
}
- buildup = "bmh_" + filename.substr(start) + "?cl=9919#"
- + (classMatch ? namePart : *str);
+ buildup = filename.substr(start) + "#" + (classMatch ? namePart : *str);
str = &buildup;
}
string refOut(ref);