[breaking] Drop support for clang 3.9.1

This commit is contained in:
Jonathan Müller 2018-09-24 15:59:12 +02:00
commit c26d230d33
10 changed files with 11 additions and 94 deletions

View file

@ -115,12 +115,7 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_class(const detail::parse_context&
{
auto is_templated = (clang_getTemplateCursorKind(cur) != CXCursor_NoDeclFound
|| !clang_Cursor_isNull(clang_getSpecializedCursorTemplate(cur)));
#if CPPAST_CINDEX_HAS_FRIEND
auto is_friend = clang_getCursorKind(parent_cur) == CXCursor_FriendDecl;
#else
(void)parent_cur;
auto is_friend = false;
#endif
auto is_friend = clang_getCursorKind(parent_cur) == CXCursor_FriendDecl;
auto builder = make_class_builder(context, cur);
type_safe::optional<cpp_entity_ref> semantic_parent;