diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-02 16:11:19 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-13 14:18:02 (GMT) |
commit | 946adadd404a160b708e96e668be9b84c949de69 (patch) | |
tree | 0dab12b9e989a076b1d347ca032d169b1ff2d027 /Source/LexerParser | |
parent | a1988e4c80a7c75f216814c5827796e976c25605 (diff) | |
download | CMake-946adadd404a160b708e96e668be9b84c949de69.zip CMake-946adadd404a160b708e96e668be9b84c949de69.tar.gz CMake-946adadd404a160b708e96e668be9b84c949de69.tar.bz2 |
cmGccDepfileReader: Rework helper code
Fix some of the semantics of the depfile, add error handling, and
refactor cmGccDepfileLexerHelper.
Diffstat (limited to 'Source/LexerParser')
-rw-r--r-- | Source/LexerParser/cmGccDepfileLexer.cxx | 2 | ||||
-rw-r--r-- | Source/LexerParser/cmGccDepfileLexer.in.l | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/LexerParser/cmGccDepfileLexer.cxx b/Source/LexerParser/cmGccDepfileLexer.cxx index a98969d..3630f4e 100644 --- a/Source/LexerParser/cmGccDepfileLexer.cxx +++ b/Source/LexerParser/cmGccDepfileLexer.cxx @@ -994,7 +994,7 @@ case 5: YY_RULE_SETUP { // A line continuation ends the current file name. - yyextra->newDependency(); + yyextra->newRuleOrDependency(); } YY_BREAK case 6: diff --git a/Source/LexerParser/cmGccDepfileLexer.in.l b/Source/LexerParser/cmGccDepfileLexer.in.l index 08f8577..c83cb75 100644 --- a/Source/LexerParser/cmGccDepfileLexer.in.l +++ b/Source/LexerParser/cmGccDepfileLexer.in.l @@ -42,7 +42,7 @@ NEWLINE \r?\n } {WSPACE}*\\{NEWLINE} { // A line continuation ends the current file name. - yyextra->newDependency(); + yyextra->newRuleOrDependency(); } {NEWLINE} { // A newline ends the current file name and the current rule. |