]> granicus.if.org Git - clang/commitdiff
Move "inline" to the right place.
authorDaniel Jasper <djasper@google.com>
Tue, 3 Feb 2015 09:54:58 +0000 (09:54 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 3 Feb 2015 09:54:58 +0000 (09:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227957 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/ASTMatchers/ASTMatchersInternal.h

index 8d8c5e9670e5f23cb9ed3a192c6eeda4836acd2a..7a722c567920802422997ec0b1f6fc4b268c7f62 100644 (file)
@@ -1458,8 +1458,8 @@ private:
 
 /// \brief Template specializations to easily write matchers for floating point
 /// literals.
-inline template <>
-bool ValueEqualsMatcher<FloatingLiteral, double>::matchesNode(
+template <>
+inline bool ValueEqualsMatcher<FloatingLiteral, double>::matchesNode(
     const FloatingLiteral &Node) const {
   if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle)
     return Node.getValue().convertToFloat() == ExpectedValue;
@@ -1467,8 +1467,8 @@ bool ValueEqualsMatcher<FloatingLiteral, double>::matchesNode(
     return Node.getValue().convertToDouble() == ExpectedValue;
   return false;
 }
-inline template <>
-bool ValueEqualsMatcher<FloatingLiteral, float>::matchesNode(
+template <>
+inline bool ValueEqualsMatcher<FloatingLiteral, float>::matchesNode(
     const FloatingLiteral &Node) const {
   if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle)
     return Node.getValue().convertToFloat() == ExpectedValue;
@@ -1476,8 +1476,8 @@ bool ValueEqualsMatcher<FloatingLiteral, float>::matchesNode(
     return Node.getValue().convertToDouble() == ExpectedValue;
   return false;
 }
-inline template <>
-bool ValueEqualsMatcher<FloatingLiteral, llvm::APFloat>::matchesNode(
+template <>
+inline bool ValueEqualsMatcher<FloatingLiteral, llvm::APFloat>::matchesNode(
     const FloatingLiteral &Node) const {
   return ExpectedValue.compare(Node.getValue()) == llvm::APFloat::cmpEqual;
 }