From 0be7e83a0e942ef8152a1f9468b58c3661da7552 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Fri, 15 Feb 2019 21:04:04 +0000 Subject: [PATCH] Improve `ParserOptions.Verbose` to print compiler arguments. --- src/CppParser/Parser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index cd18f79a..94361fa6 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -247,6 +247,9 @@ void Parser::Setup() { const auto& Arg = opts->Arguments[I]; args.push_back(Arg.c_str()); + + if (opts->verbose) + printf("Compiler argument: %s\n", Arg.c_str()); } c.reset(new CompilerInstance());