Skip to content

Apply clang-tidy suggestions to all backends #2839

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

Merged
merged 13 commits into from
Apr 15, 2020
Merged

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Apr 13, 2020

This PR adds a clang-tidy config file and applies the changes to the code. There are many changes that still need to be made but the current state is working and all backends are built with these settings. Many settings were disabled because they produced warnings that were invalid in our code base or would require changes to headers we don't control. Several bugs have been found in the course of this change. I tried to include only changes that did not change the functionality of the code. Bug fixes have been or will be submitted in other PRs.

You can run clang-tidy by passing -DCMAKE_CXX_CLANG_TIDY="clang-tidy". If you want to apply fixes you can pass -DCMAKE_CXX_CLANG_TIDY="clang-tidy;--fix" although this will make some changes in the code below which I want to investigate further.

@umar456 umar456 added this to the 3.7.2 milestone Apr 13, 2020
@umar456 umar456 force-pushed the tidy branch 2 times, most recently from 36ad79a to e266769 Compare April 14, 2020 23:12
Copy link
Member

@9prady9 9prady9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is becoming too big, we should resolve the compilation problems and get it merged it.

@9prady9 9prady9 merged commit 9404e33 into arrayfire:master Apr 15, 2020
@umar456 umar456 deleted the tidy branch June 26, 2020 18:40
umar456 added a commit to umar456/arrayfire that referenced this pull request Jun 27, 2020
* Add clang-tidy configuration file

* Cleanup some exception code

* Add additional upstream directories to .gitignore

* Remove unused parameters from wrap and transform implementations

* Fix warnings and removed unused calls
@umar456 umar456 mentioned this pull request Jun 27, 2020
2 tasks
9prady9 pushed a commit that referenced this pull request Jun 27, 2020
* Add clang-tidy configuration file

* Cleanup some exception code

* Add additional upstream directories to .gitignore

* Remove unused parameters from wrap and transform implementations

* Fix warnings and removed unused calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants