Reformat code with clang format

This commit is contained in:
Clang Format
2023-11-19 15:28:38 +01:00
committed by Jan
parent 22e17272fd
commit 6b4f5d94a8
1099 changed files with 16763 additions and 18076 deletions

View File

@ -1,24 +1,16 @@
#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include "Parsing/Impl/IncludingStreamProxy.h"
#include "Parsing/Mock/MockParserLineStream.h"
#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
namespace test::parsing::impl::including_stream_proxy
{
TEST_CASE("IncludingStreamProxy: Ensure simple include is working", "[parsing][parsingstream]")
{
const std::vector<std::string> lines
{
"Hello world",
"#include \"ASDF.txt\"",
"and bye"
};
const std::vector<std::string> lines{"Hello world", "#include \"ASDF.txt\"", "and bye"};
const std::vector<std::string> asdf
{
"Hello galaxy"
};
const std::vector<std::string> asdf{"Hello galaxy"};
MockParserLineStream mockStream(lines);
mockStream.AddIncludeLines("ASDF.txt", asdf);
@ -51,17 +43,9 @@ namespace test::parsing::impl::including_stream_proxy
TEST_CASE("IncludingStreamProxy: Ensure simple include with angle brackets is working", "[parsing][parsingstream]")
{
const std::vector<std::string> lines
{
"Hello world",
"#include <ASDF.txt>",
"and bye"
};
const std::vector<std::string> lines{"Hello world", "#include <ASDF.txt>", "and bye"};
const std::vector<std::string> asdf
{
"Hello galaxy"
};
const std::vector<std::string> asdf{"Hello galaxy"};
MockParserLineStream mockStream(lines);
mockStream.AddIncludeLines("ASDF.txt", asdf);
@ -94,17 +78,9 @@ namespace test::parsing::impl::including_stream_proxy
TEST_CASE("IncludingStreamProxy: Ensure can have spaces before include directive", "[parsing][parsingstream]")
{
const std::vector<std::string> lines
{
"Hello world",
" #include \"ASDF.txt\" ",
"and bye"
};
const std::vector<std::string> lines{"Hello world", " #include \"ASDF.txt\" ", "and bye"};
const std::vector<std::string> asdf
{
"Hello galaxy"
};
const std::vector<std::string> asdf{"Hello galaxy"};
MockParserLineStream mockStream(lines);
mockStream.AddIncludeLines("ASDF.txt", asdf);
@ -137,19 +113,9 @@ namespace test::parsing::impl::including_stream_proxy
TEST_CASE("IncludingStreamProxy: Ensure pragma once prevents including the same file more than once", "[parsing][parsingstream]")
{
const std::vector<std::string> lines
{
"Hello world",
"#include \"ASDF.txt\"",
"#include \"ASDF.txt\"",
"and bye"
};
const std::vector<std::string> lines{"Hello world", "#include \"ASDF.txt\"", "#include \"ASDF.txt\"", "and bye"};
const std::vector<std::string> asdf
{
"#pragma once",
"Hello galaxy"
};
const std::vector<std::string> asdf{"#pragma once", "Hello galaxy"};
MockParserLineStream mockStream(lines);
mockStream.AddIncludeLines("ASDF.txt", asdf);
@ -179,4 +145,4 @@ namespace test::parsing::impl::including_stream_proxy
REQUIRE(proxy.Eof());
}
}
} // namespace test::parsing::impl::including_stream_proxy