forked from qt-creator/qt-creator
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: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
d3c606c001
commit
5713b85cb0
@@ -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>;
|
||||
#endif
|
||||
|
||||
class CPPTOOLS_EXPORT CheckSymbols:
|
||||
protected CPlusPlus::ASTVisitor,
|
||||
public QRunnable,
|
||||
|
||||
Reference in New Issue
Block a user