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 d6a9961 commit de90f88Copy full SHA for de90f88
bindgen/codegen/helpers.rs
@@ -195,19 +195,13 @@ pub(crate) trait CppSemanticAttributeCreator {
195
) {
196
if let Some(location) = location {
197
let (file, line, col, byte_offset) = location.location();
198
+ let line = ast_ty::int_expr(line as i64);
199
+ let col = ast_ty::int_expr(col as i64);
200
+ let byte_offset = ast_ty::int_expr(byte_offset as i64);
201
let file = file.name();
202
if let Some(filename) = file {
203
self.add(quote! {
- source_file(#filename)
- });
- self.add(quote! {
204
- source_col(#col)
205
206
207
- source_line(#line)
208
209
210
- byte_offset(#byte_offset)
+ source_location(#filename, #line, #col, #byte_offset)
211
});
212
}
213
0 commit comments