[clang] clang serialization unittests: fix some leaks (PR #82773)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 07:17:23 PST 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 3b232f066d40a3e91ac27e421a3baeaca0cd59ec 43f8b15fa3e5465f1939d0359ff5dcfc83ed1717 -- clang/unittests/Serialization/ModuleCacheTest.cpp clang/unittests/Serialization/VarDeclConstantInitTest.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/unittests/Serialization/ModuleCacheTest.cpp b/clang/unittests/Serialization/ModuleCacheTest.cpp
index 76aeee60f5..a7ca98549b 100644
--- a/clang/unittests/Serialization/ModuleCacheTest.cpp
+++ b/clang/unittests/Serialization/ModuleCacheTest.cpp
@@ -88,9 +88,10 @@ public:
         }
     )cpp");
   }
- 
-  std::unique_ptr<CompilerInvocation> createInvocationAndEnableFree(
-      ArrayRef<const char *> Args, CreateInvocationOptions Opts) {
+
+  std::unique_ptr<CompilerInvocation>
+  createInvocationAndEnableFree(ArrayRef<const char *> Args,
+                                CreateInvocationOptions Opts) {
     std::unique_ptr<CompilerInvocation> Invocation =
         createInvocation(Args, Opts);
     if (Invocation)

``````````

</details>


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


More information about the cfe-commits mailing list