Skip to content

Commit

Permalink
style: add newline at EOF to .clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
GwnDaan committed Jan 26, 2024
1 parent 0b74120 commit cd44467
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 20 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@ SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 2
UseTab: ForIndentation
InsertNewlineAtEOF: true
3 changes: 2 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.10.1
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: 16
# Some files can be excluded from the clang-format style check, like 3rd party driver files,
# as their licenses may not allow us to modify them, such as if they are LGPL licensed.
# The exclude-regex option can be used to exclude these files from the style check:
Expand Down
2 changes: 1 addition & 1 deletion examples/guidance/console_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class CustomLogger : public isobus::CANStackLogger
}
};

static CustomLogger logger;
static CustomLogger logger;
2 changes: 1 addition & 1 deletion examples/virtual_terminal/aux_functions/console_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class CustomLogger : public isobus::CANStackLogger
}
};

static CustomLogger logger;
static CustomLogger logger;
2 changes: 1 addition & 1 deletion examples/virtual_terminal/aux_inputs/console_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class CustomLogger : public isobus::CANStackLogger
}
};

static CustomLogger logger;
static CustomLogger logger;
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ class CustomLogger : public isobus::CANStackLogger
}
};

static CustomLogger logger;
static CustomLogger logger;
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class CustomLogger : public isobus::CANStackLogger
}
};

static CustomLogger logger;
static CustomLogger logger;
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
#include "isobus/hardware_integration/sys_tec_windows_plugin.hpp"
#endif

#endif // AVAILABLE_CAN_DRIVERS_HPP
#endif // AVAILABLE_CAN_DRIVERS_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ namespace isobus
int fileDescriptor; ///< File descriptor for the socket
};
}
#endif // SOCKET_CAN_INTERFACE_HPP
#endif // SOCKET_CAN_INTERFACE_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ namespace isobus
std::vector<std::uint8_t> rxBuffer; ///< The buffer to store the response in
};
}
#endif // SPI_TRANSACTION_FRAME_HPP
#endif // SPI_TRANSACTION_FRAME_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ namespace isobus
std::atomic_bool running; ///< If `true`, the driver is running
};
}
#endif // VIRTUAL_CAN_PLUGIN_HPP
#endif // VIRTUAL_CAN_PLUGIN_HPP
2 changes: 1 addition & 1 deletion hardware_integration/src/can_hardware_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,4 +410,4 @@ namespace isobus
}
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,4 @@ namespace isobus
}
return retVal;
}
} // namespace isobus
} // namespace isobus
2 changes: 1 addition & 1 deletion hardware_integration/src/spi_transaction_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ namespace isobus
{
return read;
}
}
}
2 changes: 1 addition & 1 deletion isobus/include/isobus/isobus/isobus_guidance_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,4 @@ namespace isobus
};
} // namespace isobus

#endif // ISOBUS_GUIDANCE_HPP
#endif // ISOBUS_GUIDANCE_HPP
2 changes: 1 addition & 1 deletion isobus/src/can_NAME_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ namespace isobus
return retVal;
}

} // namespace isobus
} // namespace isobus
2 changes: 1 addition & 1 deletion test/can_name_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ TEST(CAN_NAME_TESTS, FilterMatches)
NAMEFilter filterArbitraryAddressCapable(NAME::NAMEParameters::ArbitraryAddressCapable, true);
TestDeviceNAME.set_arbitrary_address_capable(true);
EXPECT_TRUE(filterArbitraryAddressCapable.check_name_matches_filter(TestDeviceNAME));
}
}
2 changes: 1 addition & 1 deletion test/event_dispatcher_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ TEST(EVENT_DISPATCHER_TESTS, CallEvent)

dispatcher.call(lvalue);
ASSERT_EQ(count, 2);
}
}
2 changes: 1 addition & 1 deletion test/helpers/messaging_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ namespace test_helpers
});
}

} // namespace test_helpers
} // namespace test_helpers
2 changes: 1 addition & 1 deletion test/identifier_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ TEST(IDENTIFIER_TESTS, RawIdentifierConstuction)
EXPECT_EQ(0xEF00, testID.get_parameter_group_number());
EXPECT_EQ(0x1C, testID.get_destination_address());
EXPECT_EQ(0x80, testID.get_source_address());
}
}
2 changes: 1 addition & 1 deletion test/transport_protocol_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2138,4 +2138,4 @@ TEST(TRANSPORT_PROTOCOL_TESTS, DestinationSpecificOverwriteSession)

// After the transmission is finished, the sessions should be removed as indication that connection is closed
ASSERT_FALSE(manager.has_session(originator, receiver));
}
}

0 comments on commit cd44467

Please sign in to comment.