com.codemesh.terp.ant.compiler.cpp
Class BoundsCheckOption
java.lang.Object
com.codemesh.terp.ant.compiler.AbstractCompilerOption<C>
com.codemesh.terp.ant.compiler.BooleanCompilerOption<CppCompiler>
com.codemesh.terp.ant.compiler.cpp.BoundsCheckOption
- All Implemented Interfaces:
- CompilerOption<CppCompiler>, CompuwareOption
public class BoundsCheckOption
- extends BooleanCompilerOption<CppCompiler>
- implements CompuwareOption
The compiler switch that enables instrumentation with CompuWare's BoundsChecker.
This option is currently only supported for the Microsoft C++ compiler.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundsCheckOption
public BoundsCheckOption()
setNMCL
public void setNMCL(java.lang.String nmcl)
addCommands
public void addCommands(java.util.List<java.lang.String> commandList,
CppCompiler compiler,
CompilerPhase phase)
- Description copied from interface:
CompilerOption
- Adds the compiler switches repreesnted by this option to the list of switches.
Some compiler options may result in more than one switch being added to a compiler
invocation. Other compiler options may result in different options being added
in different phases (compilation vs. linking) of the build.
This method is called by the compiler repeatedly with different values for the
compiler phase to account for these possibilities.
- Specified by:
addCommands in interface CompilerOption<CppCompiler>
- Parameters:
commandList - the list to which the compiler switches represented
by this option (if any) are added.compiler - the compiler for which we're doing this.phase - the compiler phase in wihch we're doing this.
getNMCL
public java.io.File getNMCL(CppCompiler compiler)
- Specified by:
getNMCL in interface CompuwareOption
getNMLink
public java.io.File getNMLink(CppCompiler compiler)
- Specified by:
getNMLink in interface CompuwareOption
appliesTo
public boolean appliesTo(CppCompiler compiler,
CompilerPhase phase)
- Description copied from interface:
CompilerOption
- Returns true if this compiler option applies to the given compiler and compiler phase.
Not every option has switches to contribute for every compiler and every compilation
phase. This method allows a quick, inexpensive check to filter out potentially more
expensive calls later on.
- Specified by:
appliesTo in interface CompilerOption<CppCompiler>
- Parameters:
compiler - the compiler for which we're asking.phase - the compiler phase we're executing.
- Returns:
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.