-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: backends: Add Doxygen-style documentation for BMV2 JSONObjects #4554
Conversation
271c2e6
to
4fc6672
Compare
Yes, we have linters which enforce code style. Please take a look at the failing checks and what they report. In this case the error is: |
80e1549
to
e9bdb7d
Compare
These comments look good, but they may be excessive. We could just use simple three slash comments describing each function. To be honest we have never defined a consistent commenting style for the compiler. Ideally, we would like these comments to be consistent across the compiler. |
Hello sir, @fruffy Here is the output snippet of documentation site for the detailed commenting I made in this PR. Also, I'm open to make any changes. |
Are you sure about |
Yes sir, @fruffy If we want to use But if we want to comment to a block of code together, we use That mean, there are 2 commenting styles in c++ for different purpose. |
Yes, ideally we will use the first commenting style Although this is still something that needs to be discussed with the rest of the maintainers. |
Absolutely, I think both styles were used as per the requirement. |
I think there is a miscommunication going on, the idea is to never use p4c/control-plane/p4RuntimeSerializer.h Line 54 in 1b56be6
|
Sure sir @fruffy, |
85221b8
to
1509937
Compare
@thrilseekr Before you can merge your PR, you must sign the Contributor Licence Agreement (CLA) and add your GitHub user ID to it. Link to CLA - https://cla.opennetworking.org/ |
Thanks @AdarshRawat1 |
1509937
to
573fe00
Compare
1. Class Overview: - Provides an overview of the JsonObjects class, explaining its purpose and namespace. 2. Constructor: - Documented the constructor `JsonObjects::JsonObjects()` with a brief description of its purpose and initialization of member variables. 3. Member Functions: - Each member function of the JsonObjects class is documented with detailed descriptions. - Special attention is given to functions with complex logic or multiple parameters to ensure detailed documentation. Overall, this commit enhances the understanding of the BMV2 JSON Objects class by providing a Doxygen-style documentation.
573fe00
to
4170ec9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class Overview:
Constructor:
JsonObjects::JsonObjects()
with a brief description of its purpose and initialization of member variables.Member Functions:
Each member function of the JsonObjects class is documented with detailed descriptions.
Special attention is given to functions with complex logic or multiple parameters to ensure detailed documentation.
Overall, this commit enhances the understanding of the BMV2 JSON Objects class by providing a Doxygen-style documentation.