Skip to content

Commit

Permalink
*: Rename template parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Feb 7, 2024
1 parent b972856 commit 13b8ec1
Show file tree
Hide file tree
Showing 14 changed files with 149 additions and 149 deletions.
20 changes: 10 additions & 10 deletions asteria/compiler/expression_unit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,22 @@ class Expression_Unit

public:
// Constructors and assignment operators
template<typename xUnitT,
ROCKET_ENABLE_IF(::std::is_constructible<decltype(m_stor), xUnitT&&>::value)>
template<typename xUnit,
ROCKET_ENABLE_IF(::std::is_constructible<decltype(m_stor), xUnit&&>::value)>
constexpr
Expression_Unit(xUnitT&& xunit)
noexcept(::std::is_nothrow_constructible<decltype(m_stor), xUnitT&&>::value)
Expression_Unit(xUnit&& xunit)
noexcept(::std::is_nothrow_constructible<decltype(m_stor), xUnit&&>::value)
:
m_stor(forward<xUnitT>(xunit))
m_stor(forward<xUnit>(xunit))
{ }

template<typename xUnitT,
ROCKET_ENABLE_IF(::std::is_assignable<decltype(m_stor)&, xUnitT&&>::value)>
template<typename xUnit,
ROCKET_ENABLE_IF(::std::is_assignable<decltype(m_stor)&, xUnit&&>::value)>
Expression_Unit&
operator=(xUnitT&& xunit) &
noexcept(::std::is_nothrow_assignable<decltype(m_stor)&, xUnitT&&>::value)
operator=(xUnit&& xunit) &
noexcept(::std::is_nothrow_assignable<decltype(m_stor)&, xUnit&&>::value)
{
this->m_stor = forward<xUnitT>(xunit);
this->m_stor = forward<xUnit>(xunit);
return *this;
}

Expand Down
20 changes: 10 additions & 10 deletions asteria/compiler/infix_element.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,22 @@ class Infix_Element

public:
// Constructors and assignment operators
template<typename xElementT,
ROCKET_ENABLE_IF(::std::is_constructible<decltype(m_stor), xElementT&&>::value)>
template<typename xElement,
ROCKET_ENABLE_IF(::std::is_constructible<decltype(m_stor), xElement&&>::value)>
constexpr
Infix_Element(xElementT&& xelem)
noexcept(::std::is_nothrow_constructible<decltype(m_stor), xElementT&&>::value)
Infix_Element(xElement&& xelem)
noexcept(::std::is_nothrow_constructible<decltype(m_stor), xElement&&>::value)
:
m_stor(forward<xElementT>(xelem))
m_stor(forward<xElement>(xelem))
{ }

template<typename xElementT,
ROCKET_ENABLE_IF(::std::is_assignable<decltype(m_stor)&, xElementT&&>::value)>
template<typename xElement,
ROCKET_ENABLE_IF(::std::is_assignable<decltype(m_stor)&, xElement&&>::value)>
Infix_Element&
operator=(xElementT&& xelem) &
noexcept(::std::is_nothrow_assignable<decltype(m_stor)&, xElementT&&>::value)
operator=(xElement&& xelem) &
noexcept(::std::is_nothrow_assignable<decltype(m_stor)&, xElement&&>::value)
{
this->m_stor = forward<xElementT>(xelem);
this->m_stor = forward<xElement>(xelem);
return *this;
}

Expand Down
20 changes: 10 additions & 10 deletions asteria/compiler/statement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,22 +200,22 @@ class Statement

public:
// Constructors and assignment operators
template<typename xStatementT,
ROCKET_ENABLE_IF(::std::is_constructible<decltype(m_stor), xStatementT&&>::value)>
template<typename xStatement,
ROCKET_ENABLE_IF(::std::is_constructible<decltype(m_stor), xStatement&&>::value)>
constexpr
Statement(xStatementT&& xstmt)
noexcept(::std::is_nothrow_constructible<decltype(m_stor), xStatementT&&>::value)
Statement(xStatement&& xstmt)
noexcept(::std::is_nothrow_constructible<decltype(m_stor), xStatement&&>::value)
:
m_stor(forward<xStatementT>(xstmt))
m_stor(forward<xStatement>(xstmt))
{ }

template<typename xStatementT,
ROCKET_ENABLE_IF(::std::is_assignable<decltype(m_stor)&, xStatementT&&>::value)>
template<typename xStatement,
ROCKET_ENABLE_IF(::std::is_assignable<decltype(m_stor)&, xStatement&&>::value)>
Statement&
operator=(xStatementT&& xstmt) &
noexcept(::std::is_nothrow_assignable<decltype(m_stor)&, xStatementT&&>::value)
operator=(xStatement&& xstmt) &
noexcept(::std::is_nothrow_assignable<decltype(m_stor)&, xStatement&&>::value)
{
this->m_stor = forward<xStatementT>(xstmt);
this->m_stor = forward<xStatement>(xstmt);
return *this;
}

Expand Down
8 changes: 4 additions & 4 deletions asteria/compiler/token.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ class Token
);

public:
template<typename xTokenT>
template<typename xToken>
constexpr
Token(const Source_Location& xsloc, size_t xlen, xTokenT&& xtok)
noexcept(::std::is_nothrow_constructible<decltype(m_stor), xTokenT&&>::value)
Token(const Source_Location& xsloc, size_t xlen, xToken&& xtok)
noexcept(::std::is_nothrow_constructible<decltype(m_stor), xToken&&>::value)
:
m_sloc(xsloc), m_length(xlen), m_stor(forward<xTokenT>(xtok))
m_sloc(xsloc), m_length(xlen), m_stor(forward<xToken>(xtok))
{ }

Token&
Expand Down
6 changes: 3 additions & 3 deletions asteria/compiler/token_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ class Text_Reader
}
};

template<typename xTokenT>
template<typename xToken>
bool
do_push_token(cow_vector<Token>& tokens, Text_Reader& reader, size_t tlen, xTokenT&& xtoken)
do_push_token(cow_vector<Token>& tokens, Text_Reader& reader, size_t tlen, xToken&& xtoken)
{
tokens.emplace_back(reader.tell(), tlen, forward<xTokenT>(xtoken));
tokens.emplace_back(reader.tell(), tlen, forward<xToken>(xtoken));
reader.consume(tlen);
return true;
}
Expand Down
Loading

0 comments on commit 13b8ec1

Please sign in to comment.