Comments (5)
Hi,
If I remember correctly, there is a flag that you can pass to the clang library part wether you want completion for those different keywords (if/for/while/case etc). I don't think it would be hard to make a configuration-option and links to that flag.
Development hasn't stopped, but I'm currently (and slowly) working on reference-lookup and a browse-tree where you can easily go down a level, which does a new reference-lookup of the parent (and then another one of that parent etc...). This is something pretty powerful to understand huge codebases.
from clanglib.
Pushed a fix for this feature request to the 'staging' branch. I hope this should implement the feature you requested ?
from clanglib.
Thanks for the fix and sorry for the late reply, it took me a couple of days to compile and try.
With the new fix, I don't get any code completion suggestions for switch/while/for etc... if I disable 'Add code patterns to Code Completion results'. To be more clear, clang no longer code completes the keywords like while/switch etc... From what I understand, clang either completes the keywords with its own syntax or doesn't complete at all. Is that the intended behavior or am I missing something? Can it be adjusted to just code complete the keyword with nothing extra?
Also 'Add brief comments to Code Completion result arguments' doesn't have any effect on commented function parameters. Whether enabled or disabled, I always get commented function parameters when I code complete a function. Again is that the intended behavior?
from clanglib.
Too bad this is not how code-completion is implemented in Clang. However this can obviously be programmed by removing everything between { } in the code-completion result value.
The "Add brief comments" is an option that can be passed to Clang, but I'm however unsure what it exactly does. Since it's part of the same set of options that could be set for code-patterns, I simply took it with me while implementing the option (Same for the macro option).
from clanglib.
Anyhow it's better than the old implementation though, now I can type a couple extra characters to complete the keyword myself instead of deleting many extra characters which is way too easier to deal with. ;) Or maybe I'll try the clang-format way if I can configure it for general use.
Thanks anyway.
from clanglib.
Related Issues (10)
- Code completion on a function definition should not have arguments commented out HOT 2
- Code completion doesn't work for fields of unions/structures inside compound literals (in C)
- Code completion doesn't work for labels
- Header files are parsed incorrectly as main files
- string class is not recognized HOT 5
- bad_alloc exception (memory overflow?) HOT 3
- icons of the cc list are not installed HOT 1
- Add indicator if parser/indexer is still working HOT 8
- Settings not saved HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clanglib.