summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/compileroptionsbuilder.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2016-10-17 11:51:13 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2016-10-18 15:07:15 +0000
commitdf581265c3ff379389fa2000c11c1d9a39f680fa (patch)
treee6448098d0fe7c5bb28020c042d072b544ec936f /src/plugins/cpptools/compileroptionsbuilder.h
parent57ac8d96c76b322c1b28c0cd4ed1d13e7b6056d2 (diff)
downloadqt-creator-df581265c3ff379389fa2000c11c1d9a39f680fa.tar.gz
Clang*: Workaround parsing mingw's <type_traits> with clang 3.9
...for -std=gnu++0x. Define the unknown identifier/type "__float128" so at least the headers can be parsed successfully. Of course this does not help for parsing client code referencing that identifier, but this should be the less common case. Task-number: QTCREATORBUG-17126 Change-Id: Id321311713029d8aa77e068b02361d86debfada6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cpptools/compileroptionsbuilder.h')
-rw-r--r--src/plugins/cpptools/compileroptionsbuilder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/compileroptionsbuilder.h b/src/plugins/cpptools/compileroptionsbuilder.h
index 4cae4bb353..ced3c0af1b 100644
--- a/src/plugins/cpptools/compileroptionsbuilder.h
+++ b/src/plugins/cpptools/compileroptionsbuilder.h
@@ -58,6 +58,8 @@ public:
void addMsvcCompatibilityVersion();
void undefineCppLanguageFeatureMacrosForMsvc2015();
+ void addDefineFloat128ForMingw();
+
protected:
virtual bool excludeDefineDirective(const QByteArray &defineDirective) const;
virtual bool excludeHeaderPath(const QString &headerPath) const;