http://llvm.org/bugs/show_bug.cgi?id=12287

Kaelyn Uhrain <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED
           Assignee|[email protected]          |[email protected]

--- Comment #3 from Kaelyn Uhrain <[email protected]> ---
As of r185881, clang will now provide a suggestion and an associated FixIt hint
(and not just for functions that can be found the global scope):

$ cat tmp.cc 
class A {
  void foo(int);
};

void foo();

void A::foo(int) {
  foo();
}

$ ./bin/clang++ -fsyntax-only tmp.cc
tmp.cc:8:7: error: too few arguments to function call, expected 1, have 0; did
you mean '::foo'?
  foo();
  ~~~ ^
  ::foo
tmp.cc:5:1: note: '::foo' declared here
void foo();
^
1 error generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to