Skip to content
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

Make const usage better in function signatures #3968

Open
kunaltyagi opened this issue Apr 23, 2020 · 7 comments
Open

Make const usage better in function signatures #3968

kunaltyagi opened this issue Apr 23, 2020 · 7 comments
Labels
changelog: enhancement Meta-information for changelog generation effort: low Rough estimate of time needed to fix/implement/solve good first issue Skills/areas of expertise needed to tackle the issue kind: todo Type of issue

Comments

@kunaltyagi
Copy link
Member

kunaltyagi commented Apr 23, 2020

Context

clang-tidy has been used successfully before to make wide changes. We can use it to improve the API in the whole repo. We need discussion on the potential fix and just applying the other fixes after setting up clang-tidy.

Describe the solution you'd like

Apply the following fixes:

Another potential fix:

@kunaltyagi kunaltyagi added changelog: enhancement Meta-information for changelog generation good first issue Skills/areas of expertise needed to tackle the issue effort: low Rough estimate of time needed to fix/implement/solve kind: todo Type of issue labels Apr 23, 2020
@gnawme
Copy link
Contributor

gnawme commented Feb 10, 2021

Related: #4560

@Prayag-raj-sharma
Copy link

I would like to work on it

@mvieth
Copy link
Member

mvieth commented Sep 12, 2022

@Prayag-raj-sharma That's great! For your information: we now have a clang-tidy GitHub Action (.github/workflows/clang-tidy.yml), and the file .clang-tidy could also be relevant. You could start with const-return-type, then continue with the other checks. Please make sure your pull requests are not too large, otherwise please split them.

@Prayag-raj-sharma
Copy link

where to make changes can you elaborate, i/ have read all about clang-tidy just need to know where to make changes.

@mvieth
Copy link
Member

mvieth commented Dec 4, 2022

@Prayag-raj-sharma You would add the check to .clang-tidy (twice, once for Checks and once for WarningsAsErrors). Then you create a pull request and fix all places where the GitHub Action complains.

@sibi-venti
Copy link

is it done? or can i work on it?

@Prayag-raj-sharma
Copy link

Prayag-raj-sharma commented Nov 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: enhancement Meta-information for changelog generation effort: low Rough estimate of time needed to fix/implement/solve good first issue Skills/areas of expertise needed to tackle the issue kind: todo Type of issue
Projects
None yet
Development

No branches or pull requests

5 participants