logic: added clang flag to continue indexing, no matter how many errors have been thrown

* added clang flag to continue indexing, no matter how many errors have been thrown.
* changed parser to insert custom compile flags after the default ones set by coati so that the user can override these.
This commit is contained in:
malte_langkabel
2016-11-30 12:15:45 +01:00
parent 94ddd0d4f9
commit 57284b1d80
+4 -1
View File
@@ -108,8 +108,11 @@ std::vector<std::string> CxxParser::getCommandlineArgumentsEssential(const Argum
// The option -w disables all warnings.
args.push_back("-w");
// This option tells clang just to continue parsing no matter how manny errors have been thrown.
args.push_back("-ferror-limit=0");
args.insert(args.begin(), arguments.compilerFlags.begin(), arguments.compilerFlags.end());
args.insert(args.end(), arguments.compilerFlags.begin(), arguments.compilerFlags.end());
for (const FilePath& path : arguments.headerSearchPaths)
{