JDevlieghere added inline comments.
================
Comment at: lldb/source/Symbol/ClangASTImporter.cpp:956
+ Log *log_ast(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_AST));
+ if (log_ast) {
+ std::string name_string;
----------------
Why not `if (Log* log_ast =
lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_AST))`
================
Comment at: lldb/source/Symbol/ClangASTImporter.cpp:963
+ }
+ log_ast->Printf("==== [ClangASTImporter][TUDecl: %p] Imported "
+ "(%sDecl*)%p, named %s (from "
----------------
You can use the `LLDB_LOG` macro which provides a much nicer interface.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62061/new/
https://reviews.llvm.org/D62061
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits