Commit 5713b85c authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

CppTools: Refix MSVC compilation

SemanticInfo has moved from CppEditor to CppTools and is now exported,
so this workaround is no longer needed (and it breaks linkage)

Change-Id: Ic9ba017bcb06be85fdccef27e63091415494bb21
Reviewed-by: default avatarNikolai Kosjar <>
parent d3c606c0
......@@ -42,17 +42,6 @@
namespace CppTools {
#ifdef _MSC_VER
// Short explanation: QFutureInterface is currently used as a base for an exported class
// (see CreateMarkers). Even though it's not explicitly marked to be exported VC++ will
// implicitly export it (more details on the General Rules and Limitations of dllexport/
// dllimport MSDN page). When seen here as a base of CheckSymbols the compiler tries to
// instantiate this template (since the declaration of template doesn't have any explicit
// export/import attribute) which will eventually collide with the already defined symbol.
// The line below simply tells the compiler to import the template instead of instantiating.
template class Q_DECL_IMPORT QFutureInterface<SemanticInfo::Use>;
class CPPTOOLS_EXPORT CheckSymbols:
protected CPlusPlus::ASTVisitor,
public QRunnable,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment