Introduce the 'TLS Kind' property of variable declarations through
libclang. Additionally, provide a Python accessor for it, and test that
functionality.
Details
Diff Detail
Event Timeline
bindings/python/tests/cindex/test_tls_kind.py | ||
---|---|---|
15 | I will add a test case for static TLS. __declspec(thread) is not implemented as a TLS kind on a cursor; instead it is implemented as a child attribute of the cursor. Would you like me to add a test case for that here? | |
tools/libclang/CIndex.cpp | ||
7426 | I will fix this, thank you for the feedback. |
bindings/python/tests/cindex/test_tls_kind.py | ||
---|---|---|
15 | Please ignore the above comment regarding __declspec(thread), it does indeed add a static TLS kind to the cursor. |
Add test cases for __declspec(thread) and static TLS. Clean up formatting to adhere to the project style.
bindings/python/tests/cindex/test_tls_kind.py | ||
---|---|---|
33 | Would be nicer to use x86_64-unknown-windows-msvc as the target. |
include/clang-c/Index.h | ||
---|---|---|
2840 | I was wondering what "TLS" is and had to look it up. If not adapting the function and enum name, then maybe at least write it out once in the documentation. |
Can we add a test case for static TLS as well please? Also, I think that we should add a test case for __declspec(thread).