summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Expand)AuthorFilesLines
2010-06-02test suite: Add expected output for every test.Carl Worth68-4/+383
2010-06-02Fix multi-line comment regular expression to handle (non) nested comments.Carl Worth1-0/+5
2010-06-01Implement comment handling in the lexer (with test).Carl Worth2-2/+17
2010-06-01Fix #if-skipping to *really* skip the skipped group.Carl Worth1-0/+5
2010-05-29Add killer test case from the C99 specification.Carl Worth1-0/+17
2010-05-29Add test and fix bugs with multiple token-pasting on the same line.Carl Worth1-0/+2
2010-05-29Fix pass-through of '=' and add a test for it.Carl Worth1-0/+1
2010-05-28Perform macro by replacing tokens in original list.take-2Carl Worth2-0/+8
2010-05-28Stop interrupting the test suite at the first failure.Carl Worth1-1/+0
2010-05-27Remove blank lines from output files before comparing.Carl Worth1-3/+4
2010-05-27Implement token pasting of integers.Carl Worth1-0/+4
2010-05-27Add placeholder tokens to support pasting with empty arguments.Carl Worth1-0/+5
2010-05-27Provide support for empty arguments in macro invocations.Carl Worth1-0/+6
2010-05-27Avoid treating an expanded comma as an argument separator.Carl Worth1-0/+4
2010-05-26Add support (and test) for an object-to-function chain with the parens in the...Carl Worth1-0/+3
2010-05-26Treat newlines as space when invoking a function-like macro invocation.Carl Worth2-1/+1
2010-05-26Implement (and test) support for macro expansion within conditional expressions.Carl Worth1-0/+34
2010-05-26Fix lexing of "defined" as an operator, not an identifier.Carl Worth1-1/+0
2010-05-26Implement #if and friends.Carl Worth3-4/+1
2010-05-26Defer test 26 until much later (to test 55).Carl Worth1-0/+0
2010-05-25Collapse multiple spaces in input down to a single space.Carl Worth1-1/+1
2010-05-25Add a test #0 to ensure that we don't do any inadvertent token pasting.Carl Worth1-0/+1
2010-05-25Implement expansion of object-like macros.Carl Worth1-4/+1
2010-05-25Make the lexer pass whitespace through (as OTHER tokens) for text lines.Carl Worth1-1/+1
2010-05-25Store parsed tokens as token list and print all text lines.Carl Worth1-2/+3
2010-05-25Starting over with the C99 grammar for the preprocessor.Carl Worth1-1/+4
2010-05-24Add test for '/', '<<', and '>>' in #if expressions.Carl Worth1-0/+16
2010-05-24Add test of bitwise operators and octal/hexadecimal literals.Carl Worth1-0/+20
2010-05-24Implement all operators specified for GLSL #if expressions (with tests).Carl Worth3-0/+60
2010-05-20Implement #if, #else, #elif, and #endif with tests.Carl Worth10-1/+71
2010-05-20Remove "unnecessary" whitespace from some tests.Carl Worth7-10/+10
2010-05-20Stop ignoring whitespace while testing.Carl Worth1-1/+1
2010-05-20Add test (and fix) for a function argument of a macro that expands with a comma.Carl Worth1-0/+3
2010-05-20Add support for commas within parenthesized groups in function arguments.Carl Worth1-0/+2
2010-05-20Avoid re-expanding a macro name that has once been rejected from expansion.Carl Worth1-0/+3
2010-05-19Like previous fix, but for object-like macros (and add a test).Carl Worth1-0/+3
2010-05-19Fix bug as in previous fix, but with multi-token argument.Carl Worth1-0/+2
2010-05-19Fix bug (and test) for an invocation using macro name as a non-macro argumentCarl Worth1-0/+2
2010-05-19Fix bug (and add tests) for a function-like macro defined as itself.Carl Worth2-0/+4
2010-05-18Add several tests where the defined value of a macro is (or looks like) a macroCarl Worth5-0/+17
2010-05-17Fix (and add test for) function-like macro invocation with newlines.Carl Worth2-1/+7
2010-05-17Fix bug (and add test) for a function-like-macro appearing as a non-macro.Carl Worth1-0/+2
2010-05-17Add test and fix bug leading to infinite recursion.Carl Worth1-0/+3
2010-05-14Don't return SPACE tokens unless strictly needed.Carl Worth1-1/+1
2010-05-14Add test with extra whitespace in macro defintions and invocations.Carl Worth1-0/+8
2010-05-14Add test invoking a macro with an argument containing (non-macro) parentheses.Carl Worth1-0/+2
2010-05-14Add test for composed invocation of function-like macros.Carl Worth1-0/+3
2010-05-14Add test for function-like macro invocations with multiple-token arguments.Carl Worth2-0/+4
2010-05-14Add test where a macro formal parameter is the same as an existing macro.Carl Worth1-0/+3
2010-05-14Add tests exercising substitution of arguments in function-like macros.Carl Worth2-0/+4