[scanner] Adopt new Clang API for build arguments (#68503)

This commit is contained in:
Jan Svoboda
2023-10-06 20:31:05 +02:00
committed by GitHub
parent a7e26b7279
commit 8b6e58ac15
4 changed files with 25 additions and 25 deletions

View File

@@ -381,11 +381,11 @@ bool ide::initInvocationByClangArguments(ArrayRef<const char *> ArgList,
CCArgs.push_back(Entry);
}
if (!ClangInvok->getLangOpts()->isCompilingModule()) {
if (!ClangInvok->getLangOpts().isCompilingModule()) {
CCArgs.push_back("-Xclang");
llvm::SmallString<64> Str;
Str += "-fmodule-name=";
Str += ClangInvok->getLangOpts()->CurrentModule;
Str += ClangInvok->getLangOpts().CurrentModule;
CCArgs.push_back(std::string(Str.str()));
}