]> granicus.if.org Git - clang/commitdiff
Make helper functions static.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 23 May 2013 15:53:44 +0000 (15:53 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 23 May 2013 15:53:44 +0000 (15:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182589 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaObjCProperty.cpp
lib/StaticAnalyzer/Core/BugReporter.cpp

index e49edc908aa099e3fc7c745f661eec477486b699..7770bbde628d2bc7083830c4de2b0827b5b31def 100644 (file)
@@ -717,8 +717,9 @@ static void setImpliedPropertyAttributeForReadOnlyProperty(
 /// DiagnosePropertyMismatchDeclInProtocols - diagnose properties declared
 /// in inherited protocols with mismatched types. Since any of them can
 /// be candidate for synthesis.
-void DiagnosePropertyMismatchDeclInProtocols(Sema &S, SourceLocation AtLoc,
-                                             ObjCInterfaceDecl *ClassDecl,
+static void
+DiagnosePropertyMismatchDeclInProtocols(Sema &S, SourceLocation AtLoc,
+                                        ObjCInterfaceDecl *ClassDecl,
                                         ObjCPropertyDecl *Property) {
   ObjCInterfaceDecl::ProtocolPropertyMap PropMap;
   for (ObjCInterfaceDecl::all_protocol_iterator
index d241c8a16d71946257147a75646d6ee9cab24d8e..50a1e8cbac6171e8c225bcd2754cd542321d369f 100644 (file)
@@ -1822,13 +1822,13 @@ GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD,
   return report->isValid();
 }
 
-const Stmt *getLocStmt(PathDiagnosticLocation L) {
+static const Stmt *getLocStmt(PathDiagnosticLocation L) {
   if (!L.isValid())
     return 0;
   return L.asStmt();
 }
 
-const Stmt *getStmtParent(const Stmt *S, ParentMap &PM) {
+static const Stmt *getStmtParent(const Stmt *S, ParentMap &PM) {
   if (!S)
     return 0;