summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/complete-ctor-inits.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang] Improve ctor initializer completions.Kadir Cetinkaya2018-11-011-17/+23
| | | | | | | | | | | | | | | | Summary: Instead of providing generic "args" for member and base class initializers, tries to fetch relevant constructors and show their signatures. Reviewers: ilya-biryukov Reviewed By: ilya-biryukov Subscribers: ZaMaZaN4iK, eraman, arphaman, cfe-commits Differential Revision: https://reviews.llvm.org/D53654 llvm-svn: 345844
* Try to fix the test harder, it still fails on windows for unknown reasons.Benjamin Kramer2015-07-101-1/+1
| | | | llvm-svn: 241902
* Reapply test for r241811 with a fix for msvc compat mode.Benjamin Kramer2015-07-101-0/+16
| | | | | | | Delayed template parsing interferes with code completion, just distable it for this test. This reverts r241811. llvm-svn: 241899
* Revert test lines added in r241811, "[CodeCompletion] Don't crash on member ↵NAKAMURA Takumi2015-07-101-16/+0
| | | | | | | | inits of templated constructors.", for now. It doesn't pass for targeting MS mode. llvm-svn: 241882
* [CodeCompletion] Don't crash on member inits of templated constructors.Benjamin Kramer2015-07-091-0/+16
| | | | | | | Also fixes a crash (on invalid) member functions with a colon initializer. PR23948. llvm-svn: 241811
* Tweak code-completion result priorities, so that exact and similarDouglas Gregor2010-10-191-11/+11
| | | | | | | | | type matches have a bigger impact. The impetus for this change was that, when initializing an enumeration value, we want enumerators of that enumeration type to have a higher priority than, e.g., unrelated local variables. llvm-svn: 116774
* Teach libclang to walk the base and member initializers of aDouglas Gregor2010-09-091-9/+9
| | | | | | | | constructor, in source order. Also introduces a new reference kind for class members, which is used here (for member initializers) and will also be used for designated initializers and offsetof. llvm-svn: 113545
* Improve code completion for initializer lists in constructors. InsteadDouglas Gregor2010-08-291-12/+19
| | | | | | | | | | of prioritizing just by initialization order, we bump the priority of just the *next* initializer in the list, and leave everything else at the normal priority. That way, if one intentionally skips the initialization of a base or member (to get default initialization), we'll still get ordered completion for the rest. llvm-svn: 112454
* Add missing test case for constructor-initializer code completionsDouglas Gregor2010-08-291-0/+33
llvm-svn: 112453
OpenPOWER on IntegriCloud