Skip to content

Commit e47ab87

Browse files
committed
Rename joined -> spelled
1 parent fc9e168 commit e47ab87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ir/var.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,19 @@ fn handle_function_macro(
148148
Some([first, second])
149149
if first.is_abutting(&second) && second.spelling() == b"(" =>
150150
{
151-
let mut joined =
151+
let mut spelled =
152152
tokens.into_iter().map(clang::ClangToken::spelling);
153-
let boundary = joined
153+
let boundary = spelled
154154
.clone() // clone the iterator to avoid consuming elements
155155
.position(|s| s == b")")
156156
.unwrap_or(joined.len());
157157

158158
// Add 1, to convert index to length.
159-
let left = joined.by_ref().take(boundary + 1);
159+
let left = spelled.by_ref().take(boundary + 1);
160160
let left = left.collect::<Vec<_>>().concat();
161161
let left =
162162
String::from_utf8(left).map_err(|_| ParseError::Continue)?;
163-
let right = joined;
163+
let right = spelled;
164164
// Drop last token with LLVM < 4.0, due to an LLVM bug.
165165
//
166166
// See:

0 commit comments

Comments
 (0)