Commit dd3d13bc authored by jan.koester's avatar jan.koester
Browse files

fixed warnings

parent 27668684
Loading
Loading
Loading
Loading
+9 −1
Changes for parser.cpp: 9 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -434,9 +434,17 @@ void Parser::process_line(const std::string& line, Makefile& mf, Rule*& current_
    if (line[0] == '\t') {
        if (current_rule) {
            current_rule->recipes.push_back(line.substr(1));
        }
            return;
        }
        // No active rule: GNU make does NOT treat a tab-indented line as a
        // recipe here. The leading tab is just whitespace and the line is
        // parsed as an ordinary makefile statement (commonly a variable
        // assignment). Kbuild relies on this, e.g.:
        //   quiet_cmd_bflags = GEN  $@
        //   \tcmd_bflags = sed ... $< > $@
        // where cmd_bflags is tab-indented yet must be defined. Fall through
        // to normal parsing (trim() below removes the leading tab).
    }

    // Strip inline comments (respecting $() nesting)
    std::string processed = line;