]> granicus.if.org Git - clang/commitdiff
templates can't be static.
authorChris Lattner <sabre@nondot.org>
Sun, 6 Apr 2008 04:22:39 +0000 (04:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 6 Apr 2008 04:22:39 +0000 (04:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49258 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRSimpleVals.cpp

index fe4c1e70d5e63101e054acead62dceb64b1cc922..d7ee5606a8e057607a35b7290cf6eb324e9d546b 100644 (file)
@@ -161,12 +161,12 @@ public:
 // Utility functions.
 //===----------------------------------------------------------------------===//
   
-template <typename ITERATOR> static inline
+template <typename ITERATOR> inline
 ExplodedNode<ValueState>* GetNode(ITERATOR I) {
   return *I;
 }
 
-template <> static inline
+template <> inline
 ExplodedNode<ValueState>* GetNode(GRExprEngine::undef_arg_iterator I) {
   return I->first;
 }
@@ -176,11 +176,11 @@ ExplodedNode<ValueState>* GetNode(GRExprEngine::undef_arg_iterator I) {
 //===----------------------------------------------------------------------===//
 
 template <typename ITERATOR>
-static void EmitWarning(Diagnostic& Diag, PathDiagnosticClient* PD,
-                        ASTContext& Ctx, BugReporter& BR,
-                        const BugDescription& Desc,
-                        ExplodedGraph<GRExprEngine>& G,
-                        ITERATOR I, ITERATOR E) {
+void EmitWarning(Diagnostic& Diag, PathDiagnosticClient* PD,
+                 ASTContext& Ctx, BugReporter& BR,
+                 const BugDescription& Desc,
+                 ExplodedGraph<GRExprEngine>& G,
+                 ITERATOR I, ITERATOR E) {
   
   for (; I != E; ++I)
     BR.EmitPathWarning(Diag, PD, Ctx, Desc, G, GetNode(I));