r227418 - Sema: Turn some applicable functions static. NBC.
Francisco Lopes da Silva
oblita at gmail.com
Wed Jan 28 21:55:00 PST 2015
Author: francisco.lopes
Date: Wed Jan 28 23:54:59 2015
New Revision: 227418
URL: http://llvm.org/viewvc/llvm-project?rev=227418&view=rev
Log:
Sema: Turn some applicable functions static. NBC.
Modified:
cfe/trunk/lib/Sema/SemaCodeComplete.cpp
Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCodeComplete.cpp?rev=227418&r1=227417&r2=227418&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaCodeComplete.cpp (original)
+++ cfe/trunk/lib/Sema/SemaCodeComplete.cpp Wed Jan 28 23:54:59 2015
@@ -3864,10 +3864,10 @@ static bool anyNullArguments(ArrayRef<Ex
typedef CodeCompleteConsumer::OverloadCandidate ResultCandidate;
-void mergeCandidatesWithResults(Sema &SemaRef,
- SmallVectorImpl<ResultCandidate> &Results,
- OverloadCandidateSet &CandidateSet,
- SourceLocation Loc) {
+static void mergeCandidatesWithResults(Sema &SemaRef,
+ SmallVectorImpl<ResultCandidate> &Results,
+ OverloadCandidateSet &CandidateSet,
+ SourceLocation Loc) {
if (!CandidateSet.empty()) {
// Sort the overload candidate set by placing the best overloads first.
std::stable_sort(
@@ -3885,8 +3885,9 @@ void mergeCandidatesWithResults(Sema &Se
/// \brief Get the type of the Nth parameter from a given set of overload
/// candidates.
-QualType getParamType(Sema &SemaRef, ArrayRef<ResultCandidate> Candidates,
- unsigned N) {
+static QualType getParamType(Sema &SemaRef,
+ ArrayRef<ResultCandidate> Candidates,
+ unsigned N) {
// Given the overloads 'Candidates' for a function call matching all arguments
// up to N, return the type of the Nth parameter if it is the same for all
@@ -3909,9 +3910,9 @@ QualType getParamType(Sema &SemaRef, Arr
return ParamType;
}
-void CodeCompleteOverloadResults(Sema &SemaRef, Scope *S,
- MutableArrayRef<ResultCandidate> Candidates,
- unsigned CurrentArg,
+static void CodeCompleteOverloadResults(Sema &SemaRef, Scope *S,
+ MutableArrayRef<ResultCandidate> Candidates,
+ unsigned CurrentArg,
bool CompleteExpressionWithCurrentArg = true) {
QualType ParamType;
if (CompleteExpressionWithCurrentArg)
More information about the cfe-commits
mailing list