Package SCons :: Module Warnings
[hide private]
[frames] | no frames]

Module Warnings

source code

SCons.Warnings

This file implements the warnings framework for SCons.



Classes [hide private]
  Warning
  MandatoryWarning
  FutureDeprecatedWarning
  DeprecatedWarning
  MandatoryDeprecatedWarning
  CacheWriteErrorWarning
  CorruptSConsignWarning
  DependencyWarning
  DeprecatedCopyWarning
  DeprecatedOptionsWarning
  DeprecatedSourceSignaturesWarning
  DeprecatedTargetSignaturesWarning
  DuplicateEnvironmentWarning
  FutureReservedVariableWarning
  LinkWarning
  MisleadingKeywordsWarning
  MissingSConscriptWarning
  NoMD5ModuleWarning
  NoMetaclassSupportWarning
  NoObjectCountWarning
  NoParallelSupportWarning
  PythonVersionWarning
  ReservedVariableWarning
  StackSizeWarning
  TaskmasterNeedsExecuteWarning
  VisualCMissingWarning
  VisualVersionMismatch
  VisualStudioMissingWarning
  FortranCxxMixWarning
Functions [hide private]
 
suppressWarningClass(clazz)
Suppresses all warnings that are of type clazz or derived from clazz.
source code
 
enableWarningClass(clazz)
Suppresses all warnings that are of type clazz or derived from clazz.
source code
 
warningAsException(flag=False)
Turn warnings into exceptions.
source code
 
warn(clazz, *args) source code
 
process_warn_strings(arguments)
Process string specifications of enabling/disabling warnings, as passed to the --warn option or the SetOption('warn') function.
source code
Variables [hide private]
  __revision__ = 'src/engine/SCons/Warnings.py 4720 2010/03/24 0...
  _warningAsException = 0
  _enabled = [(<class 'SCons.SConf.SConfWarning'>, 1)]
  _warningOut = False
Function Details [hide private]

warningAsException(flag=False)

source code 
Turn warnings into exceptions.  Returns the old value of the flag.

process_warn_strings(arguments)

source code 
Process string specifications of enabling/disabling warnings,
as passed to the --warn option or the SetOption('warn') function.


An argument to this option should be of the form <warning-class>
or no-<warning-class>.  The warning class is munged in order
to get an actual class name from the classes above, which we
need to pass to the {enable,disable}WarningClass() functions.
The supplied <warning-class> is split on hyphens, each element
is capitalized, then smushed back together.  Then the string
"Warning" is appended to get the class name.

For example, 'deprecated' will enable the DeprecatedWarning
class.  'no-dependency' will disable the .DependencyWarning
class.

As a special case, --warn=all and --warn=no-all will enable or
disable (respectively) the base Warning class of all warnings.


Variables Details [hide private]

__revision__

Value:
'src/engine/SCons/Warnings.py 4720 2010/03/24 03:14:11 jars'