cscm.EDGFrontEnd¶
-
class
cscm.EDGFrontEnd¶ -
Bases:
cscm.FrontEndBaseUsed by compiler model classes to add in command line arguments for executing cprocess. Compiler models should add in arguments from
first_options()first, then options fromcs_and_fe_options(), and then the EDG options that the compiler model generates.You do not need to instantiate this class: all methods are static.
Methods
cs_and_fe_options()Generate CodeSonar and front end options. first_options()Get the beginning of argv for the front end command line. - static
cs_and_fe_options(language, pointer_width, pc)¶ -
Generate CodeSonar and front end options.
Parameters: - language (language value) –
- pointer_width (int) –
- pc (ParseConfiguration) –
Return type: [
CmdArgument]Generates a list of CodeSonar options, such as -invoke-compiler. After that, a list of EDG options, like -DDRAGON=smaug.
Any CodeSonar options that compiler models generate should be prepended to the list returned by this function.
Any EDG options that compiler models generate should be appended to the list returned by this function.
- static
first_options(source_file, object_file="")¶ -
Get the beginning of argv for the front end command line.
Parameters: - source_file (str) –
- object_file (str) –
Return type: [
CmdArgument]
- static