From: Benjamin Kramer Date: Thu, 23 May 2013 15:53:44 +0000 (+0000) Subject: Make helper functions static. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1a4d37c0549501fe12907bc6ffa81bc5d04b98a;p=clang Make helper functions static. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182589 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index e49edc908a..7770bbde62 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -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 diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index d241c8a16d..50a1e8cbac 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -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;