glslang-zig/glslang/MachineIndependent
Lei Zhang 5011fbebc3 Extend the syntax of #line and __FILE__ to support filename strings.
According to the GLSL spec, the second parameter to #line should be
an integer source string number and __FILE__ will be substituted
with the integer source string number currently processed. This
patch extends the syntax of #line and __FILE__. Now #line accepts
as the second parameter a filename string quoted by double quotation
marks. And if such a #line is set, __FILE__ will be substituted with
the currently set filename string. The implementation is done via
introducing a new extension GL_GOOGLE_cpp_style_line_directive using
the extension framework.

The purpose is to support cpp-style #line directives, which is
required by #include.
2015-07-27 13:07:52 -04:00
..
preprocessor Extend the syntax of #line and __FILE__ to support filename strings. 2015-07-27 13:07:52 -04:00
Constant.cpp glslang portability: Fixed a slew of OSX compilation warnings (but not all). 2015-06-10 23:23:12 +00:00
gl_types.h Second round line ending clean up, from fresh round trip. 2015-06-26 16:42:50 -06:00
glslang.y Front-end: move to rational internal array-of-array interfaces and design. (A-of-A is not yet implemented though.) 2015-07-06 21:00:03 -06:00
InfoSink.cpp Fix the few non-portable uses of "char" (where a -1 might be relevant): All uses of char are now either "int", "unsigned char" or char arrays for storing strings. Also, went to consistent "char* foo" coding convention. (There were only a few ambiguous uses.) 2014-02-18 23:37:57 +00:00
Initialize.cpp Front-end atomics: Finish adding atomic built-in functions (non-image) into the AST. 2015-07-22 19:58:15 -06:00
Initialize.h Add texture gather functions (and extension check) for GLSL 400 and GL_ARB_texture_gather. 2013-10-21 19:25:59 +00:00
Intermediate.cpp glslang: Fix over 100 warnings from MSVC warning level 4. 2015-05-15 17:30:55 +00:00
intermOut.cpp Front-end atomics: Finish adding atomic built-in functions (non-image) into the AST. 2015-07-22 19:58:15 -06:00
IntermTraverse.cpp glslang: Fix over 100 warnings from MSVC warning level 4. 2015-05-15 17:30:55 +00:00
limits.cpp Second round line ending clean up, from fresh round trip. 2015-06-26 16:42:50 -06:00
linkValidate.cpp Second round line ending clean up, from fresh round trip. 2015-06-26 16:42:50 -06:00
localintermediate.h glslang: Fix over 100 warnings from MSVC warning level 4. 2015-05-15 17:30:55 +00:00
Makefile Check in a much improved submitted set of makefiles for Linux builds. This eliminates dependencies on system headers, and generally simplifies the makefiles. 2014-02-19 01:00:58 +00:00
parseConst.cpp glslang: Fix over 100 warnings from MSVC warning level 4. 2015-05-15 17:30:55 +00:00
ParseHelper.cpp Extend the syntax of #line and __FILE__ to support filename strings. 2015-07-27 13:07:52 -04:00
ParseHelper.h Extend the syntax of #line and __FILE__ to support filename strings. 2015-07-27 13:07:52 -04:00
PoolAlloc.cpp Consolidate all token length limits (1024), including one bad one (80) hardcoded on the stack (issue #40, issue #41). 2015-07-25 14:02:53 -06:00
reflection.cpp Add .gitattributes and normalize a few stray file's line endings 2015-06-26 16:29:10 -06:00
reflection.h Fix g++ build break (portibility problems with stl hash). This partly turns off the stl improvements. 2015-07-20 02:06:22 -06:00
RemoveTree.cpp Improvement to the AST traversal infrastructure. 2014-01-11 19:29:55 +00:00
RemoveTree.h Put all glslang internals (but not the external interface) into the glslang namespace. 2013-08-29 00:39:25 +00:00
Scan.cpp Scanning: 1) rationalize end-of-input everywhere, 2) prevent infinite loop at end-of-input, 3) use positive chars. 2015-07-27 09:37:55 -06:00
Scan.h Extend the syntax of #line and __FILE__ to support filename strings. 2015-07-27 13:07:52 -04:00
ScanContext.h glslang: Fix over 100 warnings from MSVC warning level 4. 2015-05-15 17:30:55 +00:00
ShaderLang.cpp Extend the syntax of #line and __FILE__ to support filename strings. 2015-07-27 13:07:52 -04:00
SymbolTable.cpp Front-end: move to rational internal array-of-array interfaces and design. (A-of-A is not yet implemented though.) 2015-07-06 21:00:03 -06:00
SymbolTable.h Front-end: Implement GL_OES_gpu_shader5. 2015-07-15 19:42:59 -06:00
unistd.h Create a base GLSL front-end from the 3Dlabs glslang front-end from 20-Sep-2005. 2012-12-12 21:15:54 +00:00
Versions.cpp Extend the syntax of #line and __FILE__ to support filename strings. 2015-07-27 13:07:52 -04:00
Versions.h Extend the syntax of #line and __FILE__ to support filename strings. 2015-07-27 13:07:52 -04:00