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 CLANGBACKENDIPC_GLOBAL_H
#define CLANGBACKENDIPC_GLOBAL_H
#pragma once
#include <utils/sizedarray.h>
@@ -134,4 +133,3 @@ struct HighlightingTypes {
};
}
#endif // CLANGBACKENDIPC_GLOBAL_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKENDIPCDEBUGUTILS_H
#define CLANGBACKENDIPCDEBUGUTILS_H
#pragma once
#include "clangbackendipc_global.h"
@@ -52,5 +51,3 @@ private:
} // namespace ClangBackEnd
#define TIME_SCOPE_DURATION(id) ClangBackEnd::VerboseScopeDurationTimer scopeDurationTimer(id)
#endif // CLANGBACKENDIPCDEBUGUTILS_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CMBALIVEMESSAGE_H
#define CMBALIVEMESSAGE_H
#pragma once
#include "clangbackendipc_global.h"
@@ -42,5 +41,3 @@ CMBIPC_EXPORT QDebug operator<<(QDebug debug, const AliveMessage &message);
DECLARE_MESSAGE(AliveMessage)
}
#endif // CMBALIVEMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_CODECOMPLETEDMESSAGE_H
#define CLANGBACKEND_CODECOMPLETEDMESSAGE_H
#pragma once
#include "codecompletion.h"
@@ -68,5 +67,3 @@ void PrintTo(const CodeCompletedMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(CodeCompletedMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_CODECOMPLETEDMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_COMPLETECODEMESSAGE_H
#define CLANGBACKEND_COMPLETECODEMESSAGE_H
#pragma once
#include "clangbackendipc_global.h"
@@ -72,6 +71,5 @@ CMBIPC_EXPORT QDebug operator<<(QDebug debug, const CompleteCodeMessage &message
void PrintTo(const CompleteCodeMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(CompleteCodeMessage);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_COMPLETECODEMESSAGE_H
} // namespace ClangBackEnd

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_ECHOMESSAGE_H
#define CLANGBACKEND_ECHOMESSAGE_H
#pragma once
#include "clangbackendipc_global.h"
@@ -55,5 +54,3 @@ void PrintTo(const EchoMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(EchoMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_ECHOMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CMBENDMESSAGE_H
#define CMBENDMESSAGE_H
#pragma once
#include "clangbackendipc_global.h"
@@ -43,5 +42,3 @@ void PrintTo(const EndMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(EndMessage)
}
#endif // CMBENDMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_REGISTERPROJECTSFOREDITORMESSAGE_H
#define CLANGBACKEND_REGISTERPROJECTSFOREDITORMESSAGE_H
#pragma once
#include "projectpartcontainer.h"
@@ -57,5 +56,3 @@ void PrintTo(const RegisterProjectPartsForEditorMessage &message, ::std::ostream
DECLARE_MESSAGE(RegisterProjectPartsForEditorMessage);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_REGISTERPROJECTSFOREDITORMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_REGISTERFILEFOREDITOR_H
#define CLANGBACKEND_REGISTERFILEFOREDITOR_H
#pragma once
#include "filecontainer.h"
@@ -63,5 +62,3 @@ void PrintTo(const RegisterTranslationUnitForEditorMessage &message, ::std::ostr
DECLARE_MESSAGE(RegisterTranslationUnitForEditorMessage);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_REGISTERFILEFORCODECOMPLITION_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_UNREGISTERPROJECTSFOREDITOR_H
#define CLANGBACKEND_UNREGISTERPROJECTSFOREDITOR_H
#pragma once
#include "clangbackendipc_global.h"
@@ -58,5 +57,3 @@ void PrintTo(const UnregisterProjectPartsForEditorMessage &message, ::std::ostre
DECLARE_MESSAGE(UnregisterProjectPartsForEditorMessage);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_UNREGISTERPROJECTSFOREDITOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_UNRegisterTranslationUnitForEditorMessage_H
#define CLANGBACKEND_UNRegisterTranslationUnitForEditorMessage_H
#pragma once
#include "clangbackendipc_global.h"
@@ -62,5 +61,3 @@ void PrintTo(const UnregisterTranslationUnitsForEditorMessage &message, ::std::o
DECLARE_MESSAGE(UnregisterTranslationUnitsForEditorMessage);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_UNRegisterTranslationUnitForEditorMessage_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_CODECOMPLETION_H
#define CLANGBACKEND_CODECOMPLETION_H
#pragma once
#include "clangbackendipc_global.h"
#include "codecompletionchunk.h"
@@ -129,5 +128,3 @@ void PrintTo(const CodeCompletion &message, ::std::ostream* os);
void PrintTo(CodeCompletion::Kind kind, ::std::ostream *os);
void PrintTo(CodeCompletion::Availability availability, ::std::ostream *os);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_CODECOMPLETION_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_CODECOMPLETIONCHUNK_H
#define CLANGBACKEND_CODECOMPLETIONCHUNK_H
#pragma once
#include "clangbackendipc_global.h"
@@ -99,5 +98,3 @@ void PrintTo(const CodeCompletionChunk::Kind &kind, ::std::ostream* os);
} // namespace ClangBackEnd
Q_DECLARE_METATYPE(ClangBackEnd::CodeCompletionChunk)
#endif // CLANGBACKEND_CODECOMPLETIONCHUNK_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_CONNECTIONCLIENT_H
#define CLANGBACKEND_CONNECTIONCLIENT_H
#pragma once
#include "ipcserverproxy.h"
#include "lineprefixer.h"
@@ -111,5 +110,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_CONNECTIONCLIENT_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_CONNECTIONSERVER_H
#define CLANGBACKEND_CONNECTIONSERVER_H
#pragma once
#include <ipcclientproxy.h>
@@ -76,5 +75,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_CONNECTIONSERVER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_DIAGNOSTICCONTAINER_H
#define CLANGBACKEND_DIAGNOSTICCONTAINER_H
#pragma once
#include "sourcerangecontainer.h"
#include "fixitcontainer.h"
@@ -85,5 +84,3 @@ CMBIPC_EXPORT QDebug operator<<(QDebug debug, const DiagnosticContainer &contain
void PrintTo(const DiagnosticContainer &container, ::std::ostream* os);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_DIAGNOSTICCONTAINER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_DIAGNOSTICSCHANGEDMESSAGE_H
#define CLANGBACKEND_DIAGNOSTICSCHANGEDMESSAGE_H
#pragma once
#include "clangbackendipc_global.h"
#include "diagnosticcontainer.h"
@@ -64,5 +63,3 @@ void PrintTo(const DiagnosticsChangedMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(DiagnosticsChangedMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_DIAGNOSTICSCHANGEDMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_FILECONTAINER_H
#define CLANGBACKEND_FILECONTAINER_H
#pragma once
#include <clangbackendipc_global.h>
@@ -74,5 +73,3 @@ CMBIPC_EXPORT QDebug operator<<(QDebug debug, const FileContainer &container);
void PrintTo(const FileContainer &container, ::std::ostream* os);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_FILECONTAINER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_FIXITCONTAINER_H
#define CLANGBACKEND_FIXITCONTAINER_H
#pragma once
#include "sourcerangecontainer.h"
@@ -58,5 +57,3 @@ void PrintTo(const FixItContainer &container, ::std::ostream* os);
} // namespace ClangBackEnd
Q_DECLARE_METATYPE(ClangBackEnd::FixItContainer)
#endif // CLANGBACKEND_FIXITCONTAINER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_HIGHLIGHTINGCHANGEDMESSAGE_H
#define CLANGBACKEND_HIGHLIGHTINGCHANGEDMESSAGE_H
#pragma once
#include "clangbackendipc_global.h"
#include "filecontainer.h"
@@ -68,5 +67,3 @@ void PrintTo(const HighlightingChangedMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(HighlightingChangedMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_HIGHLIGHTINGCHANGEDMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_IPCCLIENTDISPATCHER_H
#define CLANGBACKEND_IPCCLIENTDISPATCHER_H
#pragma once
#include "ipcclientinterface.h"
@@ -51,5 +50,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_IPCCLIENTDISPATCHER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_IPCCLIENTINTERFACE_H
#define CLANGBACKEND_IPCCLIENTINTERFACE_H
#pragma once
#include "ipcinterface.h"
@@ -64,5 +63,3 @@ public:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_IPCCLIENTINTERFACE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CODELMODELBACKEND_IPCCLIENTPROXY_H
#define CODELMODELBACKEND_IPCCLIENTPROXY_H
#pragma once
#include "clangbackendipc_global.h"
#include "ipcclientinterface.h"
@@ -72,5 +71,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CODELMODELBACKEND_IPCCLIENTPROXY_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_IPCINTERFACE_H
#define CLANGBACKEND_IPCINTERFACE_H
#pragma once
#include "clangbackendipc_global.h"
@@ -42,5 +41,3 @@ public:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_IPCINTERFACE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_IPCSERVERINTERFACE_H
#define CLANGBACKEND_IPCSERVERINTERFACE_H
#pragma once
#include "ipcinterface.h"
@@ -62,5 +61,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_IPCSERVERINTERFACE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_IPCSERVERPROXY_H
#define CLANGBACKEND_IPCSERVERPROXY_H
#pragma once
#include "ipcserverinterface.h"
#include "readmessageblock.h"
#include "writemessageblock.h"
@@ -74,5 +73,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_IPCSERVERPROXY_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef PRINTLINESWITHPREFIX_H
#define PRINTLINESWITHPREFIX_H
#pragma once
#include <QString>
#include <QTextStream>
@@ -45,5 +44,3 @@ private:
};
} // namespace ClangBackEnd
#endif // PRINTLINESWITHPREFIX_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_MESSAGEENVELOP_H
#define CLANGBACKEND_MESSAGEENVELOP_H
#pragma once
#include "clangbackendipc_global.h"
@@ -108,5 +107,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_MESSAGEENVELOP_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_PROJECTCONTAINER_H
#define CLANGBACKEND_PROJECTCONTAINER_H
#pragma once
#include <clangbackendipc_global.h>
@@ -58,5 +57,3 @@ QDebug operator<<(QDebug debug, const ProjectPartContainer &container);
void PrintTo(const ProjectPartContainer &container, ::std::ostream* os);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_PROJECTCONTAINER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_PROJECTPARTSDONOTEXISTMESSAGE_H
#define CLANGBACKEND_PROJECTPARTSDONOTEXISTMESSAGE_H
#pragma once
#include "clangbackendipc_global.h"
@@ -58,5 +57,3 @@ void PrintTo(const ProjectPartsDoNotExistMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(ProjectPartsDoNotExistMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_PROJECTPARTSDONOTEXISTMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_READMESSAGEBLOCK_H
#define CLANGBACKEND_READMESSAGEBLOCK_H
#pragma once
#include <QtGlobal>
@@ -58,5 +57,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_READMESSAGEBLOCK_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_REGISTERUNSAVEDFILESFOREDITORMESSAGE_H
#define CLANGBACKEND_REGISTERUNSAVEDFILESFOREDITORMESSAGE_H
#pragma once
#include "filecontainer.h"
@@ -57,5 +56,3 @@ void PrintTo(const RegisterUnsavedFilesForEditorMessage &message, ::std::ostream
DECLARE_MESSAGE(RegisterUnsavedFilesForEditorMessage);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_REGISTERUNSAVEDFILESFOREDITORMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_REQUESTDIAGNOSTICSMESSAGE_H
#define CLANGBACKEND_REQUESTDIAGNOSTICSMESSAGE_H
#pragma once
#include "filecontainer.h"
@@ -57,5 +56,3 @@ void PrintTo(const RequestDiagnosticsMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(RequestDiagnosticsMessage);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_REQUESTDIAGNOSTICSMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_REQUESTHIGHLIGHTING_H
#define CLANGBACKEND_REQUESTHIGHLIGHTING_H
#pragma once
#include "filecontainer.h"
@@ -57,5 +56,3 @@ void PrintTo(const RequestHighlightingMessage &message, ::std::ostream* os);
DECLARE_MESSAGE(RequestHighlightingMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_REQUESTHIGHLIGHTING_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_SOURCELOCATIONCONTAINER_H
#define CLANGBACKEND_SOURCELOCATIONCONTAINER_H
#pragma once
#include <clangbackendipc_global.h>
@@ -63,5 +62,3 @@ CMBIPC_EXPORT QDebug operator<<(QDebug debug, const SourceLocationContainer &con
void PrintTo(const SourceLocationContainer &container, ::std::ostream* os);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_SOURCELOCATIONCONTAINER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_SOURCERANGECONTAINER_H
#define CLANGBACKEND_SOURCERANGECONTAINER_H
#pragma once
#include "sourcelocationcontainer.h"
@@ -57,5 +56,3 @@ CMBIPC_EXPORT QDebug operator<<(QDebug debug, const SourceRangeContainer &contai
void PrintTo(const SourceRangeContainer &container, ::std::ostream* os);
} // namespace ClangBackEnd
#endif // CLANGBACKEND_SOURCERANGECONTAINER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_TRANSLATIONUNITDOESNOTEXISTSMESSAGE_H
#define CLANGBACKEND_TRANSLATIONUNITDOESNOTEXISTSMESSAGE_H
#pragma once
#include "filecontainer.h"
@@ -59,5 +58,3 @@ void PrintTo(const TranslationUnitDoesNotExistMessage &message, ::std::ostream*
DECLARE_MESSAGE(TranslationUnitDoesNotExistMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_TRANSLATIONUNITDOESNOTEXISTSMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_UNREGISTERTRANSLATIONUNITSFOREDITORMESSAGE_H
#define CLANGBACKEND_UNREGISTERTRANSLATIONUNITSFOREDITORMESSAGE_H
#pragma once
#include "filecontainer.h"
@@ -57,5 +56,3 @@ void PrintTo(const UnregisterUnsavedFilesForEditorMessage &message, ::std::ostre
DECLARE_MESSAGE(UnregisterUnsavedFilesForEditorMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_UNREGISTERTRANSLATIONUNITSFOREDITORMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_UPDATEFILEFOREDITOR_H
#define CLANGBACKEND_UPDATEFILEFOREDITOR_H
#pragma once
#include "filecontainer.h"
@@ -57,5 +56,3 @@ void PrintTo(const UpdateTranslationUnitsForEditorMessage &message, ::std::ostre
DECLARE_MESSAGE(UpdateTranslationUnitsForEditorMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_UPDATEFILEFOREDITOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_UPDATEVISIBLETRANSLATIONUNITSMESSAGE_H
#define CLANGBACKEND_UPDATEVISIBLETRANSLATIONUNITSMESSAGE_H
#pragma once
#include <clangbackendipc_global.h>
@@ -59,5 +58,3 @@ void PrintTo(const UpdateVisibleTranslationUnitsMessage &message, ::std::ostream
DECLARE_MESSAGE(UpdateVisibleTranslationUnitsMessage)
} // namespace ClangBackEnd
#endif // CLANGBACKEND_UPDATEVISIBLETRANSLATIONUNITSMESSAGE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLANGBACKEND_WRITEMESSAGEBLOCK_H
#define CLANGBACKEND_WRITEMESSAGEBLOCK_H
#pragma once
#include <QtGlobal>
@@ -55,5 +54,3 @@ private:
};
} // namespace ClangBackEnd
#endif // CLANGBACKEND_WRITEMESSAGEBLOCK_H