Skip to content

Commit

Permalink
Fix cpplint warnings
Browse files Browse the repository at this point in the history
Closes #865
  • Loading branch information
vanillajonathan committed Apr 15, 2024
1 parent e211464 commit b197547
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/bindgen/language_backend/clike.rs
Expand Up @@ -101,13 +101,13 @@ impl<'a> CLikeLanguageBackend<'a> {
if open {
write!(out, "namespace {} {{", namespace)
} else {
write!(out, "}} // namespace {}", namespace)
write!(out, "}} // namespace {}", namespace)
}
}

out.new_line();
if self.config.cpp_compatible_c() {
out.write("#endif // __cplusplus");
out.write("#endif // __cplusplus");
out.new_line();
}
}
Expand Down Expand Up @@ -457,9 +457,9 @@ impl LanguageBackend for CLikeLanguageBackend<'_> {
if let Some(f) = self.config.include_guard() {
out.new_line_if_not_start();
if self.config.language == Language::C {
write!(out, "#endif /* {} */", f);
write!(out, "#endif /* {} */", f);
} else {
write!(out, "#endif // {}", f);
write!(out, "#endif // {}", f);
}
out.new_line();
}
Expand Down Expand Up @@ -984,12 +984,12 @@ impl LanguageBackend for CLikeLanguageBackend<'_> {

if b.config.language == Language::Cxx || b.config.cpp_compatible_c() {
out.new_line();
out.write("} // extern \"C\"");
out.write("} // extern \"C\"");
out.new_line();
}

if b.config.cpp_compatible_c() {
out.write("#endif // __cplusplus");
out.write("#endif // __cplusplus");
out.new_line();
}
}
Expand Down

0 comments on commit b197547

Please sign in to comment.