Package SCons :: Package Scanner :: Module C :: Class SConsCPPScanner
[hide private]
[frames] | no frames]

Class SConsCPPScanner

source code

      object --+    
               |    
cpp.PreProcessor --+
                   |
                  SConsCPPScanner

SCons-specific subclass of the cpp.py module's processing.

We subclass this so that: 1) we can deal with files represented by Nodes, not strings; 2) we can keep track of the files that are missing.

Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
initialize_result(self, fname) source code
 
finalize_result(self, fname) source code
 
find_include_file(self, t)
Finds the #include file for a given preprocessor tuple.
source code
 
read_file(self, file) source code

Inherited from cpp.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, process_contents, resolve_include, restore, save, scons_current_file, start_handling_includes, stop_handling_includes, tupleize

Inherited from cpp.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 x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

initialize_result(self, fname)

source code 
Overrides: cpp.PreProcessor.initialize_result

finalize_result(self, fname)

source code 
Overrides: cpp.PreProcessor.finalize_result

find_include_file(self, t)

source code 
Finds the #include file for a given preprocessor tuple.
Overrides: cpp.PreProcessor.find_include_file
(inherited documentation)

read_file(self, file)

source code 
Overrides: cpp.PreProcessor.read_file