summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-02-03 09:54:58 +0000
committerDaniel Jasper <djasper@google.com>2015-02-03 09:54:58 +0000
commite03491d39074a28585f7d4b8eebc88ad24d69aab (patch)
tree1897db7eb754c38c1af7b8d8e253596eabd34f15
parentd142381cd8eff4600948086992b320fc6b69f358 (diff)
downloadbcm5719-llvm-e03491d39074a28585f7d4b8eebc88ad24d69aab.tar.gz
bcm5719-llvm-e03491d39074a28585f7d4b8eebc88ad24d69aab.zip
Move "inline" to the right place.
llvm-svn: 227957
-rw-r--r--clang/include/clang/ASTMatchers/ASTMatchersInternal.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/include/clang/ASTMatchers/ASTMatchersInternal.h b/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
index 8d8c5e9670e..7a722c56792 100644
--- a/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
+++ b/clang/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<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;
}
OpenPOWER on IntegriCloud