From d57bf9a036b61f225e1d60dbc27e899cf41c3714 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 3 Feb 2015 09:54:58 +0000 Subject: [PATCH] Move "inline" to the right place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227957 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/ASTMatchers/ASTMatchersInternal.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/clang/ASTMatchers/ASTMatchersInternal.h b/include/clang/ASTMatchers/ASTMatchersInternal.h index 8d8c5e9670..7a722c5679 100644 --- a/include/clang/ASTMatchers/ASTMatchersInternal.h +++ b/include/clang/ASTMatchers/ASTMatchersInternal.h @@ -1458,8 +1458,8 @@ private: /// \brief Template specializations to easily write matchers for floating point /// literals. -inline template <> -bool ValueEqualsMatcher::matchesNode( +template <> +inline bool ValueEqualsMatcher::matchesNode( const FloatingLiteral &Node) const { if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle) return Node.getValue().convertToFloat() == ExpectedValue; @@ -1467,8 +1467,8 @@ bool ValueEqualsMatcher::matchesNode( return Node.getValue().convertToDouble() == ExpectedValue; return false; } -inline template <> -bool ValueEqualsMatcher::matchesNode( +template <> +inline bool ValueEqualsMatcher::matchesNode( const FloatingLiteral &Node) const { if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle) return Node.getValue().convertToFloat() == ExpectedValue; @@ -1476,8 +1476,8 @@ bool ValueEqualsMatcher::matchesNode( return Node.getValue().convertToDouble() == ExpectedValue; return false; } -inline template <> -bool ValueEqualsMatcher::matchesNode( +template <> +inline bool ValueEqualsMatcher::matchesNode( const FloatingLiteral &Node) const { return ExpectedValue.compare(Node.getValue()) == llvm::APFloat::cmpEqual; } -- 2.40.0