80 memset(
msg, 0,
sizeof(
msg));
116 return !(*
this == other);
257 : command(rhs.command), extensions(rhs.extensions), generatedFiles(rhs.generatedFiles)
282 virtual bool IsValid();
316 virtual void LoadDefaultRegExArray(
bool globalPrecedence =
false);
335 virtual void SaveSettings(
const wxString& baseKey);
337 virtual void LoadSettings(
const wxString& baseKey);
342 virtual void Reset();
346 virtual void ReloadOptions();
383 wxString MakeInvalidCompilerMessages()
const;
397 void LoadDefaultOptions(
const wxString& name,
int recursion = 0);
399 void LoadRegExArray(
const wxString& name,
bool globalPrecedence =
false,
int recursion = 0);
401 bool EvalXMLCondition(
const wxXmlNode* node);
405 void MirrorCurrentSettings();
bool linkerNeedsLibExtension
virtual const RegExArray & GetRegExArray()
Get the array of regexes used in errors/warnings recognition.
DLLIMPORT wxArrayString GetArrayFromString(const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
CompilerLoggingType logging
CompilerPrograms Programs
virtual wxString GetLastError()
Returns warning/error actual string.
virtual const wxString & GetMasterPath() const
Get the compiler's master path (must contain "bin", "include" and "lib")
virtual void SetName(const wxString &name)
Set the compiler's name.
virtual void SetPrograms(const CompilerPrograms &programs)
Set the compiler's programs.
CompilerSwitches Switches
static wxArrayString m_CompilerIDs
CompilerLoggingType
Helper enum for type of compiler logging.
Generate command-lines needed to produce a build.
virtual const CompilerOptions & GetOptions() const
Get the compiler's options.
bool operator==(const RegExStruct &other)
Link console executable command, e.g. "$linker $libdirs -o $exe_output $link_objects $libs"...
Generate dependencies command.
const wxString & GetCPPOnlyFlags()
Compile object command, e.g. "$compiler $options $includes -c $file -o $object".
void SetRegExString(const wxString &str)
CompilerPrograms m_Programs
void SetCPPOnlyFlags(const wxString &flags)
virtual wxString GetLastErrorLine()
Returns warning/error line number (as a string).
Represents a file in a Code::Blocks project.
CompilerLineType
Enum categorizing compiler's output line as warning/error/info/normal.
wxUSE_UNICODE_dependent wxChar
std::vector< RegExStruct > RegExArray
const wxString & GetID() const
Get this compiler's unique ID.
virtual void SetRegExArray(const RegExArray ®exes)
Set the array of regexes used in errors/warnings recognition.
Represents a Code::Blocks project.
RegExStruct(const RegExStruct &rhs)
const wxString & GetCOnlyFlags()
Link dynamic (dll) lib command, e.g. "$linker -shared -Wl,--output-def=$def_output -Wl...
wxArrayString ResIncludeDirs
wxChar includeDirSeparator
virtual const CompilerPrograms & GetPrograms() const
Get the compiler's programs.
RegExStruct & operator=(const RegExStruct &obj)
This is a base class for all classes needing compilation parameters.
Link executable command, e.g. "$linker $libdirs -o $exe_output $link_objects $libs -mwindows"...
const wxString GetVersionString() const
Get the compiler version string.
const wxString & _(const wxString &string)
wxArrayString LinkerOptions
wxArrayString ResourceCompilerOptions
virtual void SetOptions(const CompilerOptions &options)
Set the compiler's options.
bool operator!=(const RegExStruct &other)
CommandType
Helper enum to retrieve compiler commands.
CompilerOptions m_Options
bool WithMultiLineMsg()
Do compiler writes multi-line messages?
Compile Win32 resources command, e.g. "$rescomp -i $file -J rc -o $resource_output -O coff $includes"...
Abstract base class for compilers.
bool forceLinkerUseQuotes
virtual const wxString & GetName() const
Get the compiler's name.
const wxString & GetParentID() const
Get this compiler's parent's unique ID.
virtual const CompilerSwitches & GetSwitches() const
Get the compiler's generic switches.
wxArrayString IncludeDirs
virtual wxString GetLastErrorFilename()
Returns warning/error filename.
wxString GetRegExString() const
bool linkerNeedsLibPrefix
Represents a Code::Blocks project build target.
bool Compile(const wxString &pattern, int flags=wxRE_DEFAULT)
Link native binary command.
virtual void SetSwitches(const CompilerSwitches &switches)
Set the compiler's generic switches.
Link static lib command, e.g. "ar -r $output $link_objects\n\tranlib $static_output".
wxArrayString CompilerOptions_
const wxRegEx & GetRegEx() const
RegExStruct(const wxString &_desc, CompilerLineType _lt, const wxString &_regex, int _msg, int _filename=0, int _line=0, int _msg2=0, int _msg3=0)
static const wxString FilePathWithSpaces
virtual void SetVersionString()
Set the compiler version string.
bool forceCompilerUseQuotes
bool IsUniqueID(const wxString &ID)
void CompileRegEx() const
virtual void SetMasterPath(const wxString &path)
Set the compiler's master path (must contain "bin", "include" and "lib")
void SetCOnlyFlags(const wxString &flags)
bool linkerNeedsPathResolved
CompilerSwitches m_Switches