forked from qt-creator/qt-creator
Clang: Improve compilation database generation
Do not use CompilerOptionsBuilder anymore because we don't need much tweaking for projectPart data and can do it better specifically for the generator. Fixes: QTCREATORBUG-21936 Change-Id: I00ad872c703598a9a88af29399b428520dd5cb3b Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -172,7 +172,7 @@ void CompilerOptionsBuilder::addSyntaxOnly()
|
||||
isClStyle() ? add("/Zs") : add("-fsyntax-only");
|
||||
}
|
||||
|
||||
static QStringList createLanguageOptionGcc(ProjectFile::Kind fileKind, bool objcExt)
|
||||
QStringList createLanguageOptionGcc(ProjectFile::Kind fileKind, bool objcExt)
|
||||
{
|
||||
QStringList options;
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ enum class UseBuildSystemWarnings : char { Yes, No };
|
||||
|
||||
CPPTOOLS_EXPORT QStringList XclangArgs(const QStringList &args);
|
||||
CPPTOOLS_EXPORT QStringList clangArgsForCl(const QStringList &args);
|
||||
CPPTOOLS_EXPORT QStringList createLanguageOptionGcc(ProjectFile::Kind fileKind, bool objcExt);
|
||||
|
||||
class CPPTOOLS_EXPORT CompilerOptionsBuilder
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user