Regarding patch 0001:
There are utility methods in util.py which make writing those tests
somewhat more convenient:
tu = get_tu(annotationInput)
annotated_foo = get_cursor(tu, 'foo')

Also, the surrounding style seems to use kSomething for file level
string constants, so I'd use that for the test, too. In general, I'd
make it look like the tests in test_cursor.py already do.

Cheers,
/Manuel

On Wed, May 2, 2012 at 10:49 AM, Anders Waldenborg <[email protected]> wrote:
> 5 patches attached, 4 first is mostly trivial stuff.
>
>
> * [python] Add testcase for annotation cursor kind
>
>  Old testcase I had laying around.
>
> * [python] Fix warning in testcase
>
>  Trivial fix for a warning in the c-code in testcase
>
> * [python] Run tests for c++ with std=c++11
>
>  Makes c++ python testcases compile with -std=c++11,
>  which is needed by...
>
> * [python] Add testcase for enum with specified underlaying type
>
>  Adds a more interesting enum_type testcase which
>  has a different type.
>
> * [python] Add Cursor.enum_value wrapping clang_getEnumConstantDeclValue
>
>  This is the main patch. It adds a new "enum_value" property to the
>  Cursor type, allowing to get the value of enum constants
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to