Giter Club home page Giter Club logo

Comments (5)

yvesdm3000 avatar yvesdm3000 commented on August 12, 2024

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.

yvesdm3000 avatar yvesdm3000 commented on August 12, 2024

Pushed a fix for this feature request to the 'staging' branch. I hope this should implement the feature you requested ?

from clanglib.

scarphin avatar scarphin commented on August 12, 2024

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.

yvesdm3000 avatar yvesdm3000 commented on August 12, 2024

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.

scarphin avatar scarphin commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.