GithubHelp home page GithubHelp logo

Comments (2)

sean-mcmanus avatar sean-mcmanus commented on July 17, 2024

This is currently "by design", but we can treat this as a enhancement request. This occurs only if the declaration and definition are in the same file (a potential "workaround" would be to put the declarations in a header file). And the function declarations don't need to be declared if you're able to put the definitions used by later definitions before they're used if there's no mutual dependency.

from vscode-cpptools.

mrx23dot avatar mrx23dot commented on July 17, 2024

If there are already so many options to hide different objects I would assume adding a new one would be max 3 lines of code, since object type already has a label "declaration"

    "outline.showEnums": false,
    "outline.showClasses": false,
    "outline.showFields": false,
    "outline.showTypeParameters": false,
    "outline.showObjects": false,
    "outline.showConstructors": false,
    "outline.showPackages": false,

My point is that in simple C I don't see much benefit listing any prototypes, thus it would always be noise.
As refecence, Eclipse IDE has an option to hide prototypes too.

About workaround, critical sw requires explicit prototypes before function definitions.
And most code base is already legacy code, so we cannot just freely move things around.

from vscode-cpptools.

Related Issues (20)

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.