Skip to content

Commit

Permalink
Fix clang version detection regexes (#2549)
Browse files Browse the repository at this point in the history
  • Loading branch information
chausner authored May 24, 2022
1 parent fda9640 commit 5c1fc3f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/drivers/cmakeDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,28 +1017,29 @@ export abstract class CMakeDriver implements vscode.Disposable {
captureGroup: 1
},
// clang -v: clang version 10.0.0-4ubuntu1
// or clang version 5.0.0 (tags/RELEASE_500/final)
{
name: "clang",
versionSwitch: "-v",
versionOutputRegexp: "(Apple LLVM|clang) version (.*)- ",
versionOutputRegexp: "(Apple LLVM|clang) version ([^\\s-]+)",
captureGroup: 2
},
{
name: "clang-cl",
versionSwitch: "-v",
versionOutputRegexp: "(Apple LLVM|clang) version (.*)- ",
versionOutputRegexp: "(Apple LLVM|clang) version ([^\\s-]+)",
captureGroup: 2
},
{
name: "clang++",
versionSwitch: "-v",
versionOutputRegexp: "(Apple LLVM|clang) version (.*)- ",
versionOutputRegexp: "(Apple LLVM|clang) version ([^\\s-]+)",
captureGroup: 2
},
{
name: "armclang",
versionSwitch: "-v",
versionOutputRegexp: "(Apple LLVM|clang) version (.*)- ",
versionOutputRegexp: "(Apple LLVM|clang) version ([^\\s-]+)",
captureGroup: 2
},
{
Expand Down

0 comments on commit 5c1fc3f

Please sign in to comment.