[clang-tools-extra] [clang-tidy][NFC] Use universal memory mock for smart ptrs (PR #186649)

via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 15 01:41:50 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-tools-extra

Author: Baranov Victor (vbvictor)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/186649.diff


26 Files Affected:

- (modified) clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/std/memory (+167) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/bugprone/shared-ptr-array-mismatch.cpp (+1-11) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/bugprone/unhandled-self-assignment.cpp (+1-18) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/bugprone/unique-ptr-array-mismatch.cpp (+1-22) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-return-value.cpp (+1-13) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/bugprone/use-after-move.cpp (+2-28) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/avoid-const-or-ref-data-members.cpp (+1-6) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/misc/uniqueptr-reset-release.cpp (+1-15) 
- (removed) clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/replace-auto-ptr/memory.h (-45) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/smart-ptr/shared_ptr.h (+1-33) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/smart-ptr/unique_ptr.h (+1-28) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/make-shared-header.cpp (+2-3) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-cxx11.cpp (+3-3) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-default-init.cpp (+2-4) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-header.cpp (+2-3) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-macros.cpp (+1-1) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/replace-auto-ptr.cpp (+1-1) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace.cpp (+1-6) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/modernize/use-ranges.cpp (+1-1) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/readability/ambiguous-smartptr-reset-call-custom-pointers.cpp (+2-3) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/readability/ambiguous-smartptr-reset-call.cpp (+2-3) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/readability/container-data-pointer.cpp (+1-6) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp (-8) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/readability/redundant-smartptr-get-macros.cpp (+1-11) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/readability/redundant-smartptr-get.cpp (+1-34) 
- (modified) clang-tools-extra/test/clang-tidy/checkers/readability/uniqueptr-delete-release.cpp (+3-19) 


``````````diff
upstream connect error or disconnect/reset before headers. retried and the latest reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused
``````````

</details>


https://github.com/llvm/llvm-project/pull/186649


More information about the cfe-commits mailing list