Skip to content

Commit dc4edd0

Browse files
author
roman_yakovenko
committed
sphinx
1 parent 7dfe865 commit dc4edd0

File tree

6 files changed

+65
-24
lines changed

6 files changed

+65
-24
lines changed

docs/apidocs/binary_parsers.rest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Overview
88

99
.. automodule:: pygccxml.binary_parsers
1010
:members:
11+
:undoc-members:
1112
:show-inheritance:
1213

1314
--------
@@ -19,4 +20,5 @@ parsers
1920

2021
.. automodule:: pygccxml.binary_parsers.parsers
2122
:members:
23+
:undoc-members:
2224
:show-inheritance:

docs/apidocs/declarations.rest

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Overview
88

99
.. automodule:: pygccxml.declarations
1010
:members:
11+
:undoc-members:
1112
:show-inheritance:
1213

1314
--------
@@ -19,173 +20,198 @@ algorithm
1920

2021
.. automodule:: pygccxml.declarations.algorithm
2122
:members:
23+
:undoc-members:
2224
:show-inheritance:
2325

2426
algorithms_cache
2527
-------------------------
2628

2729
.. automodule:: pygccxml.declarations.algorithms_cache
2830
:members:
31+
:undoc-members:
2932
:show-inheritance:
3033

3134
calldef
3235
----------------
3336

3437
.. automodule:: pygccxml.declarations.calldef
3538
:members:
39+
:undoc-members:
3640
:show-inheritance:
3741

3842
call_invocation
3943
------------------------
4044

4145
.. automodule:: pygccxml.declarations.call_invocation
4246
:members:
47+
:undoc-members:
4348
:show-inheritance:
4449

4550
class_declaration
4651
--------------------------
4752

4853
.. automodule:: pygccxml.declarations.class_declaration
4954
:members:
55+
:undoc-members:
5056
:show-inheritance:
5157

5258
compilers
5359
------------------
5460

5561
.. automodule:: pygccxml.declarations.compilers
5662
:members:
63+
:undoc-members:
5764
:show-inheritance:
5865

5966
container_traits
6067
-------------------------
6168

6269
.. automodule:: pygccxml.declarations.container_traits
6370
:members:
71+
:undoc-members:
6472
:show-inheritance:
6573

6674
cpptypes
6775
-----------------
6876

6977
.. automodule:: pygccxml.declarations.cpptypes
7078
:members:
79+
:undoc-members:
7180
:show-inheritance:
7281

7382
declaration
7483
--------------------
7584

7685
.. automodule:: pygccxml.declarations.declaration
7786
:members:
87+
:undoc-members:
7888
:show-inheritance:
7989

8090
decl_factory
8191
---------------------
8292

8393
.. automodule:: pygccxml.declarations.decl_factory
8494
:members:
95+
:undoc-members:
8596
:show-inheritance:
8697

8798
decl_printer
8899
---------------------
89100

90101
.. automodule:: pygccxml.declarations.decl_printer
91102
:members:
103+
:undoc-members:
92104
:show-inheritance:
93105

94106
decl_visitor
95107
---------------------
96108

97109
.. automodule:: pygccxml.declarations.decl_visitor
98110
:members:
111+
:undoc-members:
99112
:show-inheritance:
100113

101114
dependencies
102115
---------------------
103116

104117
.. automodule:: pygccxml.declarations.dependencies
105118
:members:
119+
:undoc-members:
106120
:show-inheritance:
107121

108122
enumeration
109123
--------------------
110124

111125
.. automodule:: pygccxml.declarations.enumeration
112126
:members:
127+
:undoc-members:
113128
:show-inheritance:
114129

115130
function_traits
116131
------------------------
117132

118133
.. automodule:: pygccxml.declarations.function_traits
119134
:members:
135+
:undoc-members:
120136
:show-inheritance:
121137

122138
matcher
123139
----------------
124140

125141
.. automodule:: pygccxml.declarations.matcher
126142
:members:
143+
:undoc-members:
127144
:show-inheritance:
128145

129146
matchers
130147
-----------------
131148

132149
.. automodule:: pygccxml.declarations.matchers
133150
:members:
151+
:undoc-members:
134152
:show-inheritance:
135153

136154
mdecl_wrapper
137155
----------------------
138156

139157
.. automodule:: pygccxml.declarations.mdecl_wrapper
140158
:members:
159+
:undoc-members:
141160
:show-inheritance:
142161

143162
namespace
144163
------------------
145164

146165
.. automodule:: pygccxml.declarations.namespace
147166
:members:
167+
:undoc-members:
148168
:show-inheritance:
149169

150170
scopedef
151171
-----------------
152172

153173
.. automodule:: pygccxml.declarations.scopedef
154174
:members:
175+
:undoc-members:
155176
:show-inheritance:
156177

157178
templates
158179
------------------
159180

160181
.. automodule:: pygccxml.declarations.templates
161182
:members:
183+
:undoc-members:
162184
:show-inheritance:
163185

164186
typedef
165187
----------------
166188

167189
.. automodule:: pygccxml.declarations.typedef
168190
:members:
191+
:undoc-members:
169192
:show-inheritance:
170193

171194
type_traits
172195
--------------------
173196

174197
.. automodule:: pygccxml.declarations.type_traits
175198
:members:
199+
:undoc-members:
176200
:show-inheritance:
177201

178202
type_visitor
179203
---------------------
180204

181205
.. automodule:: pygccxml.declarations.type_visitor
182206
:members:
207+
:undoc-members:
183208
:show-inheritance:
184209

185210
variable
186211
---------------
187212

188213
.. automodule:: pygccxml.declarations.variable
189214
:members:
215+
:undoc-members:
190216
:show-inheritance:
191217

docs/apidocs/parser.rest

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Overview
88

99
.. automodule:: pygccxml.parser
1010
:members:
11+
:undoc-members:
1112
:show-inheritance:
1213

1314
--------
@@ -19,34 +20,39 @@ config
1920

2021
.. automodule:: pygccxml.parser.config
2122
:members:
23+
:undoc-members:
2224
:show-inheritance:
2325

2426
declarations_cache
2527
----------------------------
2628

2729
.. automodule:: pygccxml.parser.declarations_cache
2830
:members:
31+
:undoc-members:
2932
:show-inheritance:
3033

3134
directory_cache
3235
------------------------
3336

3437
.. automodule:: pygccxml.parser.directory_cache
3538
:members:
39+
:undoc-members:
3640
:show-inheritance:
3741

3842
patcher
3943
----------------
4044

4145
.. automodule:: pygccxml.parser.patcher
4246
:members:
47+
:undoc-members:
4348
:show-inheritance:
4449

4550
project_reader
4651
---------------------
4752

4853
.. automodule:: pygccxml.parser.project_reader
4954
:members:
55+
:undoc-members:
5056
:show-inheritance:
5157

5258

@@ -55,4 +61,5 @@ source_reader
5561

5662
.. automodule:: pygccxml.parser.source_reader
5763
:members:
64+
:undoc-members:
5865
:show-inheritance:

docs/apidocs/utils.rest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Overview
88

99
.. automodule:: pygccxml.utils
1010
:members:
11+
:undoc-members:
1112
:show-inheritance:
1213

1314
--------
@@ -19,5 +20,6 @@ fs_utils
1920

2021
.. automodule:: pygccxml.utils.fs_utils
2122
:members:
23+
:undoc-members:
2224
:show-inheritance:
2325

pygccxml/declarations/container_traits.py

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,16 @@ def erase_hashmap_compare_allocator( cls_name ):
243243

244244

245245
class container_traits_impl_t:
246-
"""this class implements the functionality needed for convenient work with
247-
STD container classes.
246+
"""
247+
implements the functionality needed for convenient work with STD container classes
248248
249249
Implemented functionality:
250-
- find out whether a declaration is STD container or not
251-
- find out container value( mapped ) type
250+
* find out whether a declaration is STD container or not
251+
* find out container value( mapped ) type
252252
253253
This class tries to be useful as much, as possible. For example, for class
254254
declaration( and not definition ) it parsers the class name in order to
255-
extract all the information.
255+
extract the information.
256256
"""
257257
def __init__( self
258258
, container_name
@@ -262,12 +262,11 @@ def __init__( self
262262
, key_type_index=None
263263
, key_type_typedef=None ):
264264
"""
265-
container_name - std container name
266-
element_type_index - position of value\\mapped type within template
267-
arguments list
268-
element_type_typedef - class typedef to the value\\mapped type
269-
key_type_index - position of key type within template arguments list
270-
key_type_typedef - class typedef to the key type
265+
:param container_name: std container name
266+
:param element_type_index: position of value\\mapped type within template arguments list
267+
:param element_type_typedef: class typedef to the value\\mapped type
268+
:param key_type_index: position of key type within template arguments list
269+
:param key_type_typedef: class typedef to the key type
271270
"""
272271
self._name = container_name
273272
self.remove_defaults_impl = defaults_remover
@@ -353,12 +352,18 @@ def key_type( self, type_ ):
353352
, 'container_key_type' )
354353

355354
def remove_defaults( self, type_or_string ):
356-
"""remove template defaults from a template class instantiation
355+
"""
356+
removes template defaults from a template class instantiation
357357
358358
For example:
359-
std::vector< int, std::allocator< int > >
359+
.. code-block:: c++
360+
361+
std::vector< int, std::allocator< int > >
362+
360363
will become
361-
std::vector< int >
364+
.. code-block:: c++
365+
366+
std::vector< int >
362367
"""
363368
name = type_or_string
364369
if not isinstance( type_or_string, types.StringTypes ):

pygccxml/declarations/matchers.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ def __call__( self, decl ):
321321

322322
class calldef_matcher_t( declaration_matcher_t ):
323323
"""
324-
Instance of this class will match callable by next criteria:
325-
- :class:`declaration_matcher_t` criteria
326-
- return type. Example: :class:`int_t` or 'int'
327-
- argument types
324+
Instance of this class will match callable by the following criteria:
325+
* :class:`declaration_matcher_t` criteria
326+
* return type. For example: :class:`int_t` or 'int'
327+
* argument types
328328
"""
329329

330330
def __init__( self, name=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None):
@@ -407,8 +407,8 @@ def __str__( self ):
407407
class operator_matcher_t( calldef_matcher_t ):
408408
"""
409409
Instance of this class will match operators by next criteria:
410-
- :class:`calldef_matcher_t` criteria
411-
- operator symbol: =, !=, (), [] and etc
410+
* :class:`calldef_matcher_t` criteria
411+
* operator symbol: =, !=, (), [] and etc
412412
"""
413413
def __init__( self, name=None, symbol=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None):
414414
"""
@@ -479,14 +479,13 @@ class access_type_matcher_t( matcher_base_t ):
479479
"""
480480
Instance of this class will match declaration by its access type: public,
481481
private or protected. If declarations does not have access type, for example
482-
free function, then False will be returned.
482+
free function, then `False` will be returned.
483483
"""
484484

485485
def __init__( self, access_type ):
486486
"""
487-
:param access_type: declaration access type
488-
:type access_type: :class:ACCESS_TYPES defines few constants for your convenience.
489-
Any way you can pass public, private or protected as argument to this function
487+
:param access_type: declaration access type, could be "public", "private", "protected"
488+
:type access_type: :class: `str`
490489
"""
491490
matcher_base_t.__init__( self )
492491
self.access_type = access_type

0 commit comments

Comments
 (0)