Add option to suppress emission of remarks ('-suppress-remarks')

And enforce it especially in downstream contexts such as building interfaces of SDK dependencies, where the remarks are not actionable by the user.
This commit is contained in:
Artem Chikin
2022-10-27 08:32:04 -07:00
parent 783d0c6e4b
commit c51efbed9c
10 changed files with 55 additions and 3 deletions

View File

@@ -478,7 +478,7 @@ private:
}
void
inheritOptionsForBuildingInterface(const SearchPathOptions &SearchPathOpts,
const LangOptions &LangOpts,
const LangOptions &LangOpts, bool suppressRemarks,
RequireOSSAModules_t requireOSSAModules);
bool extractSwiftInterfaceVersionAndArgs(CompilerInvocation &subInvocation,
SmallVectorImpl<const char *> &SubArgs,