C# Class CClash.Compiler

Class for processing compiler inputs, running the compiler and deducing outputs.
Inheritance: CClash.ICompiler
Datei anzeigen Open project: artillery/cclash Class Usage Examples

Private Properties

Property Type Description
CommandLineToArgvW System.IntPtr
Compiler System
CreateHardLink int
GetEnvironmentStringsA System.IntPtr
NotSupported bool
_Find string
cygwinEnvFixup void
getFullOption string
getOption string

Public Methods

Method Description
CommandLineToArgs ( string commandLine ) : List
Find ( ) : string
FixEnvironmentDictionary ( string>.Dictionary envs ) : string>.Dictionary
FixupArgs ( IEnumerable args ) : IEnumerable
GetEnvironmentDictionary ( ) : string>.Dictionary
GetPotentialIncludeFiles ( IEnumerable incdirs, IEnumerable incfiles ) : List
GetUsedIncludeDirs ( List files ) : List
InvokeCompiler ( IEnumerable args, Action onStdErr, Action onStdOut, bool showIncludes, List foundIncludes ) : int
InvokePreprocessor ( StreamWriter stdout ) : int
JoinAguments ( IEnumerable args ) : string
ProcessArguments ( string args ) : bool
SetEnvironment ( string>.Dictionary envs ) : void
SetWorkingDirectory ( string path ) : void

Private Methods

Method Description
CommandLineToArgvW ( [ lpCmdLine, int &pNumArgs ) : IntPtr
Compiler ( ) : System
CreateHardLink ( string lpFileName, string lpExistingFileName, IntPtr lpSecurityAttributes ) : int
GetEnvironmentStringsA ( ) : IntPtr
NotSupported ( string fmt ) : bool
_Find ( ) : string
cygwinEnvFixup ( ) : void
getFullOption ( string arg ) : string
getOption ( string arg ) : string

Method Details

CommandLineToArgs() public static method

public static CommandLineToArgs ( string commandLine ) : List
commandLine string
return List

Find() public static method

public static Find ( ) : string
return string

FixEnvironmentDictionary() public static method

public static FixEnvironmentDictionary ( string>.Dictionary envs ) : string>.Dictionary
envs string>.Dictionary
return string>.Dictionary

FixupArgs() public method

public FixupArgs ( IEnumerable args ) : IEnumerable
args IEnumerable
return IEnumerable

GetEnvironmentDictionary() public static method

public static GetEnvironmentDictionary ( ) : string>.Dictionary
return string>.Dictionary

GetPotentialIncludeFiles() public method

public GetPotentialIncludeFiles ( IEnumerable incdirs, IEnumerable incfiles ) : List
incdirs IEnumerable
incfiles IEnumerable
return List

GetUsedIncludeDirs() public method

public GetUsedIncludeDirs ( List files ) : List
files List
return List

InvokeCompiler() public method

public InvokeCompiler ( IEnumerable args, Action onStdErr, Action onStdOut, bool showIncludes, List foundIncludes ) : int
args IEnumerable
onStdErr Action
onStdOut Action
showIncludes bool
foundIncludes List
return int

InvokePreprocessor() public method

public InvokePreprocessor ( StreamWriter stdout ) : int
stdout System.IO.StreamWriter
return int

JoinAguments() public static method

public static JoinAguments ( IEnumerable args ) : string
args IEnumerable
return string

ProcessArguments() public method

public ProcessArguments ( string args ) : bool
args string
return bool

SetEnvironment() public method

public SetEnvironment ( string>.Dictionary envs ) : void
envs string>.Dictionary
return void

SetWorkingDirectory() public method

public SetWorkingDirectory ( string path ) : void
path string
return void