forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.14'
Conflicts: src/plugins/projectexplorer/gcctoolchain.cpp Change-Id: I2136ba89d3aa3c4c2a0e7a4f9d8ba9cec32924ce
This commit is contained in:
@@ -43,9 +43,9 @@ static QByteArray overwrittenToolchainDefines(const ProjectPart &projectPart)
|
||||
// MSVC's predefined macros like __FUNCSIG__ expand to itself.
|
||||
// We can't parse this, so redefine to the empty string literal.
|
||||
if (projectPart.toolchainType == ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID) {
|
||||
defines += "#define __FUNCSIG__ \"\"\n"
|
||||
"#define __FUNCDNAME__ \"\"\n"
|
||||
"#define __FUNCTION__ \"\"\n";
|
||||
defines += "#define __FUNCSIG__ \"void __cdecl someLegalAndLongishFunctionNameThatWorksAroundQTCREATORBUG-24580(void)\"\n"
|
||||
"#define __FUNCDNAME__ \"?someLegalAndLongishFunctionNameThatWorksAroundQTCREATORBUG-24580@@YAXXZ\"\n"
|
||||
"#define __FUNCTION__ \"someLegalAndLongishFunctionNameThatWorksAroundQTCREATORBUG-24580\"\n";
|
||||
}
|
||||
|
||||
return defines;
|
||||
|
||||
@@ -356,7 +356,7 @@ void CompilerOptionsBuilder::addHeaderPathOptions()
|
||||
for (const HeaderPath &headerPath : filter.systemHeaderPaths)
|
||||
addIncludeDirOptionForPath(headerPath);
|
||||
|
||||
if (m_useTweakedHeaderPaths == UseTweakedHeaderPaths::Yes) {
|
||||
if (m_useTweakedHeaderPaths != UseTweakedHeaderPaths::No) {
|
||||
QTC_CHECK(!m_clangVersion.isEmpty()
|
||||
&& "Clang resource directory is required with UseTweakedHeaderPaths::Yes.");
|
||||
|
||||
@@ -657,9 +657,9 @@ void CompilerOptionsBuilder::undefineCppLanguageFeatureMacrosForMsvc2015()
|
||||
void CompilerOptionsBuilder::addDefineFunctionMacrosMsvc()
|
||||
{
|
||||
if (m_projectPart.toolchainType == ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID) {
|
||||
addMacros({{"__FUNCSIG__", "\"\""},
|
||||
{"__FUNCTION__", "\"\""},
|
||||
{"__FUNCDNAME__", "\"\""}});
|
||||
addMacros({{"__FUNCSIG__", "\"void __cdecl someLegalAndLongishFunctionNameThatWorksAroundQTCREATORBUG-24580(void)\""},
|
||||
{"__FUNCTION__", "\"someLegalAndLongishFunctionNameThatWorksAroundQTCREATORBUG-24580\""},
|
||||
{"__FUNCDNAME__", "\"?someLegalAndLongishFunctionNameThatWorksAroundQTCREATORBUG-24580@@YAXXZ\""}});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -108,9 +108,8 @@ bool FileIterationOrder::isValid() const
|
||||
|
||||
static int commonPrefixLength(const QString &filePath1, const QString &filePath2)
|
||||
{
|
||||
const auto mismatches = std::mismatch(filePath1.begin(),
|
||||
filePath1.end(),
|
||||
filePath2.begin());
|
||||
const auto mismatches = std::mismatch(filePath1.begin(), filePath1.end(),
|
||||
filePath2.begin(), filePath2.end());
|
||||
return mismatches.first - filePath1.begin();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user