Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

While I am at it, this patch uses const l-value references for
std::shared_ptr. We don't need to increment the reference count by
passing std::shared_ptr by value.

Identified with llvm-use-ranges.

While I am at it, this patch uses const l-value references for std::shared_ptr. We don't need to increment the reference count by passing std::shared_ptr by value. Identified with llvm-use-ranges.
@kazutakahirata kazutakahirata merged commit b296386 into llvm:main Nov 22, 2025
12 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20251122_clang_tidy_llvm-use-ranges_llvm branch November 22, 2025 23:31
aadeshps-mcw pushed a commit to aadeshps-mcw/llvm-project that referenced this pull request Nov 26, 2025
While I am at it, this patch uses const l-value references for std::shared_ptr. We don't need to increment the reference count by passing std::shared_ptr by value. Identified with llvm-use-ranges.
Priyanshu3820 pushed a commit to Priyanshu3820/llvm-project that referenced this pull request Nov 26, 2025
While I am at it, this patch uses const l-value references for std::shared_ptr. We don't need to increment the reference count by passing std::shared_ptr by value. Identified with llvm-use-ranges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants