]> granicus.if.org Git - clang/commitdiff
Visual Studio is more permissive than other compilers; amends r243107 to fix a compil...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 24 Jul 2015 12:44:02 +0000 (12:44 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 24 Jul 2015 12:44:02 +0000 (12:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243108 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/ASTMatchers/ASTMatchers.h

index 0cd90d929ee59e861a9117f5bccf16748f47e9f3..a4aa8c8688d96db020f55c030b069a9c15be8f46 100644 (file)
@@ -3165,7 +3165,7 @@ AST_MATCHER(CXXMethodDecl, isVirtual) {
 AST_POLYMORPHIC_MATCHER(isFinal,
                         AST_POLYMORPHIC_SUPPORTED_TYPES(CXXRecordDecl,
                                                         CXXMethodDecl)) {
-  return Node.hasAttr<FinalAttr>();
+  return Node.template hasAttr<FinalAttr>();
 }
 
 /// \brief Matches if the given method declaration is pure.