Bindings: Add support for scoped enums

Authored by bruns on Aug 17 2018, 3:30 AM.

Description

Bindings: Add support for scoped enums

Summary:
Keep the enum intact by emitting the class keyword in case the enum is
scoped.
Use the complete enum scope for parameter values, the enclosing scope is
only correct to use for unscoped enums.
The python Cursor.is_scoped_enum() method has been added with LLVM/Clang
version 5.0.

BUG: 397154

Test Plan: build kcoreaddons

Reviewers: Frameworks, mpyne

Reviewed By: mpyne

Subscribers: mpyne, kde-frameworks-devel, kde-buildsystem

Tags: Frameworks, Build System

Differential Revision: https://phabricator.kde.org/D14908

Details

Committed
brunsAug 25 2018, 2:14 AM
Reviewer
mpyne
Differential Revision
D14908: Bindings: Add support for scoped enums
Parents
R240:4b59c7708362: Bindings: Check for libclang without version suffix also
Branches
Unknown
Tags
Unknown