Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit739870b

Browse files
committed
Remove extra empty comment line generation.
1 parent230933f commit739870b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎src/parser/dbclineparser.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,12 @@ bool DbcLineParser::ParseCommentLine(Comment_t* cm, const std::string& line)
468468
cm->Text = items[1];
469469
}
470470

471+
if (cm->Text.size() >0 && cm->Text.back() =='\n')
472+
{
473+
// remove last '\n' symbol in the string end
474+
cm->Text.pop_back();
475+
}
476+
471477
ret =true;
472478
}
473479

‎test/gencode/lib/testdb.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ typedef struct
5858
uint32_tU28_TEST_1;// Bits=28
5959

6060
// This is test signal for Value Table
61-
//
6261
// 3 : "Unsupported"
6362
// 2 : "Fail"
6463
// 1 : "OK"
@@ -78,7 +77,6 @@ typedef struct
7877
uint32_tU28_TEST_1;// Bits=28
7978

8079
// This is test signal for Value Table
81-
//
8280
// 3 : "Unsupported"
8381
// 2 : "Fail"
8482
// 1 : "OK"
@@ -546,7 +544,6 @@ typedef struct
546544
#ifdefTESTDB_USE_BITS_SIGNAL
547545

548546
// This is test signal for Value Table
549-
//
550547
// 3 : "Unsupported"
551548
// 2 : "Fail"
552549
// 1 : "OK"
@@ -559,7 +556,6 @@ typedef struct
559556
#else
560557

561558
// This is test signal for Value Table
562-
//
563559
// 3 : "Unsupported"
564560
// 2 : "Fail"
565561
// 1 : "OK"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp