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

F clang tidy compliance #641

Merged
merged 4 commits into from
Jul 6, 2023
Merged

F clang tidy compliance #641

merged 4 commits into from
Jul 6, 2023

Conversation

Poppeldipop
Copy link
Collaborator

I have addressed some Clang-tidy warnings

  • Header Guards changed to preferred style
  • Correct include order
  • Some variables could be set to auto or const auto
  • Some functions set as override instead of virtual

Copy link
Member

@fabianbs96 fabianbs96 left a comment

Choose a reason for hiding this comment

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

Looks good to me, except minor; thanks!

Comment on lines 4 to 9
#ifndef PHASAR_UTILS_MEMORYRESOURCE_H
#if !defined(__has_include) || __has_include(<memory_resource>)
#define HAS_MEMORY_RESOURCE 1
#define PHASAR_UTILS_MEMORYRESOURCE_H 1
#include <memory_resource>
#else
#define HAS_MEMORY_RESOURCE 0
#define PHASAR_UTILS_MEMORYRESOURCE_H 0
Copy link
Member

Choose a reason for hiding this comment

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

This is no include guard. Please revert

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@fabianbs96 fabianbs96 merged commit 349656f into development Jul 6, 2023
4 checks passed
@fabianbs96 fabianbs96 deleted the f-ClangTidyCompliance branch July 6, 2023 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants