chore: tweak format

This commit is contained in:
anjingyu 2025-07-15 09:32:48 +08:00
parent 07a4e3acad
commit 04db35effb
1 changed files with 7 additions and 2 deletions

View File

@ -73,6 +73,11 @@ public:
{
ad::dbcc::helper::NameSignalVector sigs;
std::stringstream ss;
// Headers
ss << "#include <stdint.h> /**< uint8_t uint16_t */\n"
<< "#include <stddef.h> /**< size_t */\n" << std::endl;
ss << kCPackAndUnpackMacros << std::endl;
for (auto &msg : config_["feedback"].GetObject())
@ -337,7 +342,7 @@ std::string GenHelper::GenMessageUnpackDef(const ad::dbcc::Message &msg, const a
{
if (need_new_line)
{
ss << std::endl << std::endl;
ss << std::endl;
}
ad::dbcc::helper::SignalHelper sig_helper(sig.second);
@ -392,7 +397,7 @@ std::string GenHelper::GenMessagePackDef(const ad::dbcc::Message &msg, const ad:
{
if (need_new_line)
{
ss << std::endl << std::endl;
ss << std::endl;
}
ad::dbcc::helper::SignalHelper sig_helper(sig.second);