Merge branch 'cpp-headers'

This commit is contained in:
John Kessenich 2016-08-11 10:00:57 -06:00
commit 2c6038ecf1
28 changed files with 57 additions and 70 deletions

View File

@ -34,7 +34,7 @@
#define SH_EXPORTING
#include <assert.h>
#include <cassert>
#include "InitializeDll.h"
#include "../glslang/Include/InitializeGlobals.h"

View File

@ -38,7 +38,7 @@
#include <string>
#include <vector>
#include <stdlib.h>
#include <cstdlib>
namespace spv {
@ -74,7 +74,7 @@ public:
} // namespace SPV
#if !defined (use_cpp11)
#include <stdio.h>
#include <cstdio>
namespace spv {
class spirvbin_t : public spirvbin_base_t

View File

@ -38,8 +38,8 @@
// SpvBuilder.h.
//
#include <assert.h>
#include <stdlib.h>
#include <cassert>
#include <cstdlib>
#include <unordered_set>
#include <algorithm>

View File

@ -36,9 +36,9 @@
// Disassembler for SPIR-V.
//
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <iomanip>
#include <stack>
#include <sstream>

View File

@ -33,7 +33,7 @@
//POSSIBILITY OF SUCH DAMAGE.
//
// 1) Programatically fill in instruction/operand information.
// 1) Programmatically fill in instruction/operand information.
// This can be used for disassembly, printing documentation, etc.
//
// 2) Print documentation from this parameterization.
@ -41,8 +41,8 @@
#include "doc.h"
#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>
#include <algorithm>
#ifdef AMD_EXTENSIONS

View File

@ -46,9 +46,9 @@
#include "../SPIRV/GLSL.std.450.h"
#include "../SPIRV/doc.h"
#include "../SPIRV/disassemble.h"
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include "../glslang/OSDependent/osinclude.h"

View File

@ -89,8 +89,8 @@ inline long long int atoll (const char* str)
#include <list>
#include <algorithm>
#include <string>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include "PoolAlloc.h"

View File

@ -36,7 +36,7 @@
#define _INFOSINK_INCLUDED_
#include "../Include/Common.h"
#include <math.h>
#include <cmath>
namespace glslang {

View File

@ -61,13 +61,13 @@
// class as the allocator (second) template argument.
//
#include <stddef.h>
#include <string.h>
#include <cstddef>
#include <cstring>
#include <vector>
namespace glslang {
// If we are using guard blocks, we must track each indivual
// If we are using guard blocks, we must track each individual
// allocation. If we aren't using guard blocks, these
// never get instantiated, so won't have any impact.
//

View File

@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "SPIRV99.1396"
#define GLSLANG_DATE "09-Aug-2016"
#define GLSLANG_REVISION "SPIRV99.1401"
#define GLSLANG_DATE "11-Aug-2016"

View File

@ -34,7 +34,7 @@
#include "../Include/InfoSink.h"
#include <string.h>
#include <cstring>
namespace glslang {

View File

@ -44,7 +44,7 @@
#include "SymbolTable.h"
#include "propagateNoContraction.h"
#include <float.h>
#include <cfloat>
namespace glslang {

View File

@ -39,7 +39,7 @@
#include "Scan.h"
#include "../OSDependent/osinclude.h"
#include <stdarg.h>
#include <cstdarg>
#include <algorithm>
#include "preprocessor/PpContext.h"

View File

@ -38,7 +38,7 @@
// GLSL scanning, leveraging the scanning done by the preprocessor.
//
#include <string.h>
#include <cstring>
#include <unordered_map>
#include <unordered_set>

View File

@ -41,7 +41,7 @@
// This is the platform independent interface between an OGL driver
// and the shading language compiler/linker.
//
#include <string.h>
#include <cstring>
#include <iostream>
#include <sstream>
#include <memory>

View File

@ -38,11 +38,9 @@
#include "../Include/InfoSink.h"
#ifdef _MSC_VER
#include <float.h>
#elif defined __ANDROID__ || defined __linux__ || __MINGW32__ || __MINGW64__
#include <cmath>
#include <cfloat>
#else
#include <math.h>
#include <cmath>
#endif
namespace {
@ -50,10 +48,8 @@ namespace {
bool is_positive_infinity(double x) {
#ifdef _MSC_VER
return _fpclass(x) == _FPCLASS_PINF;
#elif defined __ANDROID__ || defined __linux__ || __MINGW32__ || __MINGW64__
return std::isinf(x) && (x >= 0);
#else
return isinf(x) && (x >= 0);
return std::isinf(x) && (x >= 0);
#endif
}

View File

@ -81,12 +81,10 @@ NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _CRT_SECURE_NO_WARNINGS
#include <stdarg.h>
#include <stdio.h>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include "PpContext.h"
#include "PpTokens.h"

View File

@ -82,10 +82,9 @@ NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _CRT_SECURE_NO_WARNINGS
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include "PpContext.h"
#include "PpTokens.h"

View File

@ -76,8 +76,7 @@ TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include "PpContext.h"

View File

@ -76,10 +76,9 @@ TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\****************************************************************************/
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include "PpContext.h"

View File

@ -81,10 +81,8 @@ NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _CRT_SECURE_NO_WARNINGS
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
#include "PpContext.h"
#include "PpTokens.h"

View File

@ -79,10 +79,9 @@ NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// symbols.c
//
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include "PpContext.h"

View File

@ -85,11 +85,10 @@ NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define snprintf sprintf_s
#endif
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include "PpContext.h"
#include "PpTokens.h"

View File

@ -37,14 +37,14 @@
#define STRICT
#define VC_EXTRALEAN 1
#include <windows.h>
#include <assert.h>
#include <cassert>
#include <process.h>
#include <psapi.h>
#include <stdio.h>
#include <stdint.h>
#include <cstdio>
#include <cstdint>
//
// This file contains contains the Window-OS-specific functions
// This file contains the Window-OS-specific functions
//
#if !(defined(_WIN32) || defined(_WIN64))

View File

@ -37,7 +37,7 @@
#include "../Include/ResourceLimits.h"
#include "../MachineIndependent/Versions.h"
#include <string.h>
#include <cstring>
#ifdef _WIN32
#define C_DECL __cdecl

View File

@ -35,7 +35,7 @@
#ifndef GLSLANG_GTESTS_TEST_FIXTURE_H
#define GLSLANG_GTESTS_TEST_FIXTURE_H
#include <stdint.h>
#include <cstdint>
#include <fstream>
#include <sstream>
#include <streambuf>

View File

@ -43,7 +43,7 @@
#include "../glslang/OSDependent/osinclude.h"
#include <stdarg.h>
#include <cstdarg>
#include <algorithm>
namespace glslang {

View File

@ -38,7 +38,7 @@
// HLSL scanning, leveraging the scanning done by the preprocessor.
//
#include <string.h>
#include <cstring>
#include <unordered_map>
#include <unordered_set>