aboutsummaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2014-08-05 16:33:02 -0700
committerKenneth Graunke <[email protected]>2017-01-04 14:40:48 -0800
commit6c8762400d0d7b18250d8e1663d8812ca0811023 (patch)
treed0850e1593327bb735c12b37fddbafd613625ce3 /common.py
parent36b5f1d200bf1f24f562fd3c441c4322f2ff5029 (diff)
glcpp: Add testing for no space between macro name and replacement list
GCC's preprocessor accepts a macro definition where there is no space between the macro's identifier name and the replacementlist. (GCC does emit a "missing space" warning that we don't, but that's fine.) This is an exhaustive test that verifies that all legal GLSL characters that could possibly be interpreted as separating the macro name from the replacement list are interpreted as such. So the testing here includes all valid GLSL symbols except for: * Characters that can be part of an identifier (a-z, A-Z, 0-9, _) * Backslash, (allowed only as line continuation) * Hash, (allowed only to introduce pre-processor directive, or as part of a paste operator in a replacement list---but not as first token of replacement list) * Space characters (since the point of the testing is to have missing space) * Left parenthesis (which would indicate a function-like macro) v2 (Ken): Move to src/compiler, renumber tests. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'common.py')
0 files changed, 0 insertions, 0 deletions