|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48775 - trunk/boost/test/impl
From: gennadiy.rozental_at_[hidden]
Date: 2008-09-14 15:05:06
Author: rogeeff
Date: 2008-09-14 15:05:05 EDT (Sun, 14 Sep 2008)
New Revision: 48775
URL: http://svn.boost.org/trac/boost/changeset/48775
Log:
Xcode formatting made default for __APPLE_CC__
Text files modified:
trunk/boost/test/impl/compiler_log_formatter.ipp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/boost/test/impl/compiler_log_formatter.ipp
==============================================================================
--- trunk/boost/test/impl/compiler_log_formatter.ipp (original)
+++ trunk/boost/test/impl/compiler_log_formatter.ipp 2008-09-14 15:05:05 EDT (Sun, 14 Sep 2008)
@@ -186,7 +186,13 @@
void
compiler_log_formatter::print_prefix( std::ostream& output, const_string file, std::size_t line )
{
+#ifdef __APPLE_CC__
+ // Xcode-compatible logging format, idea by Richard Dingwall at
+ // <http://richarddingwall.name/2008/06/01/using-the-boost-unit-test-framework-with-xcode-3/>.
+ output << file << ':' << line << ": ";
+#else
output << file << '(' << line << "): ";
+#endif
}
//____________________________________________________________________________//
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk