Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
18a8721f
Commit
18a8721f
authored
May 28, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes for documentation checking script
parent
ddd9a99c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
check_docs2.py
doc/check_docs2.py
+13
-0
old_basic_structures.rst
modules/core/doc/old_basic_structures.rst
+1
-1
hdr_parser.py
modules/python/src2/hdr_parser.py
+3
-0
No files found.
doc/check_docs2.py
View file @
18a8721f
...
...
@@ -37,6 +37,11 @@ doc_signatures_whitelist = [
# these are even non-template
"gpu::DeviceInfo"
,
"gpu::GpuMat"
,
"gpu::TargetArchs"
,
"gpu::FeatureSet"
]
defines
=
[
"cvGraphEdgeIdx"
,
"cvFree"
,
"CV_Assert"
,
"cvSqrt"
,
"cvGetGraphVtx"
,
"cvGraphVtxIdx"
,
# not a real function but behaves as function
"Mat.size"
]
synonims
=
{
"StarDetector"
:
[
"StarFeatureDetector"
],
"MSER"
:
[
"MserFeatureDetector"
],
...
...
@@ -191,6 +196,8 @@ def process_module(module, path):
namespaces
.
append
(
namespace
)
else
:
funcs
.
append
(
decl
)
# if "RNG" in decl[0]:
# print decl
clsnamespaces
=
[]
# process classes
...
...
@@ -391,6 +398,8 @@ def process_module(module, path):
decls
=
doc
.
get
(
"decls"
)
if
not
decls
:
continue
# if "RNG" in name:
# print name, decls
for
signature
in
decls
:
if
signature
[
0
]
==
"C"
or
signature
[
0
]
==
"C++"
:
if
"template"
in
(
signature
[
2
][
1
]
or
""
):
...
...
@@ -434,7 +443,11 @@ def process_module(module, path):
for
d
in
doc
.
get
(
"decls"
,
[]):
if
d
[
-
1
]
!=
DOCUMENTED_MARKER
:
if
d
[
0
]
==
"C"
or
d
[
0
]
==
"C++"
or
(
do_python_crosscheck
and
d
[
0
]
.
startswith
(
"Python"
)):
if
d
[
0
][
0
]
==
'C'
and
d
[
2
][
0
][
3
:]
in
defines
:
#TODO: need to find a way to verify #define's
continue
logerror
(
ERROR_011_UNKNOWNFUNC
,
d
[
0
]
+
" function is documented but is not found in OpenCV headers. It is documented as:
\n\t
"
+
d
[
1
],
doc
)
#print d[2][0][3:]
# end of process_module
if
__name__
==
"__main__"
:
...
...
modules/core/doc/old_basic_structures.rst
View file @
18a8721f
...
...
@@ -160,7 +160,7 @@ Sub-pixel accurate size of a rectangle.
Height of the rectangle
.. ocv:cfunction:: CvSize2D32f cvSize2D
23f( float width, float
height )
.. ocv:cfunction:: CvSize2D32f cvSize2D
32f( double width, double
height )
constructs ``CvSize2D32f`` structure.
...
...
modules/python/src2/hdr_parser.py
View file @
18a8721f
...
...
@@ -419,6 +419,9 @@ class CppHeaderParser(object):
print
"Error at
%
d: no args in '
%
s'"
%
(
self
.
lineno
,
decl_str
)
sys
.
exit
(
-
1
)
decl_start
=
decl_str
[:
args_begin
]
.
strip
()
# TODO: normalize all type of operators
if
decl_start
.
endswith
(
"()"
):
decl_start
=
decl_start
[
0
:
-
2
]
.
rstrip
()
+
" ()"
# constructor/destructor case
if
bool
(
re
.
match
(
r'(\w+::)*(?P<x>\w+)::~?(?P=x)'
,
decl_start
)):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment