[geany/geany] 7f9129: Mark private fields as private in the GtkDoc header
Colomban Wendling
git-noreply at xxxxx
Sat Feb 20 21:45:53 UTC 2016
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Thomas Martitz <kugel at rockbox.org>
Date: Sat, 20 Feb 2016 21:45:53 UTC
Commit: 7f9129c9384e03895170ed5b0c4b70a0c995556b
https://github.com/geany/geany/commit/7f9129c9384e03895170ed5b0c4b70a0c995556b
Log Message:
-----------
Mark private fields as private in the GtkDoc header
Modified Paths:
--------------
scripts/gen-api-gtkdoc.py
Modified: scripts/gen-api-gtkdoc.py
5 lines changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -292,11 +292,14 @@ def from_compounddef(xml, typedefs = []):
# Exception: there are no typedefs for GeanyFooPrivate so skip those. Their exact
# type isn't needed anyway
s = fix_definition(p.find("definition").text).lstrip()
+ proc = DoxygenProcess()
+ brief = proc.process_element(p.find("briefdescription"))
+ private = (normalize_text(brief) == "")
words = s.split()
if (words[0] == "struct"):
if not (words[1].endswith("Private") or words[1].endswith("Private*")):
s = " ".join(words[1:])
- d += "\t%s;\n" % s
+ d += "\t/*< %s >*/\n\t%s;\n" % ("private" if private else "public", s)
d += "};\n"
e = DoxyStruct(name, d)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list