mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-08-30 04:15:10 +00:00
connection between 2 systems and bug fixes (#14)
This commit is contained in:
@@ -174,6 +174,9 @@ std::string CProxyGenerator::GetFuncImpl(const SFuncInfo& rsFunc, CKeywordMap& r
|
||||
else
|
||||
sstreamExceptions << R"code(sdv::XUnknownException exception;
|
||||
exception.unknown_id = except_id;
|
||||
// Cpp-Check 2.7 warns about the uninitialized variable _id. This variable is allocated as inline static const and is
|
||||
// assigned a value. Suppress the warning.
|
||||
// cppcheck-suppress uninitvar
|
||||
throw exception;)code";
|
||||
for (const std::string& rssException : rvecExceptions)
|
||||
{
|
||||
@@ -181,6 +184,9 @@ std::string CProxyGenerator::GetFuncImpl(const SFuncInfo& rsFunc, CKeywordMap& r
|
||||
{
|
||||
)code" << rssException << R"code( exception;
|
||||
desOutput >> exception;
|
||||
// Cpp-Check 2.7 warns about the uninitialized variable _id. This variable is allocated as inline static const and is
|
||||
// assigned a value. Suppress the warning.
|
||||
// cppcheck-suppress uninitvar
|
||||
throw exception;
|
||||
}
|
||||
)code";
|
||||
@@ -190,6 +196,9 @@ std::string CProxyGenerator::GetFuncImpl(const SFuncInfo& rsFunc, CKeywordMap& r
|
||||
{
|
||||
sdv::XUnknownException exception;
|
||||
exception.unknown_id = except_id;
|
||||
// Cpp-Check 2.7 warns about the uninitialized variable _id. This variable is allocated as inline static const and is
|
||||
// assigned a value. Suppress the warning.
|
||||
// cppcheck-suppress uninitvar
|
||||
throw exception;
|
||||
}
|
||||
})code";
|
||||
|
||||
@@ -41,7 +41,7 @@ extern "C" int main(int iArgc, const char* rgszArgv[])
|
||||
CProcessWatchdog watchdog;
|
||||
|
||||
std::cout << "SDV IDL Compiler" << std::endl;
|
||||
std::cout << "Copyright (C): 2022-2025 ZF Friedrichshafen AG" << std::endl;
|
||||
std::cout << "Copyright (C): 2022-2026 ZF Friedrichshafen AG" << std::endl;
|
||||
std::cout << "Author: Erik Verhoeven" << std::endl;
|
||||
|
||||
// Create a list of UTF-8 arguments
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "token.h"
|
||||
#include <fstream>
|
||||
#include <filesystem>
|
||||
#include <clocale>
|
||||
#include <locale>
|
||||
#include <codecvt>
|
||||
#include <cuchar>
|
||||
@@ -71,7 +72,7 @@ const std::string& CSource::GetCodeRef() const
|
||||
void CSource::ReadFile(const std::filesystem::path& rpath)
|
||||
{
|
||||
// Set the locale to work with UTF8
|
||||
std::setlocale(LC_ALL, "en_US.utf8");
|
||||
::setlocale(LC_ALL, "en_US.utf8");
|
||||
|
||||
if (rpath.empty())
|
||||
throw CCompileException("File name missing");
|
||||
|
||||
Reference in New Issue
Block a user