SCons :: cpp :: DumbPreProcessor :: Class DumbPreProcessor
[hide private]
[frames] | no frames]

Class DumbPreProcessor

source code

  object --+    
           |    
PreProcessor --+
               |
              DumbPreProcessor

A preprocessor that ignores all #if/#elif/#else/#endif directives and just reports back all of the #include files (like the classic SCons scanner did).

This is functionally equivalent to using a regular expression to find all of the #include lines, only slower. It exists mainly as an example of how the main PreProcessor class can be sub-classed to tailor its behavior.

Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from PreProcessor: __call__, all_include, do_define, do_elif, do_else, do_endif, do_if, do_ifdef, do_ifndef, do_import, do_include, do_include_next, do_nothing, do_undef, eval_expression, finalize_result, find_include_file, initialize_result, process_contents, read_file, resolve_include, restore, save, scons_current_file, start_handling_includes, stop_handling_includes, tupleize

Inherited from PreProcessor (private): _do_if_else_condition

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)