Clang: Fix Q_PROPERTY return type

Check for the Clang macro was not removed here.

Change-Id: I5b6c6d971e892fd02ef21935e2a8766d9f0d6d5d
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Ivan Donchevskii
2018-06-27 10:44:56 +02:00
parent 682b3079d2
commit 75470bae65

View File

@@ -106,7 +106,6 @@ static Utf8String getPropertyType(const CXSourceLocation &cxLocation,
CXTranslationUnit cxTranslationUnit,
uint propertyPosition)
{
#if defined(CINDEX_VERSION_HAS_GETFILECONTENTS_BACKPORTED) || CINDEX_VERSION_MINOR >= 47
// Extract property type from the source code
CXFile cxFile;
uint offset;
@@ -123,12 +122,6 @@ static Utf8String getPropertyType(const CXSourceLocation &cxLocation,
Utils::unequalTo(' '));
return Utf8String(typeStart, static_cast<int>(&(*typeEnd) + 1 - typeStart));
#else
Q_UNUSED(cxLocation)
Q_UNUSED(cxTranslationUnit)
Q_UNUSED(propertyPosition)
return Utf8String();
#endif
}
void FullTokenInfo::updatePropertyData()