Makes a simple member function static.

This function has been just included with the initial support for C++
parameter completion and it's trivial enough to be a static member.

llvm-svn: 226780
This commit is contained in:
Francisco Lopes da Silva 2015-01-22 04:30:23 +00:00
parent 10ed0babd3
commit 36e1ddfd13
1 changed files with 2 additions and 2 deletions

View File

@ -8740,8 +8740,8 @@ public:
/// \brief To be used for checking whether the arguments being passed to
/// function exceeds the number of parameters expected for it.
bool TooManyArguments(size_t NumParams, size_t NumArgs,
bool PartialOverloading = false) const {
static bool TooManyArguments(size_t NumParams, size_t NumArgs,
bool PartialOverloading = false) {
// We check whether we're just after a comma in code-completion.
if (NumArgs > 0 && PartialOverloading)
return NumArgs + 1 > NumParams; // If so, we view as an extra argument.