diff options
author | rounak <rounak.modi06@gmail.com> | 2021-04-01 01:29:28 +0530 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-04-01 14:26:36 +0200 |
commit | 3b704dc06bd39593b14e0dc6b47ba4c9f7d853d0 (patch) | |
tree | 2c44a5b9a1d4db430898bc45cf4373009ee1e067 /compilerplugins | |
parent | a06f8147fe34c19da168de5d7b26615981cf055e (diff) |
tdf#124176 Use pragma once instead of include guards
Change-Id: I778393686b9a51df6437c61a814e5c62a34302de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113433
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/plugin.hxx | 5 | ||||
-rw-r--r-- | compilerplugins/clang/pluginhandler.hxx | 5 | ||||
-rw-r--r-- | compilerplugins/clang/sharedvisitor/dummyplugin.hxx | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx index 577e8998b187..156955da4b87 100644 --- a/compilerplugins/clang/plugin.hxx +++ b/compilerplugins/clang/plugin.hxx @@ -9,8 +9,7 @@ * */ -#ifndef PLUGIN_H -#define PLUGIN_H +#pragma once #include <clang/AST/ASTContext.h> #include <clang/AST/RecursiveASTVisitor.h> @@ -312,6 +311,4 @@ const Decl* getFunctionDeclContext(ASTContext& context, const Stmt* stmt); } // namespace -#endif // COMPILEPLUGIN_H - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/compilerplugins/clang/pluginhandler.hxx b/compilerplugins/clang/pluginhandler.hxx index 54ab613b3a7e..f7a399672c5d 100644 --- a/compilerplugins/clang/pluginhandler.hxx +++ b/compilerplugins/clang/pluginhandler.hxx @@ -9,8 +9,7 @@ * */ -#ifndef PLUGINHANDLER_H -#define PLUGINHANDLER_H +#pragma once #include <cstddef> #include <functional> @@ -105,6 +104,4 @@ private: } -#endif // COMPILEPLUGIN_H - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/compilerplugins/clang/sharedvisitor/dummyplugin.hxx b/compilerplugins/clang/sharedvisitor/dummyplugin.hxx index fea2786a796e..0ccc36dc86c9 100644 --- a/compilerplugins/clang/sharedvisitor/dummyplugin.hxx +++ b/compilerplugins/clang/sharedvisitor/dummyplugin.hxx @@ -9,8 +9,7 @@ * */ -#ifndef DUMMYPLUGIN_H -#define DUMMYPLUGIN_H +#pragma once #include "config_clang.h" @@ -77,6 +76,4 @@ public: } // namespace -#endif // DUMMYPLUGIN_H - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |