Front-end: Fix known crashes by early exit on error (issue #29, issue #34, issue...
authorJohn Kessenich <cepheus@frii.com>
Sat, 9 Jul 2016 20:50:57 +0000 (14:50 -0600)
committerJohn Kessenich <cepheus@frii.com>
Sat, 9 Jul 2016 20:53:11 +0000 (14:53 -0600)
commita86836ede213899dcb56f8220d5a8d40d342dfe8
treefd5f1498cea9637e843307e7739ffdd3e3db20b6
parent75b0316f6aef26729c8ea3d9055cdaf29425bf51
Front-end: Fix known crashes by early exit on error (issue #29, issue #34, issue #35).

Added -C option to request cascading errors.  By default, will exit early,
to avoid all error-recovery-based crashes.

This works by simulating end-of-file in input on first error, so no
need for exception handling, or stack unwinding, or any complex error
checking/handling to get out of the stack.
StandAlone/StandAlone.cpp
Test/runtests
glslang/MachineIndependent/ParseHelper.cpp
glslang/MachineIndependent/Scan.h
glslang/MachineIndependent/ShaderLang.cpp
glslang/Public/ShaderLang.h
gtests/Config.FromFile.cpp
gtests/Initializer.h
gtests/Link.FromFile.cpp
gtests/TestFixture.cpp
gtests/TestFixture.h