Build failed

Alexander Zhigalin alexander at zhigalin.tk
Sat Sep 23 09:36:10 UTC 2017


Ah, ok, thanks.
Which is the correct version for CINDEX_VERSION_MINOR in this case?

23.09.2017, 03:03, "Francis Herne" <mail at flherne.uk>:
> On Friday, 22 September 2017 10:56:46 BST Alexander Zhigalin wrote:
>>  Hi
>>
>>  My build from last master is failing with the following errors:
>>  In file included from
>>  /kdevelop/plugins/clang/codecompletion/completionhelper.cpp:24:0:
>>  /kdevelop/plugins/clang/codecompletion/../duchain/cursorkindtraits.h: In
>>  function ‘constexpr KDevelop::IntegralType::CommonIntegralTypes
>>  CursorKindTraits::integralType(CXTypeKind)’:
>>  /kdevelop/plugins/clang/codecompletion/../duchain/cursorkindtraits.h:215:15
>>  : error: ‘CXType_Float128’ was not declared in this scope ||TK ==
>>  CXType_Float128) ? IntegralType::TypeDouble
>>                 ^
>>  /kdevelop/plugins/clang/codecompletion/../duchain/cursorkindtraits.h:229:1:
>>  error: body of constexpr function ‘constexpr
>>  KDevelop::IntegralType::CommonIntegralTypes
>>  CursorKindTraits::integralType(CXTypeKind)’ not a return-stateme nt
>>
>>  Someone have an idea about it?
>
> This patch https://cgit.kde.org/kdevelop.git/commit/?
> id=12a10c601984137f5605f6c65c1d58f9a1c89ba9
>
> only compiles with rather new libclang. It needs some
> `#if CINDEX_VERSION_MINOR >= n` checks as seen for other CXType values,
> because older LLVM doesn't have that value defined.

-- 
Alexander Zhigalin - DevOps
Email: alexander at zhigalin.tk
Cell: +39 380 593 0050


More information about the KDevelop-devel mailing list