Added missing inline directives.

This commit is contained in:
Patrick Lühne 2017-06-24 15:53:40 +02:00
parent dd51f2b4fd
commit aeb8132fc7
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -27,13 +27,13 @@ void collectFreeVariables(const Variant &variant, std::vector<normalizedAST::Var
////////////////////////////////////////////////////////////////////////////////////////////////////
void collectFreeVariables(const ast::ConstantPointer &, std::vector<normalizedAST::VariableDeclaration *> &, VariableStack &)
inline void collectFreeVariables(const ast::ConstantPointer &, std::vector<normalizedAST::VariableDeclaration *> &, VariableStack &)
{
}
////////////////////////////////////////////////////////////////////////////////////////////////////
void collectFreeVariables(const ast::VariablePointer &variable, std::vector<normalizedAST::VariableDeclaration *> &freeVariables, VariableStack &variableStack)
inline void collectFreeVariables(const ast::VariablePointer &variable, std::vector<normalizedAST::VariableDeclaration *> &freeVariables, VariableStack &variableStack)
{
if (variableStack.contains(*variable->declaration))
return;
@ -48,7 +48,7 @@ void collectFreeVariables(const ast::VariablePointer &variable, std::vector<norm
////////////////////////////////////////////////////////////////////////////////////////////////////
void collectFreeVariables(const ast::PredicatePointer &predicate, std::vector<normalizedAST::VariableDeclaration *> &freeVariables, VariableStack &variableStack)
inline void collectFreeVariables(const ast::PredicatePointer &predicate, std::vector<normalizedAST::VariableDeclaration *> &freeVariables, VariableStack &variableStack)
{
for (const auto &argument : predicate->arguments)
collectFreeVariables(argument, freeVariables, variableStack);
@ -115,7 +115,7 @@ void collectFreeVariables(const ast::OrPointer<Argument> &or_, std::vector<norma
////////////////////////////////////////////////////////////////////////////////////////////////////
void collectFreeVariables(const ast::UnsupportedPointer &unsupported, std::vector<normalizedAST::VariableDeclaration *> &, VariableStack &)
inline void collectFreeVariables(const ast::UnsupportedPointer &unsupported, std::vector<normalizedAST::VariableDeclaration *> &, VariableStack &)
{
throw NormalizationException("cannot collect free variables of unsupported “" + unsupported->type + "” expression");
}