Also fixes a crash (see the added 'accessibility-crash.cpp' test).
Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 25559 Build 25558: arc lint + arc unit
Event Timeline
lib/Parse/ParseExprCXX.cpp | ||
---|---|---|
248 | What about first checking for whether we are on code completion point and then assigning nullptr to objecttype? Also it is not in the scope of this patch but I was wondering why we only trigger completion if we've seen a scope specifier, do you have any idea? |
lib/Parse/ParseExprCXX.cpp | ||
---|---|---|
248 | Done. This got me thinking that we probably won't pass the object type on more than 1 qualifiers, e.g. X().Foo::Bar::baz(). I'll test and address this in a separate patch, though.
I haven't looked closely into the code, but I suspect other cases are handled elsewhere, e.g. the case with no qualifiers is handled when parsing member expressions, etc. |
What about first checking for whether we are on code completion point and then assigning nullptr to objecttype?
Also it is not in the scope of this patch but I was wondering why we only trigger completion if we've seen a scope specifier, do you have any idea?