Giter Site home page Giter Site logo

Comments (3)

erez-o avatar erez-o commented on August 20, 2024

Thanks,

Currently, brief can either be written directly using @brief, or created automatically, heuristically. The heuristic is simple - find the first '. ' (there's a space following the dot) or '.\n'.

I had to restrict the period to space and \n because there were too many false alarms without it. If I remember correctly, doxygen's JAVADOC_AUTOBRIEF doesn't.

"i.e." and "e.g." are special cases that end with a dot but the sentence continues.

The problem I see is that no matter how much the heuristic is improved, there will be false alarms and misdetections.

I currently prefer to keep the heuristic simple, but I'll leave the issue open.

I think that simply replacing "i.e." with "for example" in your code comments will do the trick without hindering comment readability.

from docsforge.

gennaroprota avatar gennaroprota commented on August 20, 2024

Thanks. "e.g." could be replaced with "for example" or "for instance", but I'm a bit hesitant to replace "i.e." with "that is", because I'm afraid that could be unclear or cause ambiguities. You could tweak the heuristic to "dot followed by space or newline but not preceded by 'i.e' or 'e.g'". Otherwise, I don't know. I'll have to invent something :-)

from docsforge.

gennaroprota avatar gennaroprota commented on August 20, 2024

Oh, I forgot to say: even when no "i.e." or "e.g." is involved, you can sometimes see a terminating period, sometimes not. For instance (and not "e.g." :-)), the documentation of the first two functions ends with a period, and the one of the third function doesn't.

from docsforge.

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.