Added function clang_getStorageClass(CXCursor) to be able to retrieve the storage class of function decls and variable decls.
Also added the corresponding interface to cindex.py.
Paths
| Differential D5538
Added function to retrieve storage class in libclang. ClosedPublic Authored by RedX2501 on Sep 30 2014, 4:56 AM.
Details
Summary Added function clang_getStorageClass(CXCursor) to be able to retrieve the storage class of function decls and variable decls. Also added the corresponding interface to cindex.py.
Diff Detail Event TimelineRedX2501 updated this object. Comment Actions Hi, sorry for the delay! + /** This doesn't need a new cursor kind, and I don't see this kind getting set for a cursor in your patch. +CINDEX_LINKAGE enum CX_StorageClass clang_getStorageClass(CXCursor); I suggest renaming to clang_Cursor_getStorageClass Some style issues the make the code inconsistent with the rest of the codebase: + Decl const * D = getCursorDecl(C); + if(D){ + }else{ + switch(sc){ Comment Actions Mady stylistic changes as recommended by Argyrios Kyrtzidis. Comment Actions Please also correct style in all places in clang_Cursor_getStorageClass, specifically
This revision is now accepted and ready to land.Aug 10 2015, 1:11 AM
Revision Contents
Diff 14279 bindings/python/clang/cindex.py
include/clang-c/Index.h
tools/libclang/CIndex.cpp
tools/libclang/libclang.exports
|