diff options
Diffstat (limited to 'src/clang.rs')
-rw-r--r-- | src/clang.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/clang.rs b/src/clang.rs index 9c09f71c..357a6dd5 100644 --- a/src/clang.rs +++ b/src/clang.rs @@ -237,14 +237,8 @@ impl Cursor { } /// Is this Cursor pointing to a function-like macro definition? - /// Returns None if this cannot be determined with the available libclang - /// (it requires 3.9 or greater). - pub fn is_macro_function_like(&self) -> Option<bool> { - if clang_Cursor_isMacroFunctionLike::is_loaded() { - Some(unsafe { clang_Cursor_isMacroFunctionLike(self.x) != 0 }) - } else { - None - } + pub fn is_macro_function_like(&self) -> bool { + unsafe { clang_Cursor_isMacroFunctionLike(self.x) != 0 } } /// Get the kind of referent this cursor is pointing to. |