diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-07-07 15:37:10 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-07-14 17:44:17 +0300 |
commit | 7332cf28ff5964d8ad1d391ff28bf7393946dd1b (patch) | |
tree | e94fa6e589a7416825f57608e10a01b2b2a45038 /plugins/clangstaticanalyzer/clangstaticanalyzerruncontrol.cpp | |
parent | 7bdf007c8641c01a5c7bbbe2195f22df490ed936 (diff) | |
download | qt-creator-7332cf28ff5964d8ad1d391ff28bf7393946dd1b.tar.gz |
Adapt to rename of ProjectExplorer constants
QtC change: https://codereview.qt-project.org/#/c/120930/
Change-Id: I5af573d58f13dfc50e9dd003cb652d785e8c8347
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'plugins/clangstaticanalyzer/clangstaticanalyzerruncontrol.cpp')
-rw-r--r-- | plugins/clangstaticanalyzer/clangstaticanalyzerruncontrol.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/clangstaticanalyzer/clangstaticanalyzerruncontrol.cpp b/plugins/clangstaticanalyzer/clangstaticanalyzerruncontrol.cpp index 6403e5f1c8..20ac43d393 100644 --- a/plugins/clangstaticanalyzer/clangstaticanalyzerruncontrol.cpp +++ b/plugins/clangstaticanalyzer/clangstaticanalyzerruncontrol.cpp @@ -144,14 +144,14 @@ public: // will break if code actually requires stuff from there, but that should be the less common // case. const Core::Id type = projectPart->toolchainType; - if (type == ProjectExplorer::Constants::MINGW_TOOLCHAIN_ID - || type == ProjectExplorer::Constants::GCC_TOOLCHAIN_ID) + if (type == ProjectExplorer::Constants::MINGW_TOOLCHAIN_TYPEID + || type == ProjectExplorer::Constants::GCC_TOOLCHAIN_TYPEID) optionsBuilder.addDefine("#define _X86INTRIN_H_INCLUDED\n"); optionsBuilder.addToolchainAndProjectDefines(); optionsBuilder.addHeaderPathOptions(); - if (type == ProjectExplorer::Constants::MSVC_TOOLCHAIN_ID) + if (type == ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID) optionsBuilder.add(QLatin1String("/EHsc")); // clang-cl does not understand exceptions else optionsBuilder.add(QLatin1String("-fPIC")); // TODO: Remove? @@ -164,7 +164,7 @@ public: private: ClangStaticAnalyzerOptionsBuilder(const CppTools::ProjectPart::Ptr &projectPart) : CompilerOptionsBuilder(projectPart) - , m_isMsvcToolchain(m_projectPart->toolchainType == ProjectExplorer::Constants::MSVC_TOOLCHAIN_ID) + , m_isMsvcToolchain(m_projectPart->toolchainType == ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID) { } |