Giter Site home page Giter Site logo

Return types in C++ about neogen HOT 11 CLOSED

danymat avatar danymat commented on August 17, 2024 1
Return types in C++

from neogen.

Comments (11)

Shatur avatar Shatur commented on August 17, 2024 1

Now everything is awesome, thank you!

from neogen.

danymat avatar danymat commented on August 17, 2024

@Shatur Can you try updating the plugin and checking out ?

from neogen.

Shatur avatar Shatur commented on August 17, 2024

I think you get me wrong. We shouldn't have @return for void and should have it in all other cases.

from neogen.

Shatur avatar Shatur commented on August 17, 2024

Examples:

Instead of:

    /**
     * @brief 
     *
     * @return 
     */
    void test();

We should have:

    /**
     * @brief 
     */
    void test();

from neogen.

danymat avatar danymat commented on August 17, 2024

I don't quite get it:

  • you don't want return when the return type is void ? (It was previously implemented though)
  • what else ?

from neogen.

Shatur avatar Shatur commented on August 17, 2024

you don't want return when the return type is void ? (It was previously implemented though)

Yes.
But it need it for all other return types (didn't worked before), but works now.

from neogen.

danymat avatar danymat commented on August 17, 2024

Okay so I just apply those changes ? #22 (comment)

from neogen.

Shatur avatar Shatur commented on August 17, 2024

Yes, I think so :)

from neogen.

danymat avatar danymat commented on August 17, 2024

@Shatur Can you test the last changes ?

from neogen.

Shatur avatar Shatur commented on August 17, 2024

It works, but now only for primitive types.
For example, this works as expected:

    /**
     * @brief Check translation progress
     *
     * @return `true` when the translation is still processing and has not finished or was aborted yet.
     */
    bool isRunning() const;

But this doesn't:

    /**
     * @brief 
     */
    QToolButton swapButton();

Should be like this:

    /**
     * @brief 
     *
     * @return 
     */
    QToolButton swapButton();

from neogen.

danymat avatar danymat commented on August 17, 2024

Hello @Shatur, can you try the fix provided ?

from neogen.

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.