Skip to content

Commit ba3aeb0

Browse files
committed
Tweak comments slightly
1 parent f642741 commit ba3aeb0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ir/var.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fn default_macro_constant_type(value: i64) -> IntKind {
134134
/// Determines whether a set of tokens from a CXCursor_MacroDefinition
135135
/// represent a function-like macro. If so, calls the func_macro callback
136136
/// and returns `Err(ParseError::Continue)` to signal to skip further
137-
/// processing. If conversion to UTF-8 fails (it is performed only where it
137+
/// processing. If conversion to UTF-8 fails (it is performed only where it
138138
/// should be infallible), then `Err(ParseError::Continue)` is returned as well.
139139
fn handle_function_macro(
140140
cursor: &clang::Cursor,
@@ -154,9 +154,7 @@ fn handle_function_macro(
154154
// If we have libclang >= 3.9, we can use `is_macro_function_like()` and
155155
// avoid checking for abutting tokens ourselves.
156156
cursor.is_macro_function_like().unwrap_or_else(|| {
157-
// cexpr explicitly does not handle function-like macros, except for
158-
// a degenerate case in which it behaves in a non-conformant way. We
159-
// prevent cexpr from ever seeing function-like macros by checking
157+
// If we cannot get a definitive answer from clang, we instead check
160158
// for a parenthesis token immediately adjacent to (that is,
161159
// abutting) the first token in the macro definition.
162160
match tokens.get(0..2) {

0 commit comments

Comments
 (0)