It only introduced a difference in a .glsl file, which I've worked
around by removing an empty line. This keeps formatting consistent
between clang-format 15 and 16.
Also added a change in the 3-to-4 project converter to fix bogus
formatting in clang-format < 17.
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
Stringbase="var roman = kieliszek.";
Stringexpected="kieliszek.";
Stringgot=get_object_of_execution(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringbase="r.";
Stringexpected="r.";
Stringgot=get_object_of_execution(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringbase="mortadela(";
Stringexpected="";
Stringgot=get_object_of_execution(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringbase="var node = $world/ukraine/lviv.";
Stringexpected="$world/ukraine/lviv.";
Stringgot=get_object_of_execution(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
// get_starting_space
{
Stringbase="\t\t\t var roman = kieliszek.";
Stringexpected="\t\t\t";
Stringgot=get_starting_space(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
valid=valid&&(got==expected);
}
{
Stringbase="r.";
Stringexpected="r.";
Stringgot=get_object_of_execution(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringbase="mortadela(";
Stringexpected="";
Stringgot=get_object_of_execution(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringbase="var node = $world/ukraine/lviv.";
Stringexpected="$world/ukraine/lviv.";
Stringgot=get_object_of_execution(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
}
// get_starting_space
{
Stringbase="\t\t\t var roman = kieliszek.";
Stringexpected="\t\t\t";
Stringgot=get_starting_space(base);
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",base,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
// Parse Arguments
{
Stringline="( )";
Vector<String>got_vector=parse_arguments(line);
Stringgot="";
Stringexpected="";
for(String&part:got_vector){
got+=part+"|||";
}
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",line,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringline="(a , b , c)";
Vector<String>got_vector=parse_arguments(line);
Stringgot="";
Stringexpected="a|||b|||c|||";
for(String&part:got_vector){
got+=part+"|||";
}
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",line,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringline="(a , \"b,\" , c)";
Vector<String>got_vector=parse_arguments(line);
Stringgot="";
Stringexpected="a|||\"b,\"|||c|||";
for(String&part:got_vector){
got+=part+"|||";
}
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",line,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringline="(a , \"(,),,,,\" , c)";
Vector<String>got_vector=parse_arguments(line);
Stringgot="";
Stringexpected="a|||\"(,),,,,\"|||c|||";
for(String&part:got_vector){
got+=part+"|||";
}
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",line,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
returnvalid;
// Parse Arguments
{
Stringline="( )";
Vector<String>got_vector=parse_arguments(line);
Stringgot="";
Stringexpected="";
for(String&part:got_vector){
got+=part+"|||";
}
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",line,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringline="(a , b , c)";
Vector<String>got_vector=parse_arguments(line);
Stringgot="";
Stringexpected="a|||b|||c|||";
for(String&part:got_vector){
got+=part+"|||";
}
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",line,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringline="(a , \"b,\" , c)";
Vector<String>got_vector=parse_arguments(line);
Stringgot="";
Stringexpected="a|||\"b,\"|||c|||";
for(String&part:got_vector){
got+=part+"|||";
}
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",line,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
{
Stringline="(a , \"(,),,,,\" , c)";
Vector<String>got_vector=parse_arguments(line);
Stringgot="";
Stringexpected="a|||\"(,),,,,\"|||c|||";
for(String&part:got_vector){
got+=part+"|||";
}
if(got!=expected){
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.",line,expected,expected.size(),got,got.size()));
}
valid=valid&&(got==expected);
}
returnvalid;
}
// Validate in all arrays if names don't do cyclic renames "Node" -> "Node2D" | "Node2D" -> "2DNode"