unexposed AST elements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97985
91177308-0d34-0410-b5e6-
96231b3b80d8
*/
CINDEX_LINKAGE unsigned clang_isTranslationUnit(enum CXCursorKind);
+/***
+ * \brief Determine whether the given cursor represents a currently
+ * unexposed piece of the AST (e.g., CXCursor_UnexposedStmt).
+ */
+CINDEX_LINKAGE unsigned clang_isUnexposed(enum CXCursorKind);
+
/**
* \brief Describe the linkage of the entity referred to by a cursor.
*/
return K == CXCursor_TranslationUnit;
}
+unsigned clang_isUnexposed(enum CXCursorKind K) {
+ switch (K) {
+ case CXCursor_UnexposedDecl:
+ case CXCursor_UnexposedExpr:
+ case CXCursor_UnexposedStmt:
+ case CXCursor_UnexposedAttr:
+ return true;
+ default:
+ return false;
+ }
+}
+
CXCursorKind clang_getCursorKind(CXCursor C) {
return C.kind;
}
_clang_isReference
_clang_isStatement
_clang_isTranslationUnit
+_clang_isUnexposed
_clang_setUseExternalASTGeneration
_clang_tokenize
_clang_visitChildren