forked from qt-creator/qt-creator
Clang: Forward compiler options for gcc/clang
Rely on clang to do the "right thing" with them. Change-Id: I44adf2cd5c61549896da3fc9b7c35c2fb0142060 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -61,6 +61,7 @@ public:
|
||||
|
||||
void addTargetTriple();
|
||||
void addExtraCodeModelFlags();
|
||||
void addCompilerFlags();
|
||||
void insertWrappedQtHeaders();
|
||||
void addLanguageVersionAndExtensions();
|
||||
void updateFileLanguage(ProjectFile::Kind fileKind);
|
||||
@@ -80,10 +81,12 @@ public:
|
||||
void reset();
|
||||
|
||||
private:
|
||||
void evaluateCompilerFlags();
|
||||
bool excludeDefineDirective(const ProjectExplorer::Macro ¯o) const;
|
||||
QString includeDirOptionForPath(const QString &path) const;
|
||||
void addWrappedQtHeadersIncludePath(QStringList &list) const;
|
||||
QString includeDirOptionForSystemPath(ProjectExplorer::HeaderPathType type) const;
|
||||
QByteArray msvcVersion() const;
|
||||
|
||||
private:
|
||||
const ProjectPart &m_projectPart;
|
||||
@@ -96,7 +99,11 @@ private:
|
||||
const QString m_clangVersion;
|
||||
const QString m_clangResourceDirectory;
|
||||
|
||||
QByteArray msvcVersion() const;
|
||||
struct {
|
||||
bool forward = false;
|
||||
QStringList flags;
|
||||
bool isLanguageVersionSpecified = false;
|
||||
} m_compilerFlags;
|
||||
|
||||
QStringList m_options;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user