Skip to content

Few clangtidy fixes#343

Merged
mjcarroll merged 1 commit intogazebosim:gz-msgs9from
shameekganguly:clangtidy
May 19, 2023
Merged

Few clangtidy fixes#343
mjcarroll merged 1 commit intogazebosim:gz-msgs9from
shameekganguly:clangtidy

Conversation

@shameekganguly
Copy link
Contributor

No description provided.

Signed-off-by: Shameek Ganguly <shameekarcanesphinx@gmail.com>
@shameekganguly shameekganguly requested a review from caguero as a code owner May 19, 2023 18:46
@github-actions github-actions bot added the 🌱 garden Ignition Garden label May 19, 2023
#endif // _WIN32

//////////////////////////////////////////////////
const std::string separator(const std::string &_p)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

return type 'const std::string' (aka 'const basic_string') is 'const'-qualified at the top level, which may reduce code readability without improving const correctness


auto ns = getNamespaces(_file->package());

for (auto name : ns)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

loop variable is copied but only used as const reference; consider making it a const reference

namespace protobuf {
namespace compiler {
namespace cpp {
class GeneratorContext;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

declaration 'GeneratorContext' is never referenced, but a declaration with the same name found in another namespace 'proto2::compiler'

@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

Merging #343 (5e47f29) into gz-msgs9 (a167170) will not change coverage.
The diff coverage is 50.00%.

❗ Current head 5e47f29 differs from pull request most recent head de26c6f. Consider uploading reports for the commit de26c6f to get more accurate results

@@            Coverage Diff            @@
##           gz-msgs9     #343   +/-   ##
=========================================
  Coverage     95.41%   95.41%           
=========================================
  Files            10       10           
  Lines          1026     1026           
=========================================
  Hits            979      979           
  Misses           47       47           
Impacted Files Coverage Δ
src/Filesystem.cc 93.33% <0.00%> (ø)
src/Generator.hh 100.00% <ø> (ø)
src/Utility.cc 98.96% <ø> (ø)
src/Generator.cc 92.75% <100.00%> (ø)

@mjcarroll mjcarroll merged commit 7d5ef01 into gazebosim:gz-msgs9 May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌱 garden Ignition Garden

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants