Kaydet (Commit) 7f9129c9 authored tarafından Colomban Wendling's avatar Colomban Wendling Kaydeden (comit) Thomas Martitz

Mark private fields as private in the GtkDoc header

üst 2280ca43
......@@ -292,11 +292,14 @@ class DoxyStruct(DoxyElement):
# 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment