[Libreoffice-commits] core.git: compilerplugins/clang

4k5h1t (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 26 17:21:21 UTC 2021


 compilerplugins/clang/store/bodynotinblock.hxx          |    5 +----
 compilerplugins/clang/store/cascadingassignop.hxx       |    5 +----
 compilerplugins/clang/store/cascadingcondop.hxx         |    5 +----
 compilerplugins/clang/store/lclstaticfix.hxx            |    5 +----
 compilerplugins/clang/store/postfixincrementfix.hxx     |    5 +----
 compilerplugins/clang/store/removeforwardstringdecl.hxx |    5 +----
 compilerplugins/clang/store/tutorial/tutorial1.hxx      |    5 +----
 compilerplugins/clang/store/tutorial/tutorial2.hxx      |    5 +----
 compilerplugins/clang/store/tutorial/tutorial3.hxx      |    5 +----
 compilerplugins/clang/unusedvariablecheck.hxx           |    5 +----
 10 files changed, 10 insertions(+), 40 deletions(-)

New commits:
commit 0bae96d56134e2cd2a6fe101fc053cea48c1e017
Author:     4k5h1t <ask160203 at gmail.com>
AuthorDate: Thu Aug 26 17:08:15 2021 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>
CommitDate: Thu Aug 26 19:20:45 2021 +0200

    tdf#143148: Use pragma once instead of include guards in compilerplugins
    
    Replace include guards with pragma once in several header files in compilerplugins
    
    Change-Id: I9cc586977dc7ade9278d93396c3efcd13acba286
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121089
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>

diff --git a/compilerplugins/clang/store/bodynotinblock.hxx b/compilerplugins/clang/store/bodynotinblock.hxx
index e5f0dc49f428..d74a4fbc169d 100644
--- a/compilerplugins/clang/store/bodynotinblock.hxx
+++ b/compilerplugins/clang/store/bodynotinblock.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef BODYNOTINBLOCK_H
-#define BODYNOTINBLOCK_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -33,6 +32,4 @@ class BodyNotInBlock
 
 } // namespace
 
-#endif // BODYNOTINBLOCK_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/store/cascadingassignop.hxx b/compilerplugins/clang/store/cascadingassignop.hxx
index 26080c004beb..147ecaad0dd2 100644
--- a/compilerplugins/clang/store/cascadingassignop.hxx
+++ b/compilerplugins/clang/store/cascadingassignop.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef CASCADINGCONDOP_H
-#define CASCADINGCONDOP_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -33,6 +32,4 @@ class CascadingAssignOp
 
 } // namespace loplugin
 
-#endif // CASCADINGCONDOP_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/store/cascadingcondop.hxx b/compilerplugins/clang/store/cascadingcondop.hxx
index f2c995064eb4..599fafd8263a 100644
--- a/compilerplugins/clang/store/cascadingcondop.hxx
+++ b/compilerplugins/clang/store/cascadingcondop.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef CASCADINGCONDOP_H
-#define CASCADINGCONDOP_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -33,6 +32,4 @@ class CascadingCondOp
 
 } // namespace loplugin
 
-#endif // CASCADINGCONDOP_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/store/lclstaticfix.hxx b/compilerplugins/clang/store/lclstaticfix.hxx
index e15420e63927..16623edcbd8c 100644
--- a/compilerplugins/clang/store/lclstaticfix.hxx
+++ b/compilerplugins/clang/store/lclstaticfix.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef LCLSTATICFIX_H
-#define LCLSTATICFIX_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -28,6 +27,4 @@ class LclStaticFix
 
 } // namespace
 
-#endif // POSTFIXINCREMENTFIX_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/store/postfixincrementfix.hxx b/compilerplugins/clang/store/postfixincrementfix.hxx
index 6cc2470e6ee7..7f496662be17 100644
--- a/compilerplugins/clang/store/postfixincrementfix.hxx
+++ b/compilerplugins/clang/store/postfixincrementfix.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef POSTFIXINCREMENTFIX_H
-#define POSTFIXINCREMENTFIX_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -33,6 +32,4 @@ class PostfixIncrementFix
 
 } // namespace
 
-#endif // POSTFIXINCREMENTFIX_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/store/removeforwardstringdecl.hxx b/compilerplugins/clang/store/removeforwardstringdecl.hxx
index ef2c3f96743f..bedd2c534359 100644
--- a/compilerplugins/clang/store/removeforwardstringdecl.hxx
+++ b/compilerplugins/clang/store/removeforwardstringdecl.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef REMOVEFORWARDSTRINGDECL_H
-#define REMOVEFORWARDSTRINGDECL_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -30,6 +29,4 @@ class RemoveForwardStringDecl
 
 } // namespace
 
-#endif // REMOVEFORWARDSTRINGDECL_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/store/tutorial/tutorial1.hxx b/compilerplugins/clang/store/tutorial/tutorial1.hxx
index a296ab2cf27b..10f73f04b2cd 100644
--- a/compilerplugins/clang/store/tutorial/tutorial1.hxx
+++ b/compilerplugins/clang/store/tutorial/tutorial1.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef TUTORIAL1_H
-#define TUTORIAL1_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -33,6 +32,4 @@ class Tutorial1
 
 } // namespace
 
-#endif // POSTFIXINCREMENTFIX_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/store/tutorial/tutorial2.hxx b/compilerplugins/clang/store/tutorial/tutorial2.hxx
index 9c1f486f80e0..9ae2de354844 100644
--- a/compilerplugins/clang/store/tutorial/tutorial2.hxx
+++ b/compilerplugins/clang/store/tutorial/tutorial2.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef TUTORIAL2_H
-#define TUTORIAL2_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -33,6 +32,4 @@ class Tutorial2
 
 } // namespace
 
-#endif // POSTFIXINCREMENTFIX_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/store/tutorial/tutorial3.hxx b/compilerplugins/clang/store/tutorial/tutorial3.hxx
index badb12904cf2..11378ef76581 100644
--- a/compilerplugins/clang/store/tutorial/tutorial3.hxx
+++ b/compilerplugins/clang/store/tutorial/tutorial3.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef TUTORIAL3_H
-#define TUTORIAL3_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -35,6 +34,4 @@ class Tutorial3
 
 } // namespace
 
-#endif // POSTFIXINCREMENTFIX_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/compilerplugins/clang/unusedvariablecheck.hxx b/compilerplugins/clang/unusedvariablecheck.hxx
index 5e8b59bdc6b0..f22162e108a6 100644
--- a/compilerplugins/clang/unusedvariablecheck.hxx
+++ b/compilerplugins/clang/unusedvariablecheck.hxx
@@ -9,8 +9,7 @@
  *
  */
 
-#ifndef UNUSEDVARIABLECHECK_H
-#define UNUSEDVARIABLECHECK_H
+#pragma once
 
 #include "plugin.hxx"
 
@@ -28,6 +27,4 @@ class UnusedVariableCheck
 
 } // namespace
 
-#endif // UNUSEDVARIABLECHECK_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list