diff --git a/src/basset.cpp b/src/basset.cpp index ae4e887..a6d13f3 100644 --- a/src/basset.cpp +++ b/src/basset.cpp @@ -307,7 +307,8 @@ int main(int argc, char *argv[]) { // signal to the child that everything is set up pipe << token{}; - Regex compiler("g(cc|\\+\\+)"); + Regex compiler( + R"REGEX(([^-]+-)*(c(c|\+\+)|(g(cc|\+\+)|clang(\+\+)?)(-[0-9]+(\.[0-9]+){0,2})?)$)REGEX"); CompilationDatabase cdb(output);