Skip to content

Commit

Permalink
Fixed: CodeLite does not detect errors in the build
Browse files Browse the repository at this point in the history
    fixes: #3574

Signed-off-by: Eran Ifrah <[email protected]>
  • Loading branch information
eranif committed Jan 23, 2025
1 parent 5e1d449 commit e946f7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Plugin/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,12 @@ Compiler::Compiler(wxXmlNode* node, Compiler::eRegexType regexType)

if (regexType == kRegexGNU) {
AddPattern(kSevError, "undefined reference to", -1, -1, -1);
AddPattern(kSevError, "^(.+?):(\\d+):(\\d+)?(?:\\{\\d:-\\}+)?(?:.*) (error): (.*)$", 1, 2, 3);
AddPattern(kSevError, "^(?:.*referenced by .+?:\\d+ )\\((.+?):(\\d+)\\).*$", 1, 2, -1);
AddPattern(kSevError, R"#(^(.+?):(\d+):(\d+)?(?:\{\d:-\}+)?(?:.*) (error): (.*)$)#", 1, 2, 3);
AddPattern(kSevError, R"#(^(?:.*referenced by .+?:\d+ )\((.+?):(\d+)\).*$)#", 1, 2, -1);
AddPattern(kSevError, R"#(make(.*?)(\*\*\*))#", -1, -1, -1);

AddPattern(kSevWarning, "^(.+?):(\\d+):(\\d+)?(?:\\{\\d:-\\}+)?(?:.*) (note|warning): (.*)$", 1, 2, 3);
AddPattern(kSevWarning, "^(?:In file included from *)(.+?):(\\d+):.*$", 1, 2, -1);
AddPattern(kSevWarning, R"#(^(.+?):(\d+):(\d+)?(?:\{\d:-\}+)?(?:.*) (note|warning): (.*)$)#", 1, 2, 3);
AddPattern(kSevWarning, R"#(^(?:In file included from *)(.+?):(\d+):.*$)#", 1, 2, -1);

AddDefaultGnuCompilerOptions();
AddDefaultGnuLinkerOptions();
Expand Down

0 comments on commit e946f7d

Please sign in to comment.