[Lldb-commits] [PATCH] D62061: Add AST logging

2019-05-22 Thread Gabor Marton via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB361362: Add AST logging (authored by martong, committed by ). Herald added a subscriber: teemperor. Changed prior to commit: https://reviews.llvm.org/D62061?vs=200666&id=200670#toc Repository: rLL

[Lldb-commits] [PATCH] D62061: Add AST logging

2019-05-22 Thread Gabor Marton via Phabricator via lldb-commits
martong updated this revision to Diff 200666. martong added a comment. - Remove superflous '.c_str()' Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62061/new/ https://reviews.llvm.org/D62061 Files: lldb/include/lldb/Utility/Logging.h lldb/sour

[Lldb-commits] [PATCH] D62061: Add AST logging

2019-05-21 Thread Shafik Yaghmour via Phabricator via lldb-commits
shafik accepted this revision. shafik added a comment. This revision is now accepted and ready to land. LGTM outside of Jonas's comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62061/new/ https://reviews.llvm.org/D62061 __

[Lldb-commits] [PATCH] D62061: Add AST logging

2019-05-21 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: lldb/source/Symbol/ClangASTImporter.cpp:968 + from->getDeclKindName(), static_cast(to), + name_string.c_str(), static_cast(from)); + The macro uses llvm's format library, so you can o

[Lldb-commits] [PATCH] D62061: Add AST logging

2019-05-21 Thread Gabor Marton via Phabricator via lldb-commits
martong 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; JDevlieghere wrote: > Why not `if (Log* lo

[Lldb-commits] [PATCH] D62061: Add AST logging

2019-05-21 Thread Gabor Marton via Phabricator via lldb-commits
martong updated this revision to Diff 200446. martong marked 4 inline comments as done. martong added a comment. - Change to if(Log *log = ...) - Use LLDB_LOG Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62061/new/ https://reviews.llvm.org/D62061

[Lldb-commits] [PATCH] D62061: Add AST logging

2019-05-20 Thread Jonas Devlieghere via Phabricator via lldb-commits
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_pri

[Lldb-commits] [PATCH] D62061: Add AST logging

2019-05-17 Thread Gabor Marton via Phabricator via lldb-commits
martong created this revision. martong added a reviewer: shafik. Herald added subscribers: lldb-commits, gamesh411, Szelethus, dkrupp, rnkovacs. Herald added a project: LLDB. Log the AST of the TU associated with LLDB's `expr` command, once a declaration is completed Repository: rG LLVM Github