20 #include <wx/arrimpl.cpp> 36 long int line,
const wxString& error)
63 while (bkp < (
int)
m_Errors.GetCount())
67 const bool isNote = ((
m_Errors[bkp].errors.GetCount()>0)
68 &&
m_Errors[bkp].errors[0].StartsWith(
_T(
"note:")));
95 const bool isNote = ((
m_Errors[bkp].errors.GetCount()>0)
96 &&
m_Errors[bkp].errors[0].StartsWith(
_T(
"note:")));
132 for (
unsigned int i = 0; i <
m_Errors.GetCount(); ++i)
148 if (project &&
Manager::Get()->GetProjectManager()->IsProjectStillOpen(project))
151 bool isAbsolute = (filename.
Length() > 1 && filename.
GetChar(1) ==
':') ||
250 if (
m_Errors.GetCount() == 0 || index < 0 || index > (int)
m_Errors.GetCount() - 1)
261 for (
unsigned int i = 0; i <
m_Errors.GetCount(); ++i)
271 unsigned int count = 0;
272 for (
unsigned int i = 0; i <
m_Errors.GetCount(); ++i)
ProjectFile * GetFileByFilename(const wxString &filename, bool isRelative=true, bool isUnixFilename=false)
Access a file of the project.
bool Matches(const wxString &mask) const
bool HasNextError() const
virtual ~CompilerErrors()
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
int GetFirstError() const
virtual FilesList & GetFilesList()
Provides an easy way to iterate all the files belonging in this target.
void GotoLine(int line, bool centerOnScreen=true) override
Move the caret at the specified line.
wxFileName file
The full filename of this file.
virtual void Activate()
Activate this editor.
CompilerLineType lineType
Represents a file in a Code::Blocks project.
CompilerLineType
Enum categorizing compiler's output line as warning/error/info/normal.
EditorManager * GetEditorManager() const
void DoAddError(const CompileError &error)
ProjectManager * GetProjectManager() const
Functions returning pointers to the respective sub-manager instances.
virtual void SetErrorLine(int line)
Highlight the specified line as error.
Represents a Code::Blocks project.
DLLIMPORT bool IsSuffixOfPath(wxFileName const &suffix, wxFileName const &path)
bool HasPreviousError() const
WX_DEFINE_OBJARRAY(ErrorsArray)
void DoGotoError(const CompileError &error)
cbProject * GetActiveProject()
Retrieve the active project.
cbEditor * Open(const wxString &filename, int pos=0, ProjectFile *data=nullptr)
cbEditor * GetBuiltinEditor(EditorBase *eb)
void UnfoldBlockFromLine(int line=-1)
Unfolds the block containing line.
void SetProjectFile(ProjectFile *project_file, bool preserve_modified=false)
Set the ProjectFile pointer associated with this editor.
void DoClearErrorMarkFromAllEditors()
wxString GetCommonTopLevelPath() const
wxString & Prepend(const wxString &str)
size_t Add(const wxString &str, size_t copies=1)
bool StartsWith(const wxString &prefix, wxString *rest=NULL) const
ProjectFile * GetProjectFile() const
Read the ProjectFile pointer associated with this editor.
wxUniChar GetChar(size_t n) const
void AddError(CompilerLineType lt, cbProject *project, const wxString &filename, long int line, const wxString &error)
wxString GetFullPath(wxPathFormat format=wxPATH_NATIVE) const
int ErrorLineHasMore(const wxString &filename, long int line) const
wxString GetErrorString(int index)
const wxString lt(_T("<"))