forked from OSchip/llvm-project
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:
parent
10ed0babd3
commit
36e1ddfd13
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue