Convert to pragma once

This commit is contained in:
Jack Andersen 2018-10-06 17:38:44 -10:00
parent 0c3dece31d
commit d1f0450401
37 changed files with 37 additions and 107 deletions

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_BASE
#define CTOOL_BASE
#pragma once
#include <string>
#include <vector>
@ -274,4 +273,3 @@ static hecl::SystemString MakePathArgAbsolute(const hecl::SystemString& arg,
#endif
}
#endif // CTOOL_BASE

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_COOK
#define CTOOL_COOK
#pragma once
#include "ToolBase.hpp"
#include <cstdio>
@ -180,4 +179,3 @@ public:
}
};
#endif // CTOOL_COOK

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_EXTRACT
#define CTOOL_EXTRACT
#pragma once
#include "ToolBase.hpp"
#include <cstdio>
@ -184,4 +183,3 @@ public:
}
};
#endif // CTOOL_EXTRACT

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_HELP
#define CTOOL_HELP
#pragma once
#include "ToolBase.hpp"
#include <cstdio>
@ -91,4 +90,3 @@ public:
}
};
#endif // CTOOL_HELP

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_IMAGE
#define CTOOL_IMAGE
#pragma once
#if HECL_HAS_NOD
@ -156,4 +155,3 @@ public:
#endif
#endif // CTOOL_IMAGE

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_INIT
#define CTOOL_INIT
#pragma once
#include "ToolBase.hpp"
#include <cstdio>
@ -85,4 +84,3 @@ public:
hecl::SystemString toolName() const {return _S("init");}
};
#endif // CTOOL_INIT

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_PACKAGE
#define CTOOL_PACKAGE
#pragma once
#include <vector>
#include <string>
@ -215,4 +214,3 @@ public:
}
};
#endif // CTOOL_PACKAGE

View File

@ -1,5 +1,4 @@
#ifndef CTOOL_SPEC
#define CTOOL_SPEC
#pragma once
#include "ToolBase.hpp"
#include <cstdio>
@ -155,4 +154,3 @@ public:
}
};
#endif // CTOOL_SPEC

2
hecl/extern/athena vendored

@ -1 +1 @@
Subproject commit 5f2611702d4989097a850d8a5705184392d8510c
Subproject commit 0cdfd0ad9f14599a53bb3577ef6481807191616d

2
hecl/extern/boo vendored

@ -1 +1 @@
Subproject commit 528b350626332d2c584d665b221ea437f9b0c0f6
Subproject commit bba2486c15498a307eb1c009edba09ec10a10294

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_HPP
#define HECLBACKEND_HPP
#pragma once
#include "hecl/Frontend.hpp"
@ -238,4 +237,3 @@ template <> struct hash<hecl::Backend::ShaderTag>
};
}
#endif // HECLBACKEND_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_GLSL_HPP
#define HECLBACKEND_GLSL_HPP
#pragma once
#include "ProgrammableCommon.hpp"
@ -46,4 +45,3 @@ private:
}
#endif // HECLBACKEND_GLSL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_GX_HPP
#define HECLBACKEND_GX_HPP
#pragma once
#include "Backend.hpp"
#include <athena/DNA.hpp>
@ -591,4 +590,3 @@ private:
}
#endif // HECLBACKEND_GX_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_HLSL_HPP
#define HECLBACKEND_HLSL_HPP
#pragma once
#include "ProgrammableCommon.hpp"
@ -42,4 +41,3 @@ private:
}
#endif // HECLBACKEND_HLSL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_METAL_HPP
#define HECLBACKEND_METAL_HPP
#pragma once
#include "ProgrammableCommon.hpp"
@ -44,4 +43,3 @@ private:
}
#endif // HECLBACKEND_METAL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLBACKEND_PROGCOMMON_HPP
#define HECLBACKEND_PROGCOMMON_HPP
#pragma once
#include "Backend.hpp"
#include "hecl/Runtime.hpp"
@ -136,4 +135,3 @@ private:
}
#endif // HECLBACKEND_PROGCOMMON_HPP

View File

@ -11,8 +11,7 @@
//
//===----------------------------------------------------------------------===//
#ifndef HECL_LLVM_ADT_BITVECTOR_H
#define HECL_LLVM_ADT_BITVECTOR_H
#pragma once
#include "MathExtras.hpp"
#include <algorithm>
@ -615,4 +614,3 @@ namespace std {
}
} // end namespace std
#endif // LLVM_ADT_BITVECTOR_H

View File

@ -1,5 +1,4 @@
#ifndef BLENDERCONNECTION_HPP
#define BLENDERCONNECTION_HPP
#pragma once
#if _WIN32
#ifndef WIN32_LEAN_AND_MEAN
@ -715,4 +714,3 @@ public:
}
#endif // BLENDERCONNECTION_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_BLENDERTOKEN_HPP
#define HECL_BLENDERTOKEN_HPP
#pragma once
#include <memory>
@ -24,4 +23,3 @@ public:
}
#endif // HECL_BLENDERTOKEN_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVAR_HPP
#define CVAR_HPP
#pragma once
#include <string>
#include <functional>
@ -157,5 +156,4 @@ public:
};
}
#endif // CVAR_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVARCOMMONS_HPP
#define CVARCOMMONS_HPP
#pragma once
#include "CVarManager.hpp"
@ -91,4 +90,3 @@ struct CVarCommons
}
#endif // CVARCOMMONS_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVARMANAGER_HPP
#define CVARMANAGER_HPP
#pragma once
#include <unordered_map>
#include <vector>
@ -89,4 +88,3 @@ private:
}
#endif // CVARMANAGER_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_CLIENT_PROCESS_HPP
#define HECL_CLIENT_PROCESS_HPP
#pragma once
#include "hecl.hpp"
#include "Database.hpp"
@ -118,4 +117,3 @@ public:
}
#endif // HECL_CLIENT_PROCESS_HPP

View File

@ -1,5 +1,4 @@
#ifndef __URDE_CONSOLE_HPP__
#define __URDE_CONSOLE_HPP__
#pragma once
#include <string>
#include <unordered_map>
@ -113,4 +112,3 @@ public:
};
}
#endif // __URDE_CONSOLE_HPP__

View File

@ -1,5 +1,4 @@
#ifndef HECLDATABASE_HPP
#define HECLDATABASE_HPP
#pragma once
#include <iterator>
#include <string>
@ -481,4 +480,3 @@ public:
}
}
#endif // HECLDATABASE_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_FOURCC_HPP
#define HECL_FOURCC_HPP
#pragma once
#include <cstdint>
#include <cstddef>
@ -59,4 +58,3 @@ template <> struct hash<hecl::FourCC>
};
}
#endif // HECL_FOURCC_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLFRONTEND_HPP
#define HECLFRONTEND_HPP
#pragma once
#include <string>
#include <vector>
@ -378,4 +377,3 @@ public:
}
#endif // HECLFRONTEND_HPP

View File

@ -1,5 +1,4 @@
#ifndef HMDLMETA_HPP
#define HMDLMETA_HPP
#pragma once
#include "hecl/hecl.hpp"
#include "athena/DNA.hpp"
@ -31,4 +30,3 @@ struct HMDLMeta : athena::io::DNA<athena::Big>
}
#endif // HMDLMETA_HPP

View File

@ -11,8 +11,7 @@
//
//===----------------------------------------------------------------------===//
#ifndef HECL_LLVM_SUPPORT_MATHEXTRAS_H
#define HECL_LLVM_SUPPORT_MATHEXTRAS_H
#pragma once
/// \macro LLVM_GNUC_PREREQ
/// \brief Extend the default __GNUC_PREREQ even if glibc's features.h isn't
@ -854,4 +853,3 @@ extern const float huge_valf;
} // End llvm namespace
} // End hecl namespace
#endif

View File

@ -1,5 +1,4 @@
#ifndef HECLMULTIPROGRESSPRINTER_HPP
#define HECLMULTIPROGRESSPRINTER_HPP
#pragma once
#include "hecl.hpp"
#include <thread>
@ -58,4 +57,3 @@ public:
}
#endif // HECLMULTIPROGRESSPRINTER_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECLRUNTIME_HPP
#define HECLRUNTIME_HPP
#pragma once
#include "hecl.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
@ -56,4 +55,3 @@ struct HMDLData
}
}
#endif // HECLRUNTIME_HPP

View File

@ -1,5 +1,4 @@
#ifndef _HECL_STEAMFINDER_H_
#define _HECL_STEAMFINDER_H_
#pragma once
#include "hecl/SystemChar.hpp"
@ -11,4 +10,3 @@ hecl::SystemString FindCommonSteamApp(const hecl::SystemChar* name);
}
#endif // _HECL_STEAMFINDER_H_

View File

@ -1,5 +1,4 @@
#ifndef SYSTEMCHAR_HPP
#define SYSTEMCHAR_HPP
#pragma once
#ifndef _WIN32
#include <cstdlib>
@ -62,4 +61,3 @@ typedef struct stat Sstat;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef HECL_UNIFORMBUFFERPOOL_HPP
#define HECL_UNIFORMBUFFERPOOL_HPP
#pragma once
#include <boo/boo.hpp>
#include <vector>
@ -204,4 +203,3 @@ public:
}
#endif // HECL_UNIFORMBUFFERPOOL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_VERTEXBUFFERPOOL_HPP
#define HECL_VERTEXBUFFERPOOL_HPP
#pragma once
#include <boo/boo.hpp>
#include <vector>
@ -208,4 +207,3 @@ public:
}
#endif // HECL_VERTEXBUFFERPOOL_HPP

View File

@ -1,5 +1,4 @@
#ifndef HECL_HPP
#define HECL_HPP
#pragma once
#ifndef _WIN32
#include <cstdlib>
@ -1468,4 +1467,3 @@ template <> struct hash<hecl::Hash>
};
}
#endif // HECL_HPP

View File

@ -1,5 +1,4 @@
#ifndef _HECL_WINSUPPORT_H_
#define _HECL_WINSUPPORT_H_
#pragma once
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
@ -12,4 +11,3 @@
void* memmem(const void *haystack, size_t hlen, const void *needle, size_t nlen);
int asprintf(char** buf, const char* format, ...);
#endif // _HECL_WINSUPPORT_H_