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 CPLUSPLUS_ASTPARENT_H
#define CPLUSPLUS_ASTPARENT_H
#pragma once
#include <cplusplus/ASTVisitor.h>
@@ -56,5 +55,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_ASTPARENT_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_ASTPATH_H
#define CPLUSPLUS_ASTPATH_H
#pragma once
#include <cplusplus/ASTfwd.h>
#include <cplusplus/ASTVisitor.h>
@@ -71,5 +70,3 @@ private:
};
} // namespace CppTools
#endif // CPLUSPLUS_ASTPATH_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_ALREADYCONSIDEREDCLASSCONTAINER_H
#define CPLUSPLUS_ALREADYCONSIDEREDCLASSCONTAINER_H
#pragma once
#include <cplusplus/SafeMatcher.h>
@@ -69,5 +68,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_ALREADYCONSIDEREDCLASSCONTAINER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_BACKWARDSSCANNER_H
#define CPLUSPLUS_BACKWARDSSCANNER_H
#pragma once
#include "SimpleLexer.h"
@@ -85,5 +84,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_BACKWARDSSCANNER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_CPPDOCUMENT_H
#define CPLUSPLUS_CPPDOCUMENT_H
#pragma once
#include "Macro.h"
@@ -457,5 +456,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_CPPDOCUMENT_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPPREWRITER_H
#define CPPREWRITER_H
#pragma once
#include "CppDocument.h"
#include "LookupContext.h"
@@ -110,5 +109,3 @@ CPLUSPLUS_EXPORT const Name *rewriteName(const Name *name,
Control *control);
} // namespace CPlusPlus
#endif // CPPREWRITER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_DEPENDENCYTABLE_H
#define CPLUSPLUS_DEPENDENCYTABLE_H
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
@@ -54,5 +53,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_DEPENDENCYTABLE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_DEPRECATEDGENTEMPLATEINSTANCE_H
#define CPLUSPLUS_DEPRECATEDGENTEMPLATEINSTANCE_H
#pragma once
#include <cplusplus/TypeVisitor.h>
#include <cplusplus/NameVisitor.h>
@@ -54,5 +53,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_DEPRECATEDGENTEMPLATEINSTANCE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_EXPRESSIONUNDERCURSOR_H
#define CPLUSPLUS_EXPRESSIONUNDERCURSOR_H
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <cplusplus/Token.h>
@@ -59,5 +58,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_EXPRESSIONUNDERCURSOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_FASTPREPROCESSOR_H
#define CPLUSPLUS_FASTPREPROCESSOR_H
#pragma once
#include "PreprocessorClient.h"
#include "CppDocument.h"
@@ -79,5 +78,3 @@ public:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_FASTPREPROCESSOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_FINDUSAGES_H
#define CPLUSPLUS_FINDUSAGES_H
#pragma once
#include "LookupContext.h"
#include "CppDocument.h"
@@ -304,6 +303,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_FINDUSAGES_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_ICONS_H
#define CPLUSPLUS_ICONS_H
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
@@ -101,5 +100,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_ICONS_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_LOOKUPCONTEXT_H
#define CPLUSPLUS_LOOKUPCONTEXT_H
#pragma once
#include "CppDocument.h"
#include "LookupItem.h"
@@ -349,5 +348,3 @@ bool CPLUSPLUS_EXPORT compareFullyQualifiedName(const QList<const Name *> &path,
} // namespace CPlusPlus
#endif // CPLUSPLUS_LOOKUPCONTEXT_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_LOOKUPITEM_H
#define CPLUSPLUS_LOOKUPITEM_H
#pragma once
#include <cplusplus/FullySpecifiedType.h>
@@ -80,5 +79,3 @@ uint qHash(const CPlusPlus::LookupItem &result);
//it also a workaround for some compilers
inline uint qHash(const CPlusPlus::LookupItem &item) { return CPlusPlus::qHash(item); }
#endif
#endif // CPLUSPLUS_LOOKUPITEM_H

View File

@@ -43,8 +43,7 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef CPLUSPLUS_PP_MACRO_H
#define CPLUSPLUS_PP_MACRO_H
#pragma once
#include "PPToken.h"
@@ -179,5 +178,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_PP_MACRO_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_MATCHINGTEXT_H
#define CPLUSPLUS_MATCHINGTEXT_H
#pragma once
#include <QtGlobal>
#include <cplusplus/CPlusPlusForwardDeclarations.h>
@@ -46,5 +45,3 @@ public:
};
} // namespace CPlusPlus
#endif // MATCHINGTEXT_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_NAMEPRETTYPRINTER_H
#define CPLUSPLUS_NAMEPRETTYPRINTER_H
#pragma once
#include <cplusplus/NameVisitor.h>
@@ -61,5 +60,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_NAMEPRETTYPRINTER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_OVERVIEW_H
#define CPLUSPLUS_OVERVIEW_H
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
@@ -76,5 +75,3 @@ public:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_OVERVIEW_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_OVERVIEWMODEL_H
#define CPLUSPLUS_OVERVIEWMODEL_H
#pragma once
#include "CppDocument.h"
#include "Overview.h"
@@ -77,5 +76,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_OVERVIEWMODEL_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_INTERNAL_PPTOKEN_H
#define CPLUSPLUS_INTERNAL_PPTOKEN_H
#pragma once
#include <cplusplus/CPlusPlus.h>
#include <cplusplus/Token.h>
@@ -136,5 +135,3 @@ private:
} // namespace Internal
} // namespace CPlusPlus
#endif // CPLUSPLUS_INTERNAL_PPTOKEN_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef PREPROCESSORCLIENT_H
#define PREPROCESSORCLIENT_H
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
@@ -118,5 +117,3 @@ public:
};
} // namespace CPlusPlus
#endif // PREPROCESSORCLIENT_H

View File

@@ -43,8 +43,7 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef PREPROCESSORENVIRONMENT_H
#define PREPROCESSORENVIRONMENT_H
#pragma once
#include "PPToken.h"
@@ -101,5 +100,3 @@ private:
};
} // namespace CPlusPlus
#endif // PREPROCESSORENVIRONMENT_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_RESOLVEEXPRESSION_H
#define CPLUSPLUS_RESOLVEEXPRESSION_H
#pragma once
#include "LookupContext.h"
@@ -134,5 +133,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_RESOLVEEXPRESSION_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_SIMPLELEXER_H
#define CPLUSPLUS_SIMPLELEXER_H
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <cplusplus/Token.h>
@@ -77,5 +76,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_SIMPLELEXER_H

View File

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

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_SYMBOLNAMEVISITOR_H
#define CPLUSPLUS_SYMBOLNAMEVISITOR_H
#pragma once
#include <cplusplus/NameVisitor.h>
@@ -44,5 +43,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_SYMBOLNAMEVISITOR_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_TYPEOFEXPRESSION_H
#define CPLUSPLUS_TYPEOFEXPRESSION_H
#pragma once
#include "CppDocument.h"
#include "LookupContext.h"
@@ -159,5 +158,3 @@ ExpressionAST CPLUSPLUS_EXPORT *extractExpressionAST(Document::Ptr doc);
Document::Ptr CPLUSPLUS_EXPORT documentForExpression(const QByteArray &utf8code);
} // namespace CPlusPlus
#endif // CPLUSPLUS_TYPEOFEXPRESSION_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPLUSPLUS_TYPEPRETTYPRINTER_H
#define CPLUSPLUS_TYPEPRETTYPRINTER_H
#pragma once
#include <cplusplus/TypeVisitor.h>
#include <cplusplus/FullySpecifiedType.h>
@@ -93,5 +92,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_TYPEPRETTYPRINTER_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CPPMODELMANAGERBASE_H
#define CPPMODELMANAGERBASE_H
#pragma once
#include <cplusplus/CppDocument.h>
@@ -54,5 +53,3 @@ public:
};
} // namespace CPlusPlus
#endif // CPPMODELMANAGERBASE_H

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef FINDCDBBREAKPOINT_H
#define FINDCDBBREAKPOINT_H
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <cplusplus/ASTVisitor.h>
@@ -93,5 +92,3 @@ private:
};
} // namespace CPlusPlus
#endif // FINDCDBBREAKPOINT_H

View File

@@ -43,8 +43,7 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef CPLUSPLUS_PP_CCTYPE_H
#define CPLUSPLUS_PP_CCTYPE_H
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
@@ -65,5 +64,3 @@ inline bool CPLUSPLUS_EXPORT pp_isspace (int ch)
{ return std::isspace ((unsigned char) ch) != 0; }
} // namespace CPlusPlus
#endif // CPLUSPLUS_PP_CCTYPE_H

View File

@@ -43,8 +43,7 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef CPLUSPLUS_PP_ENGINE_H
#define CPLUSPLUS_PP_ENGINE_H
#pragma once
#include "PPToken.h"
#include "PreprocessorClient.h"
@@ -262,5 +261,3 @@ private:
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_PP_ENGINE_H

View File

@@ -43,8 +43,7 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef CPLUSPLUS_PP_SCANNER_H
#define CPLUSPLUS_PP_SCANNER_H
#pragma once
namespace CPlusPlus {
@@ -118,5 +117,3 @@ struct pp_skip_argument
};
} // namespace CPlusPlus
#endif // CPLUSPLUS_PP_SCANNER_H

View File

@@ -43,13 +43,10 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef CPLUSPLUS_PREPROCESSOR_H
#define CPLUSPLUS_PREPROCESSOR_H
#pragma once
#include "Macro.h"
#include "PreprocessorClient.h"
#include "PreprocessorEnvironment.h"
#include "pp-scanner.h"
#include "pp-engine.h"
#endif // CPLUSPLUS_PREPROCESSOR_H