summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/complete-call.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix line endings in recently updated test fileIvan Donchevskii2018-06-211-59/+59
| | | | llvm-svn: 335220
* [Sema] Fix overloaded static functions for templatesIvan Donchevskii2018-06-211-9/+59
| | | | | | | | Apply almost the same fix as https://reviews.llvm.org/D36390 but for templates. Differential Revision: https://reviews.llvm.org/D43453 llvm-svn: 335211
* Fix overloaded static functions in SemaCodeCompleteBenjamin Kramer2017-10-261-0/+61
| | | | | | | | | | | | | | | | | | | | | https://bugs.llvm.org/show_bug.cgi?id=33904 Happens when static function is accessed via the class variable. That leads to incorrect overloads number because the variable is considered as the first argument. struct Bar { static void foo(); static void foo(int); }; int main() { Bar b; b.foo(/*complete here*/); // did not work before Bar::foo(/*complete here*/); // worked fine } Patch by Ivan Donchevskii! Differential Revision: https://reviews.llvm.org/D36390 llvm-svn: 316646
* Improves overload completion result chunks.Francisco Lopes da Silva2015-01-281-49/+49
| | | | | | | | | | | | | | | | | | | | | The code building the code completion string for overloads was providing less detail compared to the one building completion strings for function declarations. There was no information about optionals and no information about what's a parameter and what's a function identifier, everything besides ResultType, CurrentParameter and special characters was classified as Text. This makes code completion strings for overload candidates to follow a pattern very similar, but not identical, to the one in use for function declarations: - return type chunk: ResultType - function identifier chunk: Text - parameter chunks: Placeholder - optional parameter chunks: Optional - current parameter chunk: CurrentParameter llvm-svn: 227309
* Initial support for C++ parameter completionFrancisco Lopes da Silva2015-01-211-0/+805
The improved completion in call context now works with: - Functions. - Member functions. - Constructors. - New expressions. - Function call expressions. - Template variants of the previous. There are still rough edges to be fixed: - Provide support for optional parameters. (fix known) - Provide support for member initializers. (fix known) - Provide support for variadic template functions. (fix unknown) - Others? llvm-svn: 226670
OpenPOWER on IntegriCloud