Skip to content

Fully qualify std::move invocations to fix -Wunqualified-std-cast-call - #11416

Merged
maloel merged 1 commit into
realsenseai:developmentfrom
rupprecht:clang-Wunqualified-std-cast-call
Feb 9, 2023
Merged

Fully qualify std::move invocations to fix -Wunqualified-std-cast-call#11416
maloel merged 1 commit into
realsenseai:developmentfrom
rupprecht:clang-Wunqualified-std-cast-call

Conversation

@rupprecht

Copy link
Copy Markdown
Contributor

Clang implemented a warning last year to detect bare move and forward calls, as they have the potential to be error prone: llvm/llvm-project@70b1f6d. This warning should be available in clang-15.

This warning also applies to std::forward, but the few uses of std::forward in librealsense are all fully qualified.

Verified locally by using a recent version of clang and building with -Werror=unqualified-std-cast-call.

…d-cast-call

Clang implemented a warning last year to detect bare `move` and `forward` calls, as they have the potential to be error prone: llvm/llvm-project@70b1f6d. This warning should be available in clang-15.

Verified locally by using a recent version of clang and building with `-Werror=unqualified-std-cast-call`.
@Nir-Az
Nir-Az requested a review from maloel February 9, 2023 10:55

@maloel maloel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, @rupprecht

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