Skip to content

Commit

Permalink
GccOutputDetector: fix on windows
Browse files Browse the repository at this point in the history
Windows path start with drive. Which was not supported up until now.
  • Loading branch information
diegoiast committed Jan 18, 2025
1 parent e1c9a34 commit 9fc3446
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/plugins/ProjectManager/CompilerOutputDecoders.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class GeneralDetector : public OutputDetector {
virtual void processLine(const QString &line) override;
virtual QList<CompileStatus> foundStatus() override;
virtual void endOfOutput() override;

void add(OutputDetector *detector);
void remove(OutputDetector *detector);
private:
QList<OutputDetector*> detectors;

private:
QList<OutputDetector *> detectors;
};

class GccOutputDetector : public OutputDetector {
Expand All @@ -50,7 +50,8 @@ class GccOutputDetector : public OutputDetector {

private:
// GCC output pattern for errors and warnings: file:line:column: message
QRegularExpression regionPattern = QRegularExpression(R"((.+):(\d+):(\d+):\s+(.+):\s+(.+))");
QRegularExpression regionPattern =
QRegularExpression(R"(([a-zA-Z]:\\[^:]+|\S+):(\d+):(\d+):\s+(.+):\s+(.+))");

QList<CompileStatus> m_compileStatuses;
CompileStatus currentStatus = {};
Expand Down

0 comments on commit 9fc3446

Please sign in to comment.