Code::Blocks
SVN r11506
|
#include <compilerIAR.h>
Public Member Functions | |
CompilerIAR (wxString arch) | |
virtual | ~CompilerIAR () |
virtual AutoDetectResult | AutoDetectInstallationDir () |
Try to auto-detect the compiler's installation directory. More... | |
Public Member Functions inherited from Compiler | |
Compiler (const wxString &name, const wxString &ID, const wxString &parentID=wxEmptyString, int weight=50) | |
~Compiler () override | |
virtual bool | IsValid () |
Check if the compiler is actually valid (installed). More... | |
virtual CompilerLineType | CheckForWarningsAndErrors (const wxString &line) |
Check if the supplied string is a compiler warning/error. More... | |
virtual wxString | GetLastErrorFilename () |
Returns warning/error filename. More... | |
virtual wxString | GetLastErrorLine () |
Returns warning/error line number (as a string). More... | |
virtual wxString | GetLastError () |
Returns warning/error actual string. More... | |
virtual const wxString & | GetName () const |
Get the compiler's name. More... | |
virtual const wxString & | GetMasterPath () const |
Get the compiler's master path (must contain "bin", "include" and "lib") More... | |
virtual const wxArrayString & | GetExtraPaths () const |
Get the compiler's extra paths. More... | |
virtual const CompilerPrograms & | GetPrograms () const |
Get the compiler's programs. More... | |
virtual const CompilerSwitches & | GetSwitches () const |
Get the compiler's generic switches. More... | |
virtual const CompilerOptions & | GetOptions () const |
Get the compiler's options. More... | |
virtual const wxString & | GetCommand (CommandType ct, const wxString &fileExtension=wxEmptyString) const |
Get a command based on CommandType. More... | |
virtual const CompilerTool * | GetCompilerTool (CommandType ct, const wxString &fileExtension=wxEmptyString) const |
Get a compiler tool based on CommandType. More... | |
virtual CompilerToolsVector & | GetCommandToolsVector (CommandType ct) |
Get a command tool vector based on CommandType (used by advanced compiler dialog) More... | |
virtual const RegExArray & | GetRegExArray () |
Get the array of regexes used in errors/warnings recognition. More... | |
virtual void | LoadDefaultRegExArray (bool globalPrecedence=false) |
Load the default (preset) array of regexes used in errors/warnings recognition. More... | |
virtual void | SetName (const wxString &name) |
Set the compiler's name. More... | |
virtual void | SetMasterPath (const wxString &path) |
Set the compiler's master path (must contain "bin", "include" and "lib") More... | |
virtual void | SetExtraPaths (const wxArrayString &paths) |
Set the compiler's extra paths. More... | |
virtual void | SetPrograms (const CompilerPrograms &programs) |
Set the compiler's programs. More... | |
virtual void | SetSwitches (const CompilerSwitches &switches) |
Set the compiler's generic switches. More... | |
virtual void | SetOptions (const CompilerOptions &options) |
Set the compiler's options. More... | |
virtual void | SetRegExArray (const RegExArray ®exes) |
Set the array of regexes used in errors/warnings recognition. More... | |
virtual void | SaveSettings (const wxString &baseKey) |
Save settings. More... | |
virtual void | LoadSettings (const wxString &baseKey) |
Load settings. More... | |
virtual void | Reset () |
Reset settings to defaults. More... | |
virtual void | ReloadOptions () |
Reload option flags (for copied compilers). More... | |
const wxString & | GetID () const |
Get this compiler's unique ID. More... | |
const wxString & | GetParentID () const |
Get this compiler's parent's unique ID. More... | |
virtual void | SetVersionString () |
Set the compiler version string. More... | |
const wxString | GetVersionString () const |
Get the compiler version string. More... | |
virtual CompilerCommandGenerator * | GetCommandGenerator (cbProject *project) |
This is to be overridden, if compiler needs to alter the default command line generation. More... | |
void | SetCOnlyFlags (const wxString &flags) |
void | SetCPPOnlyFlags (const wxString &flags) |
const wxString & | GetCOnlyFlags () |
const wxString & | GetCPPOnlyFlags () |
bool | WithMultiLineMsg () |
Do compiler writes multi-line messages? More... | |
wxString | MakeInvalidCompilerMessages () const |
Returns messages which might be useful to the use for debugging why the compiler is invalid. More... | |
Public Member Functions inherited from CompileOptionsBase | |
CompileOptionsBase () | |
virtual | ~CompileOptionsBase () |
virtual void | AddPlatform (int platform) |
virtual void | RemovePlatform (int platform) |
virtual void | SetPlatforms (int platforms) |
virtual int | GetPlatforms () const |
virtual bool | SupportsCurrentPlatform () const |
virtual void | SetLinkerOptions (const wxArrayString &linkerOpts) |
virtual const wxArrayString & | GetLinkerOptions () const |
virtual void | AddLinkerOption (const wxString &option) |
virtual void | ReplaceLinkerOption (const wxString &option, const wxString &new_option) |
virtual void | RemoveLinkerOption (const wxString &option) |
virtual void | SetLinkLibs (const wxArrayString &linkLibs) |
virtual const wxArrayString & | GetLinkLibs () const |
virtual void | AddLinkLib (const wxString &option) |
virtual void | ReplaceLinkLib (const wxString &option, const wxString &new_option) |
virtual void | RemoveLinkLib (const wxString &option) |
virtual void | SetCompilerOptions (const wxArrayString &compilerOpts) |
virtual const wxArrayString & | GetCompilerOptions () const |
virtual void | AddCompilerOption (const wxString &option) |
virtual void | ReplaceCompilerOption (const wxString &option, const wxString &new_option) |
virtual void | RemoveCompilerOption (const wxString &option) |
virtual void | SetResourceCompilerOptions (const wxArrayString &resourceCompilerOpts) |
virtual const wxArrayString & | GetResourceCompilerOptions () const |
virtual void | AddResourceCompilerOption (const wxString &option) |
virtual void | ReplaceResourceCompilerOption (const wxString &option, const wxString &new_option) |
virtual void | RemoveResourceCompilerOption (const wxString &option) |
virtual void | SetIncludeDirs (const wxArrayString &includeDirs) |
virtual const wxArrayString & | GetIncludeDirs () const |
virtual void | AddIncludeDir (const wxString &option) |
virtual void | ReplaceIncludeDir (const wxString &option, const wxString &new_option) |
virtual void | RemoveIncludeDir (const wxString &option) |
virtual void | SetResourceIncludeDirs (const wxArrayString &resIncludeDirs) |
virtual const wxArrayString & | GetResourceIncludeDirs () const |
virtual void | AddResourceIncludeDir (const wxString &option) |
virtual void | ReplaceResourceIncludeDir (const wxString &option, const wxString &new_option) |
virtual void | RemoveResourceIncludeDir (const wxString &option) |
virtual void | SetLibDirs (const wxArrayString &libDirs) |
virtual const wxArrayString & | GetLibDirs () const |
virtual void | AddLibDir (const wxString &option) |
virtual void | ReplaceLibDir (const wxString &option, const wxString &new_option) |
virtual void | RemoveLibDir (const wxString &option) |
virtual void | SetCommandsBeforeBuild (const wxArrayString &commands) |
virtual const wxArrayString & | GetCommandsBeforeBuild () const |
virtual void | AddCommandsBeforeBuild (const wxString &command) |
virtual void | RemoveCommandsBeforeBuild (const wxString &command) |
virtual void | SetCommandsAfterBuild (const wxArrayString &commands) |
virtual const wxArrayString & | GetCommandsAfterBuild () const |
virtual void | AddCommandsAfterBuild (const wxString &command) |
virtual void | RemoveCommandsAfterBuild (const wxString &command) |
virtual void | SetBuildScripts (const wxArrayString &scripts) |
virtual const wxArrayString & | GetBuildScripts () const |
virtual void | AddBuildScript (const wxString &script) |
virtual void | RemoveBuildScript (const wxString &script) |
virtual bool | GetModified () const |
virtual void | SetModified (bool modified) |
virtual bool | GetAlwaysRunPostBuildSteps () const |
virtual void | SetAlwaysRunPostBuildSteps (bool always) |
virtual bool | SetVar (const wxString &key, const wxString &value, bool onlyIfExists=false) |
virtual bool | UnsetVar (const wxString &key) |
virtual void | UnsetAllVars () |
virtual bool | HasVar (const wxString &key) const |
virtual const wxString & | GetVar (const wxString &key) const |
virtual const StringHash & | GetAllVars () const |
Protected Member Functions | |
virtual Compiler * | CreateCopy () |
Implement this in new compilers, to return a new copy. More... | |
Protected Member Functions inherited from Compiler | |
Compiler (const Compiler &other) | |
bool | IsUniqueID (const wxString &ID) |
void | MakeValidID () |
void | LoadDefaultOptions (const wxString &name, int recursion=0) |
void | LoadRegExArray (const wxString &name, bool globalPrecedence=false, int recursion=0) |
bool | EvalXMLCondition (const wxXmlNode *node) |
wxString | GetExecName (const wxString &name) |
void | MirrorCurrentSettings () |
Protected Attributes | |
wxString | m_Arch |
Protected Attributes inherited from Compiler | |
wxString | m_Name |
wxString | m_MasterPath |
wxArrayString | m_ExtraPaths |
CompilerToolsVector | m_Commands [ctCount] |
CompilerPrograms | m_Programs |
CompilerSwitches | m_Switches |
CompilerOptions | m_Options |
RegExArray | m_RegExes |
wxString | m_ErrorFilename |
wxString | m_ErrorLine |
wxString | m_Error |
wxString | m_VersionString |
wxString | m_SortOptions [2] |
int | m_Weight |
bool | m_MultiLineMessages |
Protected Attributes inherited from CompileOptionsBase | |
int | m_Platform |
wxArrayString | m_LinkerOptions |
wxArrayString | m_LinkLibs |
wxArrayString | m_CompilerOptions |
wxArrayString | m_ResourceCompilerOptions |
wxArrayString | m_IncludeDirs |
wxArrayString | m_ResIncludeDirs |
wxArrayString | m_LibDirs |
wxArrayString | m_CmdsBefore |
wxArrayString | m_CmdsAfter |
wxArrayString | m_Scripts |
bool | m_Modified |
bool | m_AlwaysRunPostCmds |
StringHash | m_Vars |
Additional Inherited Members | |
Static Public Attributes inherited from Compiler | |
static const wxString | FilePathWithSpaces = _T("[][{}() \t#%$~[:alnum:]&_:+/\\.-]+") |
static wxString | CommandTypeDescriptions [ctCount] |
Get the command type descriptions (used in advanced compiler options) More... | |
Definition at line 11 of file compilerIAR.h.
CompilerIAR::CompilerIAR | ( | wxString | arch | ) |
Definition at line 24 of file compilerIAR.cpp.
References _T, m_Arch, Compiler::m_Weight, and Compiler::Reset().
Referenced by CreateCopy().
|
virtual |
Definition at line 32 of file compilerIAR.cpp.
|
virtual |
Try to auto-detect the compiler's installation directory.
Implements Compiler.
Definition at line 42 of file compilerIAR.cpp.
References _T, wxArrayString::Add(), CompileOptionsBase::AddCompilerOption(), CompileOptionsBase::AddIncludeDir(), CompileOptionsBase::AddLibDir(), CompileOptionsBase::AddLinkerOption(), adrDetected, adrGuessed, CompilerPrograms::C, wxString::Clear(), wxRegKey::Exists(), wxDir::GetFirst(), wxRegKey::GetFirstKey(), wxRegKey::GetName(), wxDir::GetName(), wxDir::GetNext(), wxRegKey::GetNextKey(), wxString::IsEmpty(), wxFileName::IsFileExecutable(), wxDir::IsOpened(), m_Arch, Compiler::m_ExtraPaths, Compiler::m_MasterPath, Compiler::m_Programs, wxRegKey::Open(), wxRegKey::QueryValue(), wxRegKey::Read, wxRegKey::SetName(), wxString::StartsWith(), wxDIR_DIRS, wxDirExists(), wxEmptyString, wxFileExists(), wxGetenv(), and wxT.
|
protectedvirtual |
Implement this in new compilers, to return a new copy.
Implements Compiler.
Definition at line 37 of file compilerIAR.cpp.
References CompilerIAR().
|
protected |
Definition at line 19 of file compilerIAR.h.
Referenced by AutoDetectInstallationDir(), and CompilerIAR().