CMake: Use pragma once consistently

Change-Id: Id164dea5e7047b87c3d11c53ebd044d567129e9c
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-01-27 10:14:00 +01:00
parent a2e19ba1be
commit cfa9dd4c03
28 changed files with 28 additions and 84 deletions

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKE_GLOBAL_H #pragma once
#define CMAKE_GLOBAL_H
#include <QtGlobal> #include <QtGlobal>
@@ -34,4 +33,3 @@
# define CMAKE_EXPORT Q_DECL_IMPORT # define CMAKE_EXPORT Q_DECL_IMPORT
#endif #endif
#endif // CMAKE_GLOBAL_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEAUTOCOMPLETER_H #pragma once
#define CMAKEAUTOCOMPLETER_H
#include "cmake_global.h" #include "cmake_global.h"
@@ -49,4 +48,3 @@ public:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEAUTOCOMPLETER_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEBUILDCONFIGURATION_H #pragma once
#define CMAKEBUILDCONFIGURATION_H
#include <projectexplorer/buildconfiguration.h> #include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/abi.h> #include <projectexplorer/abi.h>
@@ -106,4 +105,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEBUILDCONFIGURATION_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEBUILDINFO_H #pragma once
#define CMAKEBUILDINFO_H
#include "cmakebuildconfiguration.h" #include "cmakebuildconfiguration.h"
@@ -63,4 +62,3 @@ public:
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEBUILDINFO_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEBUILDSETTINGSWIDGET_H #pragma once
#define CMAKEBUILDSETTINGSWIDGET_H
#include <projectexplorer/namedwidget.h> #include <projectexplorer/namedwidget.h>
@@ -54,4 +53,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEBUILDSETTINGSWIDGET_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEBUILDSTEP_H #pragma once
#define CMAKEBUILDSTEP_H
#include <projectexplorer/abstractprocessstep.h> #include <projectexplorer/abstractprocessstep.h>
@@ -154,4 +153,3 @@ public:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEBUILDSTEP_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKECBPPARSER_H #pragma once
#define CMAKECBPPARSER_H
#include "cmakeproject.h" #include "cmakeproject.h"
@@ -86,4 +85,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKECBPPARSER_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEEDITOR_H #pragma once
#define CMAKEEDITOR_H
#include <texteditor/textdocument.h> #include <texteditor/textdocument.h>
#include <texteditor/texteditor.h> #include <texteditor/texteditor.h>
@@ -59,4 +58,3 @@ public:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEEDITOR_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEFILE_H #pragma once
#define CMAKEFILE_H
#include <coreplugin/idocument.h> #include <coreplugin/idocument.h>
@@ -51,4 +50,3 @@ public:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEFILE_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEFILECOMPLETIONASSIST_H #pragma once
#define CMAKEFILECOMPLETIONASSIST_H
#include <texteditor/codeassist/completionassistprovider.h> #include <texteditor/codeassist/completionassistprovider.h>
#include <texteditor/codeassist/keywordscompletionassist.h> #include <texteditor/codeassist/keywordscompletionassist.h>
@@ -57,4 +56,3 @@ public:
} // Internal } // Internal
} // CMakeProjectManager } // CMakeProjectManager
#endif // CMAKEFILECOMPLETIONASSIST_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEINDENTER_H #pragma once
#define CMAKEINDENTER_H
#include "cmake_global.h" #include "cmake_global.h"
@@ -43,4 +42,3 @@ public:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEINDENTER_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEKITCONFIGWIDGET_H #pragma once
#define CMAKEKITCONFIGWIDGET_H
#include <projectexplorer/kitconfigwidget.h> #include <projectexplorer/kitconfigwidget.h>
@@ -74,4 +73,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEKITCONFIGWIDGET_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEKITINFORMATION_H #pragma once
#define CMAKEKITINFORMATION_H
#include "cmake_global.h" #include "cmake_global.h"
@@ -57,4 +56,3 @@ public:
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEKITINFORMATION_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKELOCATORFILTER_H #pragma once
#define CMAKELOCATORFILTER_H
#include <coreplugin/locator/ilocatorfilter.h> #include <coreplugin/locator/ilocatorfilter.h>
@@ -55,4 +54,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKELOCATORFILTER_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEOPENPROJECTWIZARD_H #pragma once
#define CMAKEOPENPROJECTWIZARD_H
#include "cmakebuildconfiguration.h" #include "cmakebuildconfiguration.h"
#include "cmakebuildinfo.h" #include "cmakebuildinfo.h"
@@ -193,4 +192,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEOPENPROJECTWIZARD_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEPARSER_H #pragma once
#define CMAKEPARSER_H
#include <projectexplorer/ioutputparser.h> #include <projectexplorer/ioutputparser.h>
#include <projectexplorer/task.h> #include <projectexplorer/task.h>
@@ -54,4 +53,3 @@ private:
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
} // namespace Internal } // namespace Internal
#endif // CMAKEPARSER_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEPRELOADCACHEKITCONFIGWIDGET_H #pragma once
#define CMAKEPRELOADCACHEKITCONFIGWIDGET_H
#include <projectexplorer/kitconfigwidget.h> #include <projectexplorer/kitconfigwidget.h>
@@ -60,4 +59,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEPRELOADCACHEKITCONFIGWIDGET_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEPRELOADCACHEKITINFORMATION_H #pragma once
#define CMAKEPRELOADCACHEKITINFORMATION_H
#include "cmake_global.h" #include "cmake_global.h"
@@ -54,4 +53,3 @@ public:
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEPRELOADCACHEKITINFORMATION_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEPROJECT_H #pragma once
#define CMAKEPROJECT_H
#include "cmake_global.h" #include "cmake_global.h"
#include "cmakeprojectnodes.h" #include "cmakeprojectnodes.h"
@@ -151,4 +150,3 @@ private:
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEPROJECT_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEPROJECTCONSTANTS_H #pragma once
#define CMAKEPROJECTCONSTANTS_H
namespace CMakeProjectManager { namespace CMakeProjectManager {
namespace Constants { namespace Constants {
@@ -52,4 +51,3 @@ const char CMAKE_SETTINGSPAGE_ID[] = "Z.CMake";
} // namespace Constants } // namespace Constants
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEPROJECTCONSTANTS_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEPROJECTMANAGER_H #pragma once
#define CMAKEPROJECTMANAGER_H
#include <projectexplorer/iprojectmanager.h> #include <projectexplorer/iprojectmanager.h>
@@ -70,4 +69,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEPROJECTMANAGER_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEPROJECTNODES_H #pragma once
#define CMAKEPROJECTNODES_H
#include <projectexplorer/projectnodes.h> #include <projectexplorer/projectnodes.h>
@@ -44,4 +43,3 @@ public:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKEPROJECTNODES_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKEPROJECTPLUGIN_H #pragma once
#define CMAKEPROJECTPLUGIN_H
#include <extensionsystem/iplugin.h> #include <extensionsystem/iplugin.h>
@@ -56,4 +55,3 @@ private slots:
} // namespace Internal } // namespace Internal
} // namespace CMakeProject } // namespace CMakeProject
#endif // CMAKEPROJECTPLUGIN_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKERUNCONFIGURATION_H #pragma once
#define CMAKERUNCONFIGURATION_H
#include <projectexplorer/runnables.h> #include <projectexplorer/runnables.h>
#include <utils/environment.h> #include <utils/environment.h>
@@ -109,4 +108,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKERUNCONFIGURATION_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKESETTINGSPAGE_H #pragma once
#define CMAKESETTINGSPAGE_H
#include <coreplugin/dialogs/ioptionspage.h> #include <coreplugin/dialogs/ioptionspage.h>
#include <utils/pathchooser.h> #include <utils/pathchooser.h>
@@ -56,4 +55,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKESETTINGSPAGE_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKETOOL_H #pragma once
#define CMAKETOOL_H
#include "cmake_global.h" #include "cmake_global.h"
@@ -109,4 +108,3 @@ private:
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKETOOL_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKETOOLMANAGER_H #pragma once
#define CMAKETOOLMANAGER_H
#include "cmake_global.h" #include "cmake_global.h"
#include "cmaketool.h" #include "cmaketool.h"
@@ -81,4 +80,3 @@ private:
} // namespace CMakeProjectManager } // namespace CMakeProjectManager
#endif // CMAKETOOLMANAGER_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef CMAKE_GENERATORINFO_H #pragma once
#define CMAKE_GENERATORINFO_H
#include "cmakeprojectmanager.h" #include "cmakeprojectmanager.h"
@@ -63,4 +62,3 @@ private:
Q_DECLARE_METATYPE(CMakeProjectManager::Internal::GeneratorInfo) Q_DECLARE_METATYPE(CMakeProjectManager::Internal::GeneratorInfo)
#endif // CMAKE_GENERATORINFO_H