[clang] [Clang] Prevent Copying of LateParsedClass Instances (PR #109428)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 20 07:15:17 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 57b12e8fbc9bb29ebe8f9d2a0f2c5085b38c2454 d792de91f9a01b927a274c83f0d2553ac06aa3cb --extensions h -- clang/include/clang/Parse/Parser.h
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h
index 79b08032bd..eb8a851da7 100644
--- a/clang/include/clang/Parse/Parser.h
+++ b/clang/include/clang/Parse/Parser.h
@@ -1356,8 +1356,8 @@ private:
     void ParseLexedPragmas() override;
 
     // Delete copy constructor and copy assignment operator.
-    LateParsedClass(const LateParsedClass&) = delete;
-    LateParsedClass& operator=(const LateParsedClass&) = delete;
+    LateParsedClass(const LateParsedClass &) = delete;
+    LateParsedClass &operator=(const LateParsedClass &) = delete;
 
   private:
     Parser *Self;

``````````

</details>


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


More information about the cfe-commits mailing list