This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267803 - Display abbreviations before external namespaces
Summary: Display abbreviations before external namespaces
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-31 11:44 UTC by soldatov
Modified: 2016-09-04 01:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code Completion list (115.46 KB, image/jpeg)
2016-08-31 11:44 UTC, soldatov
Details
Propsed patch (4.25 KB, patch)
2016-08-31 13:25 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-08-31 11:44:22 UTC
Created attachment 161844 [details]
Code Completion list

C++ Code:
int main(int argc, char** argv) {

}

When I call second code completion list in main() I see:
argc
argv
main(...)
__Cimpl
__cxxabiv1
...
std
... abbreviations ...
... keywords ...

Automatic test knows argc, argv, main, abbreviations and keywords, but _Cimpl and std is a external item. Can we use other order? For example:
argc
argv
main(...)
... abbreviations ...
__Cimpl
__cxxabiv1
...
std
... keywords ...
Comment 1 Alexander Simon 2016-08-31 13:25:10 UTC
Created attachment 161849 [details]
Propsed patch
Comment 2 Vladimir Voskresensky 2016-08-31 16:13:55 UTC
Alexander, fill free to commit.
Btw, you've changed the order of our keywords vs abbreviations as well in the patch.
Comment 3 Alexander Simon 2016-08-31 16:49:23 UTC
(In reply to Vladimir Voskresensky from comment #2)
> Alexander, fill free to commit.
> Btw, you've changed the order of our keywords vs abbreviations as well in
> the patch.

Vladimir, fill free to fix and commit patch.
Comment 4 petrk 2016-09-02 19:15:40 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/0d4ddd9c85b9
Comment 5 Quality Engineering 2016-09-04 01:57:18 UTC
Integrated into 'main-silver', will be available in build *201609040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0d4ddd9c85b9
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #267803 - Display abbreviations before external namespaces
-- fix provided by Alexander Simon