]> granicus.if.org Git - clang/commitdiff
Make a couple methods static.
authorCraig Topper <craig.topper@gmail.com>
Sat, 7 Nov 2015 08:08:34 +0000 (08:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 7 Nov 2015 08:08:34 +0000 (08:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252400 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h

index 62839b34840061d87c11c9e2081910881e757648..8ba2f5e7f7c10ff630388ea0fbf4754ed1ab73ab 100644 (file)
@@ -8846,8 +8846,8 @@ private:
     bool HasVAListArg;
   };
 
-  bool getFormatStringInfo(const FormatAttr *Format, bool IsCXXMember,
-                           FormatStringInfo *FSI);
+  static bool getFormatStringInfo(const FormatAttr *Format, bool IsCXXMember,
+                                  FormatStringInfo *FSI);
   bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
                          const FunctionProtoType *Proto);
   bool CheckObjCMethodCall(ObjCMethodDecl *Method, SourceLocation loc,
@@ -8935,7 +8935,7 @@ public:
   
   bool FormatStringHasSArg(const StringLiteral *FExpr);
   
-  bool GetFormatNSStringIdx(const FormatAttr *Format, unsigned &Idx);
+  static bool GetFormatNSStringIdx(const FormatAttr *Format, unsigned &Idx);
 
 private:
   bool CheckFormatArguments(const FormatAttr *Format,