-
Notifications
You must be signed in to change notification settings - Fork 91
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
Code style update #107
Open
khancyr
wants to merge
24
commits into
ArduPilot:main
Choose a base branch
from
khancyr:update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Code style update #107
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a693461
CmakeList: add some compile options
khancyr b76b5d8
ArduPilotPlugin.hh: remove unexisting forward declaration
khancyr ab89928
ArduPilotPlugin.hh: make class final to make clang-tidy happy
khancyr 4acd2eb
ArduPilotPlugin.hh: make destructor default and final to make clang-t…
khancyr 097e629
ArduPilotPlugin.hh: sdf::ElementPtr can be access as const reference
khancyr 00aa219
ArduPilotPlugin.cc: make Control destructor default
khancyr 1e1e837
ArduPilotPlugin.cc: fix static member access from instance
khancyr 8293db4
ArduPilotPlugin.cc: fix ranges variable shadowing
khancyr 46c5d46
ArduPilotPlugin.cc: fix fcu_frame_count implict cast
khancyr e53c3e2
ArduPilotPlugin.cc: fix unused parameter
khancyr b2c5158
ArduPilotPlugin.cc: fix implicit fallthrough
khancyr 60b979b
ArduPilotPlugin.cc: fix implicast
khancyr 2c61274
ArduPilotPlugin.cc: fix pkt_frame_count implicit cast
khancyr b5537b7
ArduPilotPlugin.cc: comment unused variables
khancyr 145bde5
ArduPilotPlugin.cc: zero init variable (clang-tidy check)
khancyr 2e2c252
GstCameraPlugin: fix unused parameter
khancyr 66bd3ee
GstCameraPlugin: correct cast and nullptr usage
khancyr 68362da
CMakeList: Correct compile flags for clang
khancyr 9f09242
ArduPilotPlugin: fix implicit conversion changes signedness: 'int' to…
khancyr 60bc962
ArduPilotPlugin: use ranged base loop
khancyr 4af5cea
ArduPilotPlugin: used lambda instead of bind
khancyr c5f1916
ArduPilotPlugin: use make_shared to create object
khancyr 8d6727e
ArduPilotPlugin: use std::move to get OnMessageWrapper callback
khancyr 551c0aa
ArduPilotPlugin: fix initial value and import
khancyr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not a problem here, but there can be some nasty side effects in shared libraries when defining virtual methods inline in headers. What happens is that each DLL using the header creates a copy of the destructor, so it is undefined which particular one gets called. Worse, a DLL unloading can destroy objects that are still supposed to be in scope. Biggest issue is with templates and base classes, but I now avoid this after being burned. Was a problem in the core Gazebo libraries for some time - now corrected.