We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c462892 commit ec6cb2cCopy full SHA for ec6cb2c
src/clang.rs
@@ -239,6 +239,17 @@ impl Cursor {
239
}
240
241
242
+ /// Is this Cursor pointing to a function-like macro definition?
243
+ /// Returns None if this cannot be determined with the available libclang
244
+ /// (it requires 3.9 or greater).
245
+ pub fn is_macro_function_like(&self) -> Option<bool> {
246
+ if clang_Cursor_isMacroFunctionLike::is_loaded() {
247
+ Some(unsafe { clang_Cursor_isMacroFunctionLike(self.x) != 0 })
248
+ } else {
249
+ None
250
+ }
251
252
+
253
/// Get the kind of referent this cursor is pointing to.
254
pub fn kind(&self) -> CXCursorKind {
255
self.x.kind
0 commit comments