summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileLexer.in.l
Commit message (Collapse)AuthorAgeFilesLines
* cmListFileLexer: Fix leak on error before EOFBrad King2013-09-171-0/+1
| | | | | | | Teach cmListFileLexerDestroy to call cmListFileLexerSetToken with a NULL token to free the token string buffer. Without this, if an error occurs before the token cleanup happens when EOF is reached, then the token string buffer may leak.
* cmListFileLexer: Modify flex output to avoid Borland warningBrad King2013-08-081-0/+1
| | | | | | Remove the "yyscanner = NULL" assignment from the end of the yylex_destroy function because Borland warns that the value is never used.
* Warn about arguments not separated by whitespaceBrad King2013-08-081-1/+5
| | | | | | | | | | | Teach the lexer to return tokens for whitespace. Teach the parser to tolerate the space tokens where whitespace is allowed. Also teach the parser to diagnose and warn about cases of quoted arguments followed immediately by another argument. This was accidentally allowed previously, so we only warn. Update the RunCMake.Syntax test case StringNoSpace expected stderr to include the warnings.
* cmListFileLexer: Split normal and legacy unquoted argumentsBrad King2013-08-081-1/+10
| | | | | Match legacy arguments separately. Add macros to simplify and clarify matching rules.
* cmListFileLexer: Fix line number after backslash in stringBrad King2013-08-081-1/+7
| | | | | | If a line inside a string ends in a backslash count the following newline character as a line increment. Add a test covering this case to verify that subsequent line numbers are correct.
* Document removal of 'register' from flex/bison outputBrad King2013-06-281-0/+1
| | | | | | In each .l and .y input file that has instructions for manual transformation of the output to include a step to remove the 'register' storage specifier.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* COMP: Fix warnings produced by the change in include order from the ↵Brad King2006-08-091-5/+1
| | | | re-organization of lexer code.
* COMP: Moved duplicate flex-generated lexer warning suppression and ↵Brad King2006-08-081-22/+4
| | | | cross-platform support code to a single cmStandardLexer.h included by all lexer sources. Added fix for macro redefinitions on Borland 5.8 compiler.
* COMP: Fix and/or disable warnings for Borland 5.6 build.Brad King2006-08-011-0/+5
|
* BUG: When an unquoted argument contains a pair of matching double quotes ↵Brad King2005-09-191-1/+1
| | | | spaces and tabs should be allowed in-between. This allows arguments like -DFOO='"bar zot"' to work.
* BUG: Unquoted arguments can have quotes that are not at the beginning, but ↵Brad King2005-08-011-1/+1
| | | | only an even number of them.
* COMP: Defining YY_NO_INPUT to remove compilation of unused yyinput function. ↵Brad King2005-03-151-0/+1
| | | | It was producing a warning about unreachable code.
* ENH: Mangled lexer symbols to begin in cmListFileLexer_yy instead of just yy ↵Brad King2005-01-191-7/+7
| | | | to avoid conflict with other lexers that may be added.
* BUG#1179: Fix for syntax in unquoted arguments.Brad King2004-09-201-1/+3
|
* BUG#1049: Added error message when file ends in an unterminated string.Brad King2004-08-311-1/+27
|
* BUG: Fixed parsing of unquoted arguments to allow double-quotes within the ↵Brad King2004-06-181-1/+1
| | | | argument.
* ENH: Added cmListFileLexer_SetString method to allow a string to be parsed ↵Brad King2004-04-211-9/+91
| | | | as input.
* ERR: Removed YY_BREAK statements after return statements because they are ↵Brad King2003-12-091-0/+1
| | | | unreachable.
* ERR: Added missing static keyword to cmListFileLexerSetToken and ↵Brad King2003-12-091-4/+4
| | | | cmListFileLexerAppend definitions.
* ERR: Fixed comment about how to run flex to reflect new name of this file.Brad King2003-12-081-1/+1
|
* ERR: Renaming cmListFileLexer.l to cmListFileLexer.in.l to avoid make ↵Brad King2003-12-081-0/+327
programs trying to run lex automatically whn building cmListFileLexer.c.