summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/Broadcaster.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [lldb][NFC] Remove unused includes in Utility's source filesRaphael Isemann2019-12-131-1/+0
|
* lldb: Fix some -Wdeprecated-copy warningsPavel Labath2019-11-111-3/+0
| | | | | | | | gcc-9 started warning when a class defined a copy constructor without a copy assignment operator (or vice-versa). This fixes those warnings by deleting the other special member too (after verifying it doesn't do anything non-trivial).
* [Logging] Replace Log::Printf with LLDB_LOG macro (NFC)Jonas Devlieghere2019-07-241-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch replaces explicit calls to log::Printf with the new LLDB_LOGF macro. The macro is similar to LLDB_LOG but supports printf-style format strings, instead of formatv-style format strings. So instead of writing: if (log) log->Printf("%s\n", str); You'd write: LLDB_LOG(log, "%s\n", str); This change was done mechanically with the command below. I replaced the spurious if-checks with vim, since I know how to do multi-line replacements with it. find . -type f -name '*.cpp' -exec \ sed -i '' -E 's/log->Printf\(/LLDB_LOGF\(log, /g' "{}" + Differential revision: https://reviews.llvm.org/D65128 llvm-svn: 366936
* [Utility] Small improvements to the Broadcaster class (NFC)Jonas Devlieghere2019-05-241-47/+38
| | | | | | | | | I touched the Broadcaster class earlier today (r361544) and noticed a few things that could be improved. This patch includes variety of small fixes: use early returns, use LLDB_LOG macro, use doxygen comments and finally format the class. llvm-svn: 361597
* [Utility] Avoid a few unnecessary copies (NFC)Jonas Devlieghere2019-05-231-4/+5
| | | | | | | Avoid unnecessary copies by either passing by const-reference or moving the argument. llvm-svn: 361544
* Delete unnecessary copy ctors/copy assignment operatorsFangrui Song2019-05-151-2/+0
| | | | | | It's the simplest and gives the cleanest semantics. llvm-svn: 360762
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Move Broadcaster+Listener+Event combo from Core into UtilityPavel Labath2018-12-141-0/+479
Summary: These are general purpose "utility" classes, whose functionality is not debugger-specific in any way. As such, I believe they belong in the Utility module. This doesn't break any particular dependency (yet), but it reduces the number of Core dependencies across the board. Reviewers: zturner, jingham, teemperor, clayborg Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D55361 llvm-svn: 349157
OpenPOWER on IntegriCloud