Skip to content

Conversation

@ZedThree
Copy link
Member

There's a small number left now:

include/bout/options.hxx:40:9: warning: declaration uses identifier '__OPTIONS_H__', which is a reserved identifier [bugprone-reserved-identifier]
   40 | #define __OPTIONS_H__
      |         ^~~~~~~~~~~~~
      |         OPTIONS_H_

Probably best dealt with across the whole project in one go

include/bout/options.hxx:263:13: warning: member variable 'value' has public visibility [cppcoreguidelines-non-private-member-variables-in-classes]
  263 |   ValueType value;
      |             ^
include/bout/options.hxx:280:40: warning: member variable 'attributes' has public visibility [cppcoreguidelines-non-private-member-variables-in-classes]
  280 |   std::map<std::string, AttributeType> attributes;
      |                                        ^

Fixing these would be pretty easy but would be API change

include/bout/options.hxx:335:20: warning: member 'match' of type 'const Options &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members]
  335 |     const Options& match;
      |                    ^

Not sure best fix for this, making it a pointer maybe, but then we'd get a different complaint

include/bout/options.hxx:364:3: warning: operator=() should return 'Options&' [cppcoreguidelines-c-copy-assignment-signature,misc-unconventional-assign-operator]
  364 |   T operator=(T inputvalue) {
      |   ^

Another API break, but I'm not even sure if anywhere is using the return value from assignment

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

dschwoerer
dschwoerer previously approved these changes Jan 22, 2024
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@ZedThree ZedThree merged commit e7413de into next Jan 25, 2024
@ZedThree ZedThree deleted the options-make-clang-tidy-happy branch January 25, 2024 16:55
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.

3 participants