Fix several issues in the preprocessor:
authorJohn Kessenich <cepheus@frii.com>
Sun, 10 Nov 2013 23:07:36 +0000 (23:07 +0000)
committerJohn Kessenich <cepheus@frii.com>
Sun, 10 Nov 2013 23:07:36 +0000 (23:07 +0000)
commit4d6570a1b3bfd9bb2134b9557e95306754a59afa
tree88631833242bc518ccad3feb2d16fb7d6ab34f47
parentcfe3ba5a18bc2c9f47e1873e086f49f504ee8acf
Fix several issues in the preprocessor:
 - macro expansion of hexidecimal numbers
 - give errors instead of warnings/silence on extra tokens after #endif, #else, etc.
 - give errors on reserved macro name use, reuse of argument, and redefinition with different whitespace presence
 - detect and give error for all cases of #elif and #else after #else

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23982 e7fa87d3-cd2b-0410-9028-fcbf551c1848
14 files changed:
Test/baseResults/cppComplexExpr.vert.out
Test/baseResults/cppSimple.vert.out
Test/cppComplexExpr.vert
Test/cppSimple.vert
glslang/MachineIndependent/Scan.cpp
glslang/MachineIndependent/Scan.h
glslang/MachineIndependent/ShaderLang.cpp
glslang/MachineIndependent/preprocessor/Pp.cpp
glslang/MachineIndependent/preprocessor/PpAtom.cpp
glslang/MachineIndependent/preprocessor/PpContext.cpp
glslang/MachineIndependent/preprocessor/PpContext.h
glslang/MachineIndependent/preprocessor/PpScanner.cpp
glslang/MachineIndependent/preprocessor/PpTokens.cpp
glslang/MachineIndependent/preprocessor/PpTokens.h