Wholesale conversion to #pragma once

Kudos to cgmb and https://github.com/cgmb/guardonce

Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
hjk
2016-03-18 07:55:01 +01:00
parent 6b805c2172
commit 39a38d5679
2252 changed files with 2240 additions and 9056 deletions

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_ACTIVATIONSEQUENCECONTEXTPROCESSOR_H
#define CLANGCODEMODEL_INTERNAL_ACTIVATIONSEQUENCECONTEXTPROCESSOR_H
#pragma once
#include <clangcodemodel/clangcompletionassistinterface.h>
@@ -87,5 +86,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_ACTIVATIONSEQUENCECONTEXTPROCESSOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_ACTIVATIONSEQUENCEPROCESSOR_H
#define CLANGCODEMODEL_INTERNAL_ACTIVATIONSEQUENCEPROCESSOR_H
#pragma once
#include <cplusplus/Token.h>
@@ -72,5 +71,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_ACTIVATIONSEQUENCEPROCESSOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSAL_H
#define CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSAL_H
#pragma once
#include "clangassistproposalmodel.h"
@@ -44,5 +43,3 @@ public:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSAL_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSALITEM_H
#define CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSALITEM_H
#pragma once
#include <codecompletion.h>
@@ -70,5 +69,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSALITEM_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSALMODEL_H
#define CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSALMODEL_H
#pragma once
#include <cplusplus/Token.h>
@@ -51,5 +50,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGASSISTPROPOSALMODEL_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGBACKENDIPCINTEGRATION_H
#define CLANGCODEMODEL_INTERNAL_CLANGBACKENDIPCINTEGRATION_H
#pragma once
#include <cpptools/projectpart.h>
@@ -187,5 +186,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGBACKENDIPCINTEGRATION_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODELPLUGIN_H
#define CLANGCODEMODELPLUGIN_H
#pragma once
#include "clangmodelmanagersupport.h"
@@ -52,5 +51,3 @@ private:
} // namespace Internal
} // namespace Clang
#endif // CLANGCODEMODELPLUGIN_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTINTERFACE_H
#define CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTINTERFACE_H
#pragma once
#include "clangbackendipcintegration.h"
#include "clangutils.h"
@@ -63,5 +62,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTINTERFACE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTPROCESSOR_H
#define CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTPROCESSOR_H
#pragma once
#include "clangcompletionassistinterface.h"
@@ -96,5 +95,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTPROCESSOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTPROVIDER_H
#define CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTPROVIDER_H
#pragma once
#include "clangbackendipcintegration.h"
@@ -58,5 +57,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGCOMPLETIONASSISTPROVIDER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_COMPLETIONCHUNKSTOTEXTCONVERTER_H
#define CLANGCODEMODEL_INTERNAL_COMPLETIONCHUNKSTOTEXTCONVERTER_H
#pragma once
#include <clangbackendipc/codecompletionchunk.h>
@@ -106,5 +105,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_COMPLETIONCHUNKSTOTEXTCONVERTER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCOMPLETIONCONTEXTANALYZER_H
#define CLANGCOMPLETIONCONTEXTANALYZER_H
#pragma once
#include <cplusplus/Token.h>
@@ -89,5 +88,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCOMPLETIONCONTEXTANALYZER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCONSTANTS_H
#define CLANGCONSTANTS_H
#pragma once
namespace ClangCodeModel {
namespace Constants {
@@ -35,5 +34,3 @@ const char CLANG_WARNING[] = "Clang.Warning";
} // namespace Constants
} // namespace ClangCodeModel
#endif // CLANGCONSTANTS_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGDIAGNOSTICFILTER_H
#define CLANGCODEMODEL_INTERNAL_CLANGDIAGNOSTICFILTER_H
#pragma once
#include <clangbackendipc/diagnosticcontainer.h>
@@ -59,5 +58,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGDIAGNOSTICFILTER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGDIAGNOSTICMANAGER_H
#define CLANGCODEMODEL_INTERNAL_CLANGDIAGNOSTICMANAGER_H
#pragma once
#include "clangtextmark.h"
@@ -83,5 +82,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGDIAGNOSTICMANAGER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGEDITORDOCUMENTPARSER_H
#define CLANGEDITORDOCUMENTPARSER_H
#pragma once
#include <cpptools/baseeditordocumentparser.h>
@@ -42,5 +41,3 @@ private:
};
} // namespace ClangCodeModel
#endif // CLANGEDITORDOCUMENTPARSER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGEDITORDOCUMENTPROCESSOR_H
#define CLANGEDITORDOCUMENTPROCESSOR_H
#pragma once
#include "clangdiagnosticmanager.h"
#include "clangeditordocumentparser.h"
@@ -114,5 +113,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGEDITORDOCUMENTPROCESSOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_CLANGFIXITOPERATION_H
#define CLANGCODEMODEL_CLANGFIXITOPERATION_H
#pragma once
#include <texteditor/quickfix.h>
@@ -66,5 +65,3 @@ private:
};
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_CLANGFIXITOPERATION_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGFIXITOPERATIONSEXTRACTOR_H
#define CLANGFIXITOPERATIONSEXTRACTOR_H
#pragma once
#include <texteditor/quickfix.h>
@@ -52,5 +51,3 @@ private:
};
} // namespace ClangCodeModel
#endif // CLANGFIXITOPERATIONSEXTRACTOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGFUNCTIONHINTMODEL_H
#define CLANGCODEMODEL_INTERNAL_CLANGFUNCTIONHINTMODEL_H
#pragma once
#include <codecompletion.h>
@@ -50,5 +49,3 @@ private:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGFUNCTIONHINTMODEL_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_HIGHLIGHTINGMARKSREPORTER_H
#define CLANGCODEMODEL_HIGHLIGHTINGMARKSREPORTER_H
#pragma once
#include <QFutureInterface>
#include <QObject>
@@ -69,5 +68,3 @@ private:
};
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_HIGHLIGHTINGMARKSREPORTER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_INTERNAL_CLANGMODELMANAGERSUPPORT_H
#define CLANGCODEMODEL_INTERNAL_CLANGMODELMANAGERSUPPORT_H
#pragma once
#include "clangcompletionassistprovider.h"
@@ -112,5 +111,3 @@ public:
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_INTERNAL_CLANGMODELMANAGERSUPPORT_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_PREPROCESSORASSISTPROPOSALITEM_H
#define CLANGCODEMODEL_PREPROCESSORASSISTPROPOSALITEM_H
#pragma once
#include <texteditor/codeassist/assistproposaliteminterface.h>
@@ -70,5 +69,3 @@ private:
};
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_PREPROCESSORASSISTPROPOSALITEM_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODEMODEL_CLANGTEXTMARK_H
#define CLANGCODEMODEL_CLANGTEXTMARK_H
#pragma once
#include <clangbackendipc_global.h>
@@ -47,5 +46,3 @@ private:
};
} // namespace ClangCodeModel
#endif // CLANGCODEMODEL_CLANGTEXTMARK_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPPTOOLS_CLANGUTILS_H
#define CPPTOOLS_CLANGUTILS_H
#pragma once
#include <cpptools/projectpart.h>
@@ -44,5 +43,3 @@ QString projectPartIdForFile(const QString &filePath);
} // namespace Utils
} // namespace Clang
#endif // CPPTOOLS_CLANGUTILS_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGCODECOMPLETIONTEST_H
#define CLANGCODECOMPLETIONTEST_H
#pragma once
#include <QObject>
@@ -65,5 +64,3 @@ private slots:
} // namespace Tests
} // namespace Internal
} // namespace ClangCodeModel
#endif // CLANGCODECOMPLETIONTEST_H

View File

@@ -1,2 +1 @@
int globalFromHeader;

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#pragma once
#include <QMainWindow>
@@ -43,5 +42,3 @@ public:
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H