[Lldb-commits] [lldb] r355985 - Add more logging to ClangModulesDeclVendor.cpp
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 12 14:30:47 PDT 2019
Author: adrian
Date: Tue Mar 12 14:30:47 2019
New Revision: 355985
URL: http://llvm.org/viewvc/llvm-project?rev=355985&view=rev
Log:
Add more logging to ClangModulesDeclVendor.cpp
Modified:
lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp?rev=355985&r1=355984&r2=355985&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp Tue Mar 12 14:30:47 2019
@@ -624,12 +624,21 @@ ClangModulesDeclVendor::Create(Target &t
clang::CompilerInstance::createDiagnostics(new clang::DiagnosticOptions,
new StoringDiagnosticConsumer);
+ Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS));
+ if (log)
+ log->PutString("ClangModulesDeclVendor::Create()");
std::vector<const char *> compiler_invocation_argument_cstrs;
compiler_invocation_argument_cstrs.reserve(
compiler_invocation_arguments.size());
for (const std::string &arg : compiler_invocation_arguments) {
compiler_invocation_argument_cstrs.push_back(arg.c_str());
+ if (log) {
+ log->PutString("\n ");
+ log->PutString(arg);
+ }
}
+ if (log)
+ log->PutString("\n");
std::shared_ptr<clang::CompilerInvocation> invocation =
clang::createInvocationFromCommandLine(compiler_invocation_argument_cstrs,
More information about the lldb-commits
mailing list