Skip to content

Commit 14a386d

Browse files
Review changes
1 parent a574afb commit 14a386d

11 files changed

+41
-2
lines changed

Src/runcpp2/ConfigParsing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#include "runcpp2/ConfigParsing.hpp"
2-
3-
//#include "ryml_std.hpp"
42
#include "runcpp2/ParseUtil.hpp"
53
#include "ryml.hpp"
64
#include "c4/std/string.hpp"
@@ -20,6 +18,7 @@ namespace
2018
std::vector<runcpp2::Data::CompilerProfile>& outProfiles,
2119
std::string& outPreferredProfile)
2220
{
21+
//TODO: Use callback once ryml noexcept are dropped
2322
#if 0
2423
ryml::Callbacks cb;
2524
auto errorCallback = [](const char* msg,
@@ -181,6 +180,7 @@ bool runcpp2::ParseScriptInfo( const std::string& scriptInfo,
181180
if(scriptInfo.empty())
182181
return true;
183182

183+
//TODO: Use callback once ryml noexcept are dropped
184184
#if 0
185185
ryml::Callbacks cb;
186186
auto errorCallback = [](const char* msg,

Src/runcpp2/Data/CompilerInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
bool runcpp2::Data::CompilerInfo::ParseYAML_Node(ryml::ConstNodeRef& profileNode)
77
{
8+
INTERNAL_RUNCPP2_SAFE_START();
9+
810
std::vector<NodeRequirement> requirements =
911
{
1012
NodeRequirement("Executable", ryml::NodeType_e::KEYVAL, true, false),
@@ -42,6 +44,8 @@ bool runcpp2::Data::CompilerInfo::ParseYAML_Node(ryml::ConstNodeRef& profileNode
4244
compileArgsNode["InputPart"] >> CompileArgs.InputPart;
4345
compileArgsNode["OutputPart"] >> CompileArgs.OutputPart;
4446
return true;
47+
48+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
4549
}
4650

4751
std::string runcpp2::Data::CompilerInfo::ToString(std::string indentation) const

Src/runcpp2/Data/CompilerProfile.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
bool runcpp2::Data::CompilerProfile::ParseYAML_Node(ryml::ConstNodeRef& profileNode)
77
{
8+
INTERNAL_RUNCPP2_SAFE_START();
9+
810
std::vector<NodeRequirement> requirements =
911
{
1012
NodeRequirement("Name", ryml::NodeType_e::KEYVAL, true, false),
@@ -103,6 +105,8 @@ bool runcpp2::Data::CompilerProfile::ParseYAML_Node(ryml::ConstNodeRef& profileN
103105
}
104106

105107
return true;
108+
109+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
106110
}
107111

108112
std::string runcpp2::Data::CompilerProfile::ToString(std::string indentation) const

Src/runcpp2/Data/DependencyInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
bool runcpp2::Data::DependencyInfo::ParseYAML_Node(ryml::ConstNodeRef& node)
77
{
8+
INTERNAL_RUNCPP2_SAFE_START();
9+
810
std::vector<NodeRequirement> requirements =
911
{
1012
NodeRequirement("Name", ryml::NodeType_e::KEYVAL, true, false),
@@ -98,6 +100,8 @@ bool runcpp2::Data::DependencyInfo::ParseYAML_Node(ryml::ConstNodeRef& node)
98100
}
99101

100102
return true;
103+
104+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
101105
}
102106

103107
std::string runcpp2::Data::DependencyInfo::ToString(std::string indentation) const

Src/runcpp2/Data/DependencyLinkProperty.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
bool runcpp2::Data::DependencyLinkProperty::ParseYAML_Node(ryml::ConstNodeRef& node)
77
{
8+
INTERNAL_RUNCPP2_SAFE_START();
9+
810
if(!node.is_map())
911
{
1012
ssLOG_ERROR("DependencySearchProperty: Node is not a Map");
@@ -57,6 +59,8 @@ bool runcpp2::Data::DependencyLinkProperty::ParseYAML_Node(ryml::ConstNodeRef& n
5759
}
5860

5961
return true;
62+
63+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
6064
}
6165

6266
std::string runcpp2::Data::DependencyLinkProperty::ToString(std::string indentation) const

Src/runcpp2/Data/DependencySetup.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
bool runcpp2::Data::DependencySetup::ParseYAML_Node(ryml::ConstNodeRef& node)
77
{
8+
INTERNAL_RUNCPP2_SAFE_START();
9+
810
if(!node.is_map())
911
{
1012
ssLOG_ERROR("DependencySetup: Node is not a Map");
@@ -25,6 +27,8 @@ bool runcpp2::Data::DependencySetup::ParseYAML_Node(ryml::ConstNodeRef& node)
2527
}
2628

2729
return true;
30+
31+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
2832
}
2933

3034
std::string runcpp2::Data::DependencySetup::ToString(std::string indentation) const

Src/runcpp2/Data/DependencySource.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
bool runcpp2::Data::DependencySource::ParseYAML_Node(ryml::ConstNodeRef& node)
77
{
8+
INTERNAL_RUNCPP2_SAFE_START();
9+
810
std::vector<NodeRequirement> requirements =
911
{
1012
NodeRequirement("Type", ryml::NodeType_e::KEYVAL, true, false),
@@ -31,6 +33,8 @@ bool runcpp2::Data::DependencySource::ParseYAML_Node(ryml::ConstNodeRef& node)
3133

3234
node["Value"] >> Value;
3335
return true;
36+
37+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
3438
}
3539

3640
std::string runcpp2::Data::DependencySource::ToString(std::string indentation) const

Src/runcpp2/Data/FlagsOverrideInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
bool runcpp2::Data::FlagsOverrideInfo::ParseYAML_Node(ryml::ConstNodeRef& node)
77
{
8+
INTERNAL_RUNCPP2_SAFE_START();
9+
810
std::vector<NodeRequirement> requirements =
911
{
1012
NodeRequirement("Remove", ryml::NodeType_e::KEYVAL, false, true),
@@ -24,6 +26,8 @@ bool runcpp2::Data::FlagsOverrideInfo::ParseYAML_Node(ryml::ConstNodeRef& node)
2426
node["Append"] >> Append;
2527

2628
return true;
29+
30+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
2731
}
2832

2933
std::string runcpp2::Data::FlagsOverrideInfo::ToString(std::string indentation) const

Src/runcpp2/Data/LinkerInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
bool runcpp2::Data::LinkerInfo::ParseYAML_Node(ryml::ConstNodeRef& node)
88
{
9+
INTERNAL_RUNCPP2_SAFE_START();
10+
911
std::vector<NodeRequirement> requirements =
1012
{
1113
NodeRequirement("Executable", ryml::NodeType_e::KEYVAL, true, false),
@@ -40,6 +42,8 @@ bool runcpp2::Data::LinkerInfo::ParseYAML_Node(ryml::ConstNodeRef& node)
4042
linkerArgsNode["DependenciesPart"] >> LinkerArgs.DependenciesPart;
4143

4244
return true;
45+
46+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
4347
}
4448

4549
std::string runcpp2::Data::LinkerInfo::ToString(std::string indentation) const

Src/runcpp2/Data/ScriptInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
bool runcpp2::Data::ScriptInfo::ParseYAML_Node(ryml::ConstNodeRef& node)
77
{
8+
INTERNAL_RUNCPP2_SAFE_START();
9+
810
std::vector<NodeRequirement> requirements =
911
{
1012
NodeRequirement("Language", ryml::NodeType_e::KEYVAL, false, true),
@@ -95,6 +97,8 @@ bool runcpp2::Data::ScriptInfo::ParseYAML_Node(ryml::ConstNodeRef& node)
9597
}
9698

9799
return true;
100+
101+
INTERNAL_RUNCPP2_SAFE_CATCH_RETURN(false);
98102
}
99103

100104
std::string runcpp2::Data::ScriptInfo::ToString(std::string indentation) const

0 commit comments

Comments
 (0)