diff --git a/src/cc/analyzer.cpp b/src/cc/analyzer.cpp index ceb6b99f..ea5a72f2 100644 --- a/src/cc/analyzer.cpp +++ b/src/cc/analyzer.cpp @@ -28,7 +28,8 @@ any Analyzer::visitFunctionDefinition(CParser::FunctionDefinitionContext *ctx) { for (auto *item_ctx : itemlist_ctx->blockItem()) { - // We check for return statements here because we only want to check if this function *ends* with a return statement + // We check for return statements here because we only want to check if this function *ends* with a return + // statement if (auto *statement_ctx = item_ctx->statement()) { if (auto *jump_statement_ctx = statement_ctx->jumpStatement()) @@ -39,7 +40,7 @@ any Analyzer::visitFunctionDefinition(CParser::FunctionDefinitionContext *ctx) } } } - + visit(item_ctx); } } diff --git a/src/cc/main.cpp b/src/cc/main.cpp index 6a99a9d3..6b6f7fcf 100644 --- a/src/cc/main.cpp +++ b/src/cc/main.cpp @@ -36,12 +36,9 @@ unique_ptr parse_args(int argc, char *argv[]) .help("Keep intermediate files") .default_value(false) .implicit_value(true); - + // Dump AST - parser->add_argument("--dump-ast") - .help("Dump AST to stdout") - .default_value(false) - .implicit_value(true); + parser->add_argument("--dump-ast").help("Dump AST to stdout").default_value(false).implicit_value(true); try {