mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-04 07:47:25 +00:00
Reformat code with clang format
This commit is contained in:
@@ -8,7 +8,6 @@ ZoneDefinitionMatcherCharacter::ZoneDefinitionMatcherCharacter(const char c)
|
||||
MatcherResult<ZoneDefinitionParserValue> ZoneDefinitionMatcherCharacter::CanMatch(ILexer<ZoneDefinitionParserValue>* lexer, const unsigned tokenOffset)
|
||||
{
|
||||
const auto& token = lexer->GetToken(tokenOffset);
|
||||
return token.m_type == ZoneDefinitionParserValueType::CHARACTER && token.CharacterValue() == m_char
|
||||
? MatcherResult<ZoneDefinitionParserValue>::Match(1)
|
||||
: MatcherResult<ZoneDefinitionParserValue>::NoMatch();
|
||||
return token.m_type == ZoneDefinitionParserValueType::CHARACTER && token.CharacterValue() == m_char ? MatcherResult<ZoneDefinitionParserValue>::Match(1)
|
||||
: MatcherResult<ZoneDefinitionParserValue>::NoMatch();
|
||||
}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Parsing/ZoneDefinition/ZoneDefinitionParserValue.h"
|
||||
#include "Parsing/Matcher/AbstractMatcherFactory.h"
|
||||
#include "Parsing/ZoneDefinition/ZoneDefinitionParserValue.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class ZoneDefinitionMatcherFactory final : public AbstractMatcherFactory<ZoneDefinitionParserValue>
|
||||
{
|
||||
|
@@ -11,6 +11,6 @@ MatcherResult<ZoneDefinitionParserValue> ZoneDefinitionMatcherKeyword::CanMatch(
|
||||
{
|
||||
const auto& token = lexer->GetToken(tokenOffset);
|
||||
return token.m_type == ZoneDefinitionParserValueType::FIELD && token.FieldHash() == m_hash && token.FieldValue() == m_value
|
||||
? MatcherResult<ZoneDefinitionParserValue>::Match(1)
|
||||
: MatcherResult<ZoneDefinitionParserValue>::NoMatch();
|
||||
? MatcherResult<ZoneDefinitionParserValue>::Match(1)
|
||||
: MatcherResult<ZoneDefinitionParserValue>::NoMatch();
|
||||
}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Parsing/ZoneDefinition/ZoneDefinitionParserValue.h"
|
||||
#include "Parsing/Matcher/AbstractMatcher.h"
|
||||
#include "Parsing/ZoneDefinition/ZoneDefinitionParserValue.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class ZoneDefinitionMatcherKeyword final : public AbstractMatcher<ZoneDefinitionParserValue>
|
||||
{
|
||||
|
@@ -7,7 +7,6 @@ ZoneDefinitionMatcherValueType::ZoneDefinitionMatcherValueType(const ZoneDefinit
|
||||
|
||||
MatcherResult<ZoneDefinitionParserValue> ZoneDefinitionMatcherValueType::CanMatch(ILexer<ZoneDefinitionParserValue>* lexer, const unsigned tokenOffset)
|
||||
{
|
||||
return lexer->GetToken(tokenOffset).m_type == m_type
|
||||
? MatcherResult<ZoneDefinitionParserValue>::Match(1)
|
||||
: MatcherResult<ZoneDefinitionParserValue>::NoMatch();
|
||||
return lexer->GetToken(tokenOffset).m_type == m_type ? MatcherResult<ZoneDefinitionParserValue>::Match(1)
|
||||
: MatcherResult<ZoneDefinitionParserValue>::NoMatch();
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Parsing/ZoneDefinition/ZoneDefinitionParserValue.h"
|
||||
#include "Parsing/Matcher/AbstractMatcher.h"
|
||||
#include "Parsing/ZoneDefinition/ZoneDefinitionParserValue.h"
|
||||
|
||||
class ZoneDefinitionMatcherValueType final : public AbstractMatcher<ZoneDefinitionParserValue>
|
||||
{
|
||||
|
Reference in New Issue
Block a user