astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2017-12-26 22:12:30 +01:00
parent 84bdabacf8
commit 4a7f923fca
1 changed files with 3 additions and 6 deletions

View File

@ -229,13 +229,11 @@ void ImportProject::importCompileCommands(std::istream &istr)
if (command[pos] != '\\') {
defval += command[pos];
escape = false;
}
else {
} else {
if (escape) {
defval += '\\';
escape = false;
}
else {
} else {
escape = true;
}
}
@ -245,8 +243,7 @@ void ImportProject::importCompileCommands(std::istream &istr)
if (!defval.empty())
fs.defines += defval;
fs.defines += ';';
}
else if (F=='U')
} else if (F=='U')
fs.undefs.insert(fval);
else if (F=='I')
fs.includePaths.push_back(fval);