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

Few clangtidy fixes #343

Merged
merged 1 commit into from
May 19, 2023
Merged

Conversation

shameekganguly
Copy link
Contributor

No description provided.

Signed-off-by: Shameek Ganguly <shameekarcanesphinx@gmail.com>
@github-actions github-actions bot added the 🌱 garden Ignition Garden label May 19, 2023
@@ -220,7 +220,7 @@ namespace gz
#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

@@ -149,7 +149,7 @@ bool Generator::Generate(const FileDescriptor *_file,

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

@@ -25,8 +25,6 @@ namespace google {
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
This pull request was closed.
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