mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-12-01 16:57:47 +00:00
Reformat code with clang format
This commit is contained in:
@@ -17,4 +17,4 @@ namespace templating
|
||||
private:
|
||||
IParserLineStream* const m_stream;
|
||||
};
|
||||
}
|
||||
} // namespace templating
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "Parsing/Impl/AbstractDirectiveStreamProxy.h"
|
||||
#include "Parsing/Impl/DefinesStreamProxy.h"
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
||||
namespace templating
|
||||
{
|
||||
@@ -28,4 +28,4 @@ namespace templating
|
||||
IParserLineStream* const m_stream;
|
||||
DefinesStreamProxy* m_defines_proxy;
|
||||
};
|
||||
}
|
||||
} // namespace templating
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
#include "Templater.h"
|
||||
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "DirectiveEscapeStreamProxy.h"
|
||||
#include "SetDefineStreamProxy.h"
|
||||
#include "TemplatingStreamProxy.h"
|
||||
#include "Parsing/ParsingException.h"
|
||||
#include "Parsing/Impl/DefinesStreamProxy.h"
|
||||
#include "Parsing/Impl/ParserSingleInputStream.h"
|
||||
#include "Parsing/Impl/SkipUntilFirstNonEmptyProxy.h"
|
||||
#include "Parsing/ParsingException.h"
|
||||
#include "SetDefineStreamProxy.h"
|
||||
#include "TemplatingStreamProxy.h"
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
using namespace templating;
|
||||
namespace fs = std::filesystem;
|
||||
@@ -378,7 +378,7 @@ namespace templating
|
||||
std::ofstream m_output_stream;
|
||||
std::ostringstream m_output_cache;
|
||||
};
|
||||
}
|
||||
} // namespace templating
|
||||
|
||||
Templater::Templater(std::istream& stream, std::string fileName)
|
||||
: m_stream(stream),
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "Parsing/IParserLineStream.h"
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace templating
|
||||
{
|
||||
@@ -19,4 +19,4 @@ namespace templating
|
||||
std::ostream* m_build_log;
|
||||
std::string m_file_name;
|
||||
};
|
||||
}
|
||||
} // namespace templating
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "TemplatingStreamProxy.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "Parsing/ParsingException.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace templating;
|
||||
|
||||
TemplatingStreamProxy::TemplatingStreamProxy(IParserLineStream* stream, ITemplaterControl* templaterControl)
|
||||
@@ -153,10 +153,8 @@ bool TemplatingStreamProxy::MatchDirectives(const ParserLine& line) const
|
||||
|
||||
directiveStartPos++;
|
||||
|
||||
return MatchSwitchDirective(line, directiveStartPos, directiveEndPos)
|
||||
|| MatchOptionsDirective(line, directiveStartPos, directiveEndPos)
|
||||
|| MatchFilenameDirective(line, directiveStartPos, directiveEndPos)
|
||||
|| MatchSkipDirective(line, directiveStartPos, directiveEndPos);
|
||||
return MatchSwitchDirective(line, directiveStartPos, directiveEndPos) || MatchOptionsDirective(line, directiveStartPos, directiveEndPos)
|
||||
|| MatchFilenameDirective(line, directiveStartPos, directiveEndPos) || MatchSkipDirective(line, directiveStartPos, directiveEndPos);
|
||||
}
|
||||
|
||||
ParserLine TemplatingStreamProxy::NextLine()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "Parsing/Impl/AbstractDirectiveStreamProxy.h"
|
||||
#include "Parsing/Impl/DefinesStreamProxy.h"
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
||||
namespace templating
|
||||
{
|
||||
@@ -53,4 +53,4 @@ namespace templating
|
||||
ITemplaterControl* const m_templater_control;
|
||||
DefinesStreamProxy* m_defines_proxy;
|
||||
};
|
||||
}
|
||||
} // namespace templating
|
||||
|
||||
Reference in New Issue
Block a user