Closes #25
This commit is contained in:
1 parent
e555ebb571
commit
849ce31e2f
17 files changed
+675
-35
No files matched your search
@@ -19,14 +19,16 @@ enum class DbcDiagnosticCode {
|
||||
InvalidStatement,
|
||||
InvalidValueDescription,
|
||||
InvalidMultiplexing,
|
||||
UnsupportedStatement
|
||||
UnsupportedStatement,
|
||||
InvalidAttribute,
|
||||
UnsupportedAttribute
|
||||
};
|
||||
|
||||
struct DbcDiagnostic {
|
||||
DbcDiagnosticSeverity severity;
|
||||
DbcDiagnosticCode code;
|
||||
std::string filePath;
|
||||
std::size_t lineNumber; // One-based physical line; zero for file-level errors.
|
||||
std::size_t lineNumber;// One-based physical line; zero for file-level errors.
|
||||
std::string message;
|
||||
};
|
||||
|
||||
@@ -35,7 +37,7 @@ struct DbcParseResult {
|
||||
std::vector<DbcDiagnostic> diagnostics;
|
||||
|
||||
bool HasErrors() const {
|
||||
for (const DbcDiagnostic &diagnostic : diagnostics) {
|
||||
for (const DbcDiagnostic &diagnostic: diagnostics) {
|
||||
if (diagnostic.severity == DbcDiagnosticSeverity::Error)
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user