@@ -198,7 +198,8 @@ def raise_on_wrong_settings( self ):
198
198
config_t = gccxml_configuration_t #backward computability
199
199
200
200
gccxml_configuration_example = \
201
- """[gccxml]
201
+ """
202
+ [gccxml]
202
203
#path to gccxml executable file - optional, if not provided, os.environ['PATH']
203
204
#variable is used to find it
204
205
gccxml_path=
@@ -210,24 +211,34 @@ def raise_on_wrong_settings( self ):
210
211
#You can explicitly set what compiler it should emulate.
211
212
#Valid options are: g++, msvc6, msvc7, msvc71, msvc8, cl.
212
213
compiler=
213
-
214
- #GCC-XML site: http://gccxml.org/
215
214
"""
216
215
217
216
def load_gccxml_configuration ( configuration , ** defaults ):
218
- """loads GCC-XML configuration from a file
217
+ """
218
+ loads GCC-XML configuration from an `.ini` file or any other file class
219
+ :class:`ConfigParser.SafeConfigParser` is able to parse.
219
220
220
- Configuration file sceleton:
221
+ :param configuration: configuration could be string( configuration file path )
222
+ or instance of :class:`ConfigParser.SafeConfigParser` class
221
223
222
- >>> start <<<
224
+ :rtype: :class:`.gccxml_configuration_t`
223
225
224
- %s
226
+ Configuration file sceleton::
225
227
226
- >>> end <<<
228
+ [gccxml]
229
+ #path to gccxml executable file - optional, if not provided, os.environ['PATH']
230
+ #variable is used to find it
231
+ gccxml_path=
232
+ #gccxml working directory - optional, could be set to your source code directory
233
+ working_directory=
234
+ #additional include directories, separated by ';' or ':'
235
+ include_paths=
236
+ #gccxml has a nice algorithms, which selects what C++ compiler to emulate.
237
+ #You can explicitly set what compiler it should emulate.
238
+ #Valid options are: g++, msvc6, msvc7, msvc71, msvc8, cl.
239
+ compiler=
227
240
228
- configuration could be string( configuration file path ) or instance of
229
- ConfigParser.SafeConfigParser class
230
- """ % gccxml_configuration_example
241
+ """
231
242
parser = configuration
232
243
if isinstance ( configuration , types .StringTypes ):
233
244
from ConfigParser import SafeConfigParser
0 commit comments