forked from qt-creator/qt-creator
CMake: Use pragma once consistently
Change-Id: Id164dea5e7047b87c3d11c53ebd044d567129e9c Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKE_GLOBAL_H
|
||||
#define CMAKE_GLOBAL_H
|
||||
#pragma once
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
@@ -34,4 +33,3 @@
|
||||
# define CMAKE_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#endif // CMAKE_GLOBAL_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEAUTOCOMPLETER_H
|
||||
#define CMAKEAUTOCOMPLETER_H
|
||||
#pragma once
|
||||
|
||||
#include "cmake_global.h"
|
||||
|
||||
@@ -49,4 +48,3 @@ public:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEAUTOCOMPLETER_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEBUILDCONFIGURATION_H
|
||||
#define CMAKEBUILDCONFIGURATION_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/abi.h>
|
||||
@@ -106,4 +105,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEBUILDCONFIGURATION_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEBUILDINFO_H
|
||||
#define CMAKEBUILDINFO_H
|
||||
#pragma once
|
||||
|
||||
#include "cmakebuildconfiguration.h"
|
||||
|
||||
@@ -63,4 +62,3 @@ public:
|
||||
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEBUILDINFO_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEBUILDSETTINGSWIDGET_H
|
||||
#define CMAKEBUILDSETTINGSWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/namedwidget.h>
|
||||
|
||||
@@ -54,4 +53,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEBUILDSETTINGSWIDGET_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEBUILDSTEP_H
|
||||
#define CMAKEBUILDSTEP_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/abstractprocessstep.h>
|
||||
|
||||
@@ -154,4 +153,3 @@ public:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEBUILDSTEP_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKECBPPARSER_H
|
||||
#define CMAKECBPPARSER_H
|
||||
#pragma once
|
||||
|
||||
#include "cmakeproject.h"
|
||||
|
||||
@@ -86,4 +85,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKECBPPARSER_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEEDITOR_H
|
||||
#define CMAKEEDITOR_H
|
||||
#pragma once
|
||||
|
||||
#include <texteditor/textdocument.h>
|
||||
#include <texteditor/texteditor.h>
|
||||
@@ -59,4 +58,3 @@ public:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEEDITOR_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEFILE_H
|
||||
#define CMAKEFILE_H
|
||||
#pragma once
|
||||
|
||||
#include <coreplugin/idocument.h>
|
||||
|
||||
@@ -51,4 +50,3 @@ public:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEFILE_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEFILECOMPLETIONASSIST_H
|
||||
#define CMAKEFILECOMPLETIONASSIST_H
|
||||
#pragma once
|
||||
|
||||
#include <texteditor/codeassist/completionassistprovider.h>
|
||||
#include <texteditor/codeassist/keywordscompletionassist.h>
|
||||
@@ -57,4 +56,3 @@ public:
|
||||
} // Internal
|
||||
} // CMakeProjectManager
|
||||
|
||||
#endif // CMAKEFILECOMPLETIONASSIST_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEINDENTER_H
|
||||
#define CMAKEINDENTER_H
|
||||
#pragma once
|
||||
|
||||
#include "cmake_global.h"
|
||||
|
||||
@@ -43,4 +42,3 @@ public:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEINDENTER_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEKITCONFIGWIDGET_H
|
||||
#define CMAKEKITCONFIGWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/kitconfigwidget.h>
|
||||
|
||||
@@ -74,4 +73,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEKITCONFIGWIDGET_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEKITINFORMATION_H
|
||||
#define CMAKEKITINFORMATION_H
|
||||
#pragma once
|
||||
|
||||
#include "cmake_global.h"
|
||||
|
||||
@@ -57,4 +56,3 @@ public:
|
||||
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEKITINFORMATION_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKELOCATORFILTER_H
|
||||
#define CMAKELOCATORFILTER_H
|
||||
#pragma once
|
||||
|
||||
#include <coreplugin/locator/ilocatorfilter.h>
|
||||
|
||||
@@ -55,4 +54,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKELOCATORFILTER_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEOPENPROJECTWIZARD_H
|
||||
#define CMAKEOPENPROJECTWIZARD_H
|
||||
#pragma once
|
||||
|
||||
#include "cmakebuildconfiguration.h"
|
||||
#include "cmakebuildinfo.h"
|
||||
@@ -193,4 +192,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEOPENPROJECTWIZARD_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEPARSER_H
|
||||
#define CMAKEPARSER_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/ioutputparser.h>
|
||||
#include <projectexplorer/task.h>
|
||||
@@ -54,4 +53,3 @@ private:
|
||||
} // namespace CMakeProjectManager
|
||||
} // namespace Internal
|
||||
|
||||
#endif // CMAKEPARSER_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEPRELOADCACHEKITCONFIGWIDGET_H
|
||||
#define CMAKEPRELOADCACHEKITCONFIGWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/kitconfigwidget.h>
|
||||
|
||||
@@ -60,4 +59,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEPRELOADCACHEKITCONFIGWIDGET_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEPRELOADCACHEKITINFORMATION_H
|
||||
#define CMAKEPRELOADCACHEKITINFORMATION_H
|
||||
#pragma once
|
||||
|
||||
#include "cmake_global.h"
|
||||
|
||||
@@ -54,4 +53,3 @@ public:
|
||||
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEPRELOADCACHEKITINFORMATION_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEPROJECT_H
|
||||
#define CMAKEPROJECT_H
|
||||
#pragma once
|
||||
|
||||
#include "cmake_global.h"
|
||||
#include "cmakeprojectnodes.h"
|
||||
@@ -151,4 +150,3 @@ private:
|
||||
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEPROJECT_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEPROJECTCONSTANTS_H
|
||||
#define CMAKEPROJECTCONSTANTS_H
|
||||
#pragma once
|
||||
|
||||
namespace CMakeProjectManager {
|
||||
namespace Constants {
|
||||
@@ -52,4 +51,3 @@ const char CMAKE_SETTINGSPAGE_ID[] = "Z.CMake";
|
||||
} // namespace Constants
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEPROJECTCONSTANTS_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEPROJECTMANAGER_H
|
||||
#define CMAKEPROJECTMANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/iprojectmanager.h>
|
||||
|
||||
@@ -70,4 +69,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEPROJECTMANAGER_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEPROJECTNODES_H
|
||||
#define CMAKEPROJECTNODES_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/projectnodes.h>
|
||||
|
||||
@@ -44,4 +43,3 @@ public:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKEPROJECTNODES_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKEPROJECTPLUGIN_H
|
||||
#define CMAKEPROJECTPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
@@ -56,4 +55,3 @@ private slots:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProject
|
||||
|
||||
#endif // CMAKEPROJECTPLUGIN_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKERUNCONFIGURATION_H
|
||||
#define CMAKERUNCONFIGURATION_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/runnables.h>
|
||||
#include <utils/environment.h>
|
||||
@@ -109,4 +108,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKERUNCONFIGURATION_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKESETTINGSPAGE_H
|
||||
#define CMAKESETTINGSPAGE_H
|
||||
#pragma once
|
||||
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
#include <utils/pathchooser.h>
|
||||
@@ -56,4 +55,3 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKESETTINGSPAGE_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKETOOL_H
|
||||
#define CMAKETOOL_H
|
||||
#pragma once
|
||||
|
||||
#include "cmake_global.h"
|
||||
|
||||
@@ -109,4 +108,3 @@ private:
|
||||
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKETOOL_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKETOOLMANAGER_H
|
||||
#define CMAKETOOLMANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include "cmake_global.h"
|
||||
#include "cmaketool.h"
|
||||
@@ -81,4 +80,3 @@ private:
|
||||
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
#endif // CMAKETOOLMANAGER_H
|
||||
|
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CMAKE_GENERATORINFO_H
|
||||
#define CMAKE_GENERATORINFO_H
|
||||
#pragma once
|
||||
|
||||
#include "cmakeprojectmanager.h"
|
||||
|
||||
@@ -63,4 +62,3 @@ private:
|
||||
|
||||
Q_DECLARE_METATYPE(CMakeProjectManager::Internal::GeneratorInfo)
|
||||
|
||||
#endif // CMAKE_GENERATORINFO_H
|
||||
|
Reference in New Issue
Block a user