r226780 - Makes a simple member function static.

Francisco Lopes da Silva oblita at gmail.com
Wed Jan 21 20:30:23 PST 2015


Author: francisco.lopes
Date: Wed Jan 21 22:30:23 2015
New Revision: 226780

URL: http://llvm.org/viewvc/llvm-project?rev=226780&view=rev
Log:
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.

Modified:
    cfe/trunk/include/clang/Sema/Sema.h

Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=226780&r1=226779&r2=226780&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Wed Jan 21 22:30:23 2015
@@ -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.





More information about the cfe-commits mailing list