mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix documentation errors (issue #1834)
This commit is contained in:
@ -168,6 +168,21 @@ def get_comment(body, name):
|
||||
result.reverse()
|
||||
return result
|
||||
|
||||
def validate_comment(file, name, comment):
|
||||
""" Validate the comment array returned by get_comment(). """
|
||||
# Verify that the comment contains beginning and ending '///' as required by
|
||||
# CppDoc (the leading '//' from each line will already have been removed by
|
||||
# the get_comment() logic). There may be additional comments proceeding the
|
||||
# CppDoc block so we look at the quantity of lines equaling '/' and expect
|
||||
# the last line to be '/'.
|
||||
docct = 0
|
||||
for line in comment:
|
||||
if not line is None and len(line) > 0 and line == '/':
|
||||
docct = docct + 1
|
||||
if docct != 2 or len(comment) < 3 or comment[len(comment)-1] != '/':
|
||||
raise Exception('Missing or incorrect comment in %s for: %s' % \
|
||||
(file, name))
|
||||
|
||||
def format_comment(comment, indent, translate_map = None, maxchars = 80):
|
||||
""" Return the comments array as a formatted string. """
|
||||
result = ''
|
||||
@ -550,6 +565,7 @@ class obj_header:
|
||||
# build the global function objects
|
||||
for attrib, retval, argval in list:
|
||||
comment = get_comment(data, retval+'('+argval+');')
|
||||
validate_comment(filename, retval, comment)
|
||||
self.funcs.append(obj_function(self, filename, attrib, retval,
|
||||
argval, comment))
|
||||
|
||||
@ -574,6 +590,7 @@ class obj_header:
|
||||
# build the class objects
|
||||
for attrib, name, parent_name, body in list:
|
||||
comment = get_comment(data, name+' : public')
|
||||
validate_comment(filename, name, comment)
|
||||
self.classes.append(
|
||||
obj_class(self, filename, attrib, name, parent_name, body,
|
||||
comment, includes, forward_declares))
|
||||
@ -754,6 +771,7 @@ class obj_class:
|
||||
self.staticfuncs = []
|
||||
for attrib, retval, argval in list:
|
||||
comment = get_comment(body, retval+'('+argval+')')
|
||||
validate_comment(filename, retval, comment)
|
||||
self.staticfuncs.append(
|
||||
obj_function_static(self, attrib, retval, argval, comment))
|
||||
|
||||
@ -767,6 +785,7 @@ class obj_class:
|
||||
self.virtualfuncs = []
|
||||
for attrib, retval, argval, vfmod in list:
|
||||
comment = get_comment(body, retval+'('+argval+')')
|
||||
validate_comment(filename, retval, comment)
|
||||
self.virtualfuncs.append(
|
||||
obj_function_virtual(self, attrib, retval, argval, comment,
|
||||
vfmod))
|
||||
|
@ -45,7 +45,7 @@ install_name_tool and a path relative to @executable_path.
|
||||
|
||||
The "cefclient Helper" app is used for executing separate processes (renderer,
|
||||
plugin, etc) with different characteristics. It needs to have a separate app
|
||||
bundle and Info.plist files so that, among other things, it does not show dock
|
||||
bundle and Info.plist file so that, among other things, it doesn’t show dock
|
||||
icons.
|
||||
|
||||
Required components:
|
||||
|
@ -25,9 +25,8 @@ Release Contains libcef.dll, libcef.lib and other components required to
|
||||
executable and will be copied there as part of the build process.
|
||||
|
||||
Resources Contains resources required by libcef.dll. By default these files
|
||||
should be placed in the same directory as libcef.dll. By default
|
||||
these files should be placed in the same directory as libcef.dll
|
||||
and will be copied there as part of the build process.
|
||||
should be placed in the same directory as libcef.dll and will be
|
||||
copied there as part of the build process.
|
||||
|
||||
|
||||
USAGE
|
||||
|
@ -12,7 +12,7 @@ set CPPDOC_REV="%1"
|
||||
if not exist %CPPDOC_EXE% (
|
||||
echo ERROR: Please install CppDoc from http://www.cppdoc.com/
|
||||
) else (
|
||||
%CPPDOC_EXE% -overwrite -title="CEF3 C++ API Docs - Revision %CPPDOC_REV%" -footer="<center><a href="http://code.google.com/p/chromiumembedded" target="_top">Chromium Embedded Framework (CEF)</a> Copyright © 2012 Marshall A. Greenblatt</center>" -namespace-as-project -comment-format="///;//;///" -classdir=projects -module="cppdoc-standard" -extensions=h -languages="c=cpp,cc=cpp,cpp=cpp,cs=csharp,cxx=cpp,h=cpp,hpp=cpp,hxx=cpp,java=java" -D"OS_WIN" -D"USING_CEF_SHARED" -D"__cplusplus" -D"CEF_STRING_TYPE_UTF16" -enable-author=false -enable-deprecations=true -enable-since=true -enable-version=false -file-links-for-globals=false -generate-deprecations-list=false -generate-hierarchy=true -header-background-dark="#ccccff" -header-background-light="#eeeeff" -include-private=false -include-protected=true -index-file-base=index -overview-html=overview.html -reduce-summary-font=true -selected-text-background=navy -selected-text-foreground=white -separate-index-pages=false -show-cppdoc-version=false -show-timestamp=false -summary-html=project.html -suppress-details=false -suppress-frames-links=false -table-background=white -wrap-long-lines=false ..\include #cef_runnable.h #cef_tuple.h #capi "..\docs\index.html"
|
||||
%CPPDOC_EXE% -overwrite -title="CEF3 C++ API Docs - Revision %CPPDOC_REV%" -footer="<center><a href="https://bitbucket.org/chromiumembedded/cef" target="_top">Chromium Embedded Framework (CEF)</a> Copyright © 2016 Marshall A. Greenblatt</center>" -namespace-as-project -comment-format="///;//;///" -classdir=projects -module="cppdoc-standard" -extensions=h -languages="c=cpp,cc=cpp,cpp=cpp,cs=csharp,cxx=cpp,h=cpp,hpp=cpp,hxx=cpp,java=java" -D"OS_WIN" -D"USING_CEF_SHARED" -D"__cplusplus" -D"CEF_STRING_TYPE_UTF16" -enable-author=false -enable-deprecations=true -enable-since=true -enable-version=false -file-links-for-globals=false -generate-deprecations-list=false -generate-hierarchy=true -header-background-dark="#ccccff" -header-background-light="#eeeeff" -include-private=false -include-protected=true -index-file-base=index -overview-html=overview.html -reduce-summary-font=true -selected-text-background=navy -selected-text-foreground=white -separate-index-pages=false -show-cppdoc-version=false -show-timestamp=false -summary-html=project.html -suppress-details=false -suppress-frames-links=false -table-background=white -wrap-long-lines=false ..\include #cef_runnable.h #cef_tuple.h #capi "..\docs\index.html"
|
||||
)
|
||||
|
||||
endlocal
|
Reference in New Issue
Block a user