[compiler-rt] [llvm] [sanitizers][NFC] delete some copy constructor and copy assignment to more comply to rule of three (PR #112844)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 23:10:02 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 3142dff70401086a14ee9ae3428f65f5dfa6a2e6 39773eb3a1e40f22bae0aeabc6a72566a0d172b4 --extensions cpp,h -- compiler-rt/lib/asan/asan_report.cpp compiler-rt/lib/asan/asan_stack.cpp compiler-rt/lib/fuzzer/FuzzerCorpus.h compiler-rt/lib/fuzzer/FuzzerFork.cpp compiler-rt/lib/fuzzer/FuzzerInternal.h compiler-rt/lib/fuzzer/FuzzerLoop.cpp compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp compiler-rt/lib/lsan/lsan_common.h compiler-rt/lib/msan/msan.cpp compiler-rt/lib/msan/msan.h compiler-rt/lib/msan/msan_interceptors.cpp compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h compiler-rt/lib/sanitizer_common/sanitizer_allocator_report.cpp compiler-rt/lib/sanitizer_common/sanitizer_common.h compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h compiler-rt/lib/sanitizer_common/sanitizer_file.h compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h compiler-rt/lib/sanitizer_common/sanitizer_ring_buffer.h compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_win.cpp compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.h compiler-rt/lib/tsan/rtl/tsan_dense_alloc.h compiler-rt/lib/tsan/rtl/tsan_interceptors.h compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp compiler-rt/lib/tsan/rtl/tsan_rtl.h compiler-rt/lib/tsan/rtl/tsan_vector_clock.h compiler-rt/lib/ubsan/ubsan_diag.h llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
index 9c5f2e2142..6025987983 100644
--- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
@@ -311,7 +311,7 @@ class CHR {
      if (CHRScope *Scope = findScopes(R, nullptr, nullptr, Output)) {
        Output.push_back(Scope);
      }
-  }
+   }
   CHRScope *findScopes(Region *R, Region *NextRegion, Region *ParentRegion,
                         SmallVectorImpl<CHRScope *> &Scopes);
   CHRScope *findScope(Region *R);

``````````

</details>


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


More information about the llvm-commits mailing list