forked from qt-creator/qt-creator
CppTools: Avoid "defineLine" in CompilerOptionsBuilder API
...because it might suggest to append a new line. Change-Id: I8d5701a1d20c9d94ee528383227a6e3b446b4ff2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
// Add custom options
|
||||
void add(const QString &option);
|
||||
void addDefine(const QByteArray &defineLine);
|
||||
void addDefine(const QByteArray &defineDirective);
|
||||
|
||||
// Add options based on project part
|
||||
virtual void addTargetTriple();
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
void undefineCppLanguageFeatureMacrosForMsvc2015();
|
||||
|
||||
protected:
|
||||
virtual bool excludeDefineLine(const QByteArray &defineLine) const;
|
||||
virtual bool excludeDefineDirective(const QByteArray &defineDirective) const;
|
||||
virtual bool excludeHeaderPath(const QString &headerPath) const;
|
||||
|
||||
virtual QString defineOption() const;
|
||||
@@ -65,7 +65,7 @@ protected:
|
||||
const ProjectPart m_projectPart;
|
||||
|
||||
private:
|
||||
QString defineLineToDefineOption(const QByteArray &defineLine);
|
||||
QString defineDirectiveToDefineOption(const QByteArray &defineDirective);
|
||||
|
||||
QStringList m_options;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user