diff --git a/src/source_clang.cc b/src/source_clang.cc index b892f81..81c5357 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -1439,10 +1439,12 @@ Source::ClangViewRefactor::ClangViewRefactor(const boost::filesystem::path &file if(clang_CXXMethod_isConst(cursor.cx_cursor)) specifier+=" const"; - + +#if CINDEX_VERSION_MAJOR>0 || (CINDEX_VERSION_MAJOR==0 && CINDEX_VERSION_MINOR>=43) auto exception_specification_kind=static_cast(clang_getCursorExceptionSpecificationType(cursor.cx_cursor)); if(exception_specification_kind==CXCursor_ExceptionSpecificationKind_BasicNoexcept) specifier+=" noexcept"; +#endif } auto name=cursor.get_spelling();