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.
Differential D5538
Added function to retrieve storage class in libclang. RedX2501 on Sep 30 2014, 4:56 AM. Authored by
Details
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 TimelineComment 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
|