From: Daniel Jasper Date: Tue, 3 Feb 2015 09:54:58 +0000 (+0000) Subject: Move "inline" to the right place. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d57bf9a036b61f225e1d60dbc27e899cf41c3714;p=clang Move "inline" to the right place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227957 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }