r227957 - Move "inline" to the right place.
Daniel Jasper
djasper at google.com
Tue Feb 3 01:54:58 PST 2015
Author: djasper
Date: Tue Feb 3 03:54:58 2015
New Revision: 227957
URL: http://llvm.org/viewvc/llvm-project?rev=227957&view=rev
Log:
Move "inline" to the right place.
Modified:
cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h
Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h?rev=227957&r1=227956&r2=227957&view=diff
==============================================================================
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h Tue Feb 3 03:54:58 2015
@@ -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,
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,
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;
}
More information about the cfe-commits
mailing list