[cfe-commits] PATCH: Update the python bindings with MACRO_EXPANSION "enum"

Tobias Grosser tobias at grosser.es
Thu Jul 14 23:55:26 PDT 2011


On 07/15/2011 08:47 AM, Chandler Carruth wrote:
> It helps to attach the patch....
>
> On Thu, Jul 14, 2011 at 10:52 PM, Chandler Carruth <chandlerc at google.com
> <mailto:chandlerc at google.com>> wrote:
>
>     I know next to nothing about the python bindings or how to test
>     them, but I think this is the right patch. If someone who
>     understands how this works can confirm, I'll commit...
>
>
>
> python-cindex-expansion.patch
>
>
> diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py
> index 8cadcaa..a8d6ec6 100644
> --- a/bindings/python/clang/cindex.py
> +++ b/bindings/python/clang/cindex.py
> @@ -558,6 +558,7 @@ CursorKind.IB_OUTLET_COLLECTION_ATTR = CursorKind(403)
>   # Preprocessing
>   CursorKind.PREPROCESSING_DIRECTIVE = CursorKind(500)
>   CursorKind.MACRO_DEFINITION = CursorKind(501)
> +CursorKind.MACRO_EXPANSION = CursorKind(502)
>   CursorKind.MACRO_INSTANTIATION = CursorKind(502)

This does not seem correct to me. MACRO_EXPENSION and 
MACRO_INSTANTIATION have both the number 502.

Cheers
Tobi



More information about the cfe-commits mailing list