diff options
author | Matthias Braun <matze@braunis.de> | 2015-12-03 22:17:26 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-12-03 22:17:26 +0000 |
commit | e957a9bb1bbff982e2d17debf2f574f593017f5b (patch) | |
tree | bbf4653050a6e791d83e211e89feae65bb2e1890 /lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py | |
parent | bb599e3a4d105f1f2561a80d56e3d1ffb46cddb4 (diff) | |
download | bcm5719-llvm-e957a9bb1bbff982e2d17debf2f574f593017f5b.tar.gz bcm5719-llvm-e957a9bb1bbff982e2d17debf2f574f593017f5b.zip |
raw_ostream: << operator for callables with raw_stream argument
This allows easier construction of print helpers. Example:
Printable PrintLaneMask(unsigned LaneMask) {
return Printable([LaneMask](raw_ostream &OS) {
OS << format("%08X", LaneMask);
});
}
// Usage:
OS << PrintLaneMask(Mask);
Differential Revision: http://reviews.llvm.org/D14348
llvm-svn: 254655
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py')
0 files changed, 0 insertions, 0 deletions