diff options
author | Cary Clark <caryclark@skia.org> | 2018-01-30 10:08:57 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-30 15:32:15 +0000 |
commit | ab2621d3e2d2055096b9fbebf16ee443e4ea90fb (patch) | |
tree | a8e72ba83ea8f67cd540f93fbc6ecb4274cf9116 /tools/bookmaker/definition.cpp | |
parent | bbbcb94722905539ddfe62901573dcc73e997a30 (diff) |
generate tables instead of manual entry
- make descriptions of table entries phrases instead of sentences;
lower case start, no ending period (not enforced, yet)
- add #Line markup to move one line descriptions to the #Method
body. Later, will generate tables like Member_Functions from this
- add #In markup to associate a #Method with a #Subtopic. Later, will
generate tables of related methods from this
- remove return type from operator overloads in tables
- add new colorTypes to examples that index into arrays of strings
to name them
Docs-Preview: https://skia.org/?cl=100422
TBR=caryclark@google.com
Bug: skia:6898
Change-Id: I8558048866369f419f1944832b99c05da3fd52bb
Reviewed-on: https://skia-review.googlesource.com/100422
Reviewed-by: Cary Clark <caryclark@skia.org>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tools/bookmaker/definition.cpp')
-rw-r--r-- | tools/bookmaker/definition.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/bookmaker/definition.cpp b/tools/bookmaker/definition.cpp index 74f4d5a7fb..ed4e06cd35 100644 --- a/tools/bookmaker/definition.cpp +++ b/tools/bookmaker/definition.cpp @@ -1052,6 +1052,16 @@ bool Definition::hasMatch(const string& name) const { return false; } +bool Definition::isStructOrClass() const { + if (MarkType::kStruct != fMarkType && MarkType::kClass != fMarkType) { + return false; + } + if (string::npos != fFileName.find("undocumented.bmh")) { + return false; + } + return true; +} + bool Definition::methodHasReturn(const string& name, TextParser* methodParser) const { if (methodParser->skipExact("static")) { methodParser->skipWhiteSpace(); |