summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/complete-declarators.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Tweak code-completion result priorities, so that exact and similarDouglas Gregor2010-10-191-12/+12
| | | | | | | | | 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
* Synchronize globally-cached code completion results with the resultsDouglas Gregor2010-09-231-2/+6
| | | | | | | | | | | | | | provided when the optimization is disabled. In particular, split the completion context CCC_Other into two contexts: CCC_Other, which means that it's an undisclosed context for which any other results are unwelcome, and CCC_Recovery, which is used in recovery cases. Since we're now using the completion context within the completion results builder, make sure that it's always set to something. Fixes <rdar://problem/8470644>. llvm-svn: 114704
* Code completion has no reason to prefer values over types, especiallyDouglas Gregor2010-09-201-1/+1
| | | | | | | | at the statement level or in Objective-C message receivers. Therefore, just give types and declarations the same basic priority, and adjust from there. llvm-svn: 114374
* Swap the priorities of constants and types, so that we prefer types.Douglas Gregor2010-09-161-1/+1
| | | | llvm-svn: 114086
* Synchronize code-completion cursor kinds with indexing cursorDouglas Gregor2010-09-031-4/+4
| | | | | | kinds. How shameful that this code was duplicated! llvm-svn: 113033
* In code-completion contexts where both types and other values areDouglas Gregor2010-08-241-1/+1
| | | | | | | | | present, prefer values to types, since it's more common to compute with values than it is to declare new entities or perform type casts. So, tweak the ranking of types vs. other declarations and constants accordingly. llvm-svn: 111998
* Introduce a new code-completion point when we're parsing aDouglas Gregor2010-08-231-0/+39
declarator. Here, we can only see a few things (e.g., cvr-qualifiers, nested name specifiers) and we do not want to provide other non-macro completions. Previously, we would end up in recovery mode and would provide a large number of non-relevant completions. llvm-svn: 111818
OpenPOWER on IntegriCloud