aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/bookmaker/includeParser.cpp
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-06-15 05:11:24 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-15 09:42:24 +0000
commitb7a72a5017137548344e96241bf65d1b426625ac (patch)
tree07c40b25500296bb797b24d4665cba6cee4d113f /tools/bookmaker/includeParser.cpp
parent3df694fe1174d48f92859c671797813eced98862 (diff)
fix bookmaker
make deleted constructors private fix indexing bug that finds private methods TBR=bsalomon@google.com,halcanary@google.com Bug: skia:6898 Change-Id: I86c0bafbb7c56131c503054e021ec844731c900d Reviewed-on: https://skia-review.googlesource.com/135058 Commit-Queue: Cary Clark <caryclark@skia.org> Auto-Submit: Cary Clark <caryclark@skia.org> Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tools/bookmaker/includeParser.cpp')
-rw-r--r--tools/bookmaker/includeParser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bookmaker/includeParser.cpp b/tools/bookmaker/includeParser.cpp
index 2a1e03b79e..d6aa447fc4 100644
--- a/tools/bookmaker/includeParser.cpp
+++ b/tools/bookmaker/includeParser.cpp
@@ -1368,7 +1368,9 @@ bool IncludeParser::parseClass(Definition* includeDef, IsStruct isStruct) {
const char* privateName = kKeyWords[(int) KeyWord::kPrivate].fName;
size_t privateLen = strlen(privateName);
auto childIter = includeDef->fChildren.begin();
- std::advance(childIter, publicIndex);
+ while ((*childIter)->fPrivate) {
+ std::advance(childIter, 1);
+ }
while (childIter != includeDef->fChildren.end()) {
Definition* child = *childIter;
while (child->fParentIndex > keyIndex && iter != includeDef->fTokens.end()) {