r182589 - Make helper functions static.

Benjamin Kramer benny.kra at googlemail.com
Thu May 23 08:53:44 PDT 2013


Author: d0k
Date: Thu May 23 10:53:44 2013
New Revision: 182589

URL: http://llvm.org/viewvc/llvm-project?rev=182589&view=rev
Log:
Make helper functions static.

Modified:
    cfe/trunk/lib/Sema/SemaObjCProperty.cpp
    cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp

Modified: cfe/trunk/lib/Sema/SemaObjCProperty.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaObjCProperty.cpp?rev=182589&r1=182588&r2=182589&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaObjCProperty.cpp (original)
+++ cfe/trunk/lib/Sema/SemaObjCProperty.cpp Thu May 23 10:53:44 2013
@@ -717,8 +717,9 @@ static void setImpliedPropertyAttributeF
 /// 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

Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp?rev=182589&r1=182588&r2=182589&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp Thu May 23 10:53:44 2013
@@ -1822,13 +1822,13 @@ GenerateAlternateExtensivePathDiagnostic
   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;
 





More information about the cfe-commits mailing list