|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73480 - sandbox/tools/profile_templates2/src
From: dsaritz_at_[hidden]
Date: 2011-08-01 14:25:28
Author: psiha
Date: 2011-08-01 14:25:27 EDT (Mon, 01 Aug 2011)
New Revision: 73480
URL: http://svn.boost.org/trac/boost/changeset/73480
Log:
Added file headers and guards.
Moved everything to namespace boost.
Text files modified:
sandbox/tools/profile_templates2/src/filter.cpp | 35 ++++++++++++++++++++++++++---------
sandbox/tools/profile_templates2/src/filter.hpp | 29 ++++++++++++++++++++++++++++-
sandbox/tools/profile_templates2/src/postprocess.cpp | 36 +++++++++++++++++++++++++++---------
sandbox/tools/profile_templates2/src/postprocess.hpp | 29 ++++++++++++++++++++++++++++-
sandbox/tools/profile_templates2/src/preprocess.hpp | 29 ++++++++++++++++++++++++++++-
sandbox/tools/profile_templates2/src/profiler.cpp | 26 ++++++++++++++++++++++++++
6 files changed, 163 insertions(+), 21 deletions(-)
Modified: sandbox/tools/profile_templates2/src/filter.cpp
==============================================================================
--- sandbox/tools/profile_templates2/src/filter.cpp (original)
+++ sandbox/tools/profile_templates2/src/filter.cpp 2011-08-01 14:25:27 EDT (Mon, 01 Aug 2011)
@@ -1,17 +1,30 @@
-// filter.cpp
-//
-// Copyright (c) 2008-2009
-// Steven Watanabe
-//
-// Distributed under the Boost Software License, Version 1.0. (See
-// accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
+////////////////////////////////////////////////////////////////////////////////
+///
+/// filter.cpp
+/// ----------
+///
+/// Copyright (c) 2008-2009 Steven Watanabe
+/// Copyright (c) 2011 Domagoj Saric
+///
+/// Use, modification and distribution is subject to the Boost Software License, Version 1.0.
+/// (See accompanying file LICENSE_1_0.txt or copy at
+/// http://www.boost.org/LICENSE_1_0.txt)
+///
+/// For more information, see http://www.boost.org
+///
+////////////////////////////////////////////////////////////////////////////////
+//------------------------------------------------------------------------------
#undef BOOST_ENABLE_ASSERT_HANDLER
+#include "filter.hpp"
+
#include <string>
#include <cstdio>
#include <cstring>
+//------------------------------------------------------------------------------
+namespace boost
+{
+//------------------------------------------------------------------------------
const char* search("template_profiler");
@@ -136,3 +149,7 @@
#error Unknown compiler
#endif
}
+
+//------------------------------------------------------------------------------
+} // namespace boost
+//------------------------------------------------------------------------------
Modified: sandbox/tools/profile_templates2/src/filter.hpp
==============================================================================
--- sandbox/tools/profile_templates2/src/filter.hpp (original)
+++ sandbox/tools/profile_templates2/src/filter.hpp 2011-08-01 14:25:27 EDT (Mon, 01 Aug 2011)
@@ -1,3 +1,30 @@
+////////////////////////////////////////////////////////////////////////////////
+///
+/// \file filter.hpp
+/// ----------------
+///
+/// Copyright (c) 2011 Domagoj Saric
+///
+/// Use, modification and distribution is subject to the Boost Software License, Version 1.0.
+/// (See accompanying file LICENSE_1_0.txt or copy at
+/// http://www.boost.org/LICENSE_1_0.txt)
+///
+/// For more information, see http://www.boost.org
+///
+////////////////////////////////////////////////////////////////////////////////
+//------------------------------------------------------------------------------
+#ifndef filter_hpp__17451C87_D31A_43A8_B226_F0D430EB504E
+#define filter_hpp__17451C87_D31A_43A8_B226_F0D430EB504E
+#pragma once
+//------------------------------------------------------------------------------
+namespace boost
+{
+//------------------------------------------------------------------------------
void copy_call_graph();
-void copy_flat_only ();
\ No newline at end of file
+void copy_flat_only ();
+
+//------------------------------------------------------------------------------
+} // namespace boost
+//------------------------------------------------------------------------------
+#endif // filter_hpp
Modified: sandbox/tools/profile_templates2/src/postprocess.cpp
==============================================================================
--- sandbox/tools/profile_templates2/src/postprocess.cpp (original)
+++ sandbox/tools/profile_templates2/src/postprocess.cpp 2011-08-01 14:25:27 EDT (Mon, 01 Aug 2011)
@@ -1,19 +1,29 @@
-// postprocess.cpp
-//
-// Copyright (c) 2008-2009
-// Steven Watanabe
-//
-// Distributed under the Boost Software License, Version 1.0. (See
-// accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
+////////////////////////////////////////////////////////////////////////////////
+///
+/// postprocess.cpp
+/// ---------------
+///
+/// Copyright (c) 2008-2009 Steven Watanabe
+/// Copyright (c) 2011 Domagoj Saric
+///
+/// Use, modification and distribution is subject to the Boost Software License, Version 1.0.
+/// (See accompanying file LICENSE_1_0.txt or copy at
+/// http://www.boost.org/LICENSE_1_0.txt)
+///
+/// For more information, see http://www.boost.org
+///
+////////////////////////////////////////////////////////////////////////////////
+//------------------------------------------------------------------------------
#undef BOOST_ENABLE_ASSERT_HANDLER
+#include "postprocess.hpp"
+
#include <boost/regex.hpp>
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/numeric/conversion/cast.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
+
#include <string>
#include <iostream>
#include <fstream>
@@ -24,6 +34,10 @@
#include <algorithm>
#include <iomanip>
#include <vector>
+//------------------------------------------------------------------------------
+namespace boost
+{
+//------------------------------------------------------------------------------
#ifdef _MSC_VER
@@ -283,3 +297,7 @@
}
}
}
+
+//------------------------------------------------------------------------------
+} // namespace boost
+//------------------------------------------------------------------------------
Modified: sandbox/tools/profile_templates2/src/postprocess.hpp
==============================================================================
--- sandbox/tools/profile_templates2/src/postprocess.hpp (original)
+++ sandbox/tools/profile_templates2/src/postprocess.hpp 2011-08-01 14:25:27 EDT (Mon, 01 Aug 2011)
@@ -1,2 +1,29 @@
+////////////////////////////////////////////////////////////////////////////////
+///
+/// \file postprocess.hpp
+/// ---------------------
+///
+/// Copyright (c) 2011 Domagoj Saric
+///
+/// Use, modification and distribution is subject to the Boost Software License, Version 1.0.
+/// (See accompanying file LICENSE_1_0.txt or copy at
+/// http://www.boost.org/LICENSE_1_0.txt)
+///
+/// For more information, see http://www.boost.org
+///
+////////////////////////////////////////////////////////////////////////////////
+//------------------------------------------------------------------------------
+#ifndef postprocess_hpp__AE416EDF_4F51_42bF_8F69_0BCDE2E5FE8D
+#define postprocess_hpp__AE416EDF_4F51_42bF_8F69_0BCDE2E5FE8D
+#pragma once
+//------------------------------------------------------------------------------
+namespace boost
+{
+//------------------------------------------------------------------------------
-void postprocess();
\ No newline at end of file
+void postprocess();
+
+//------------------------------------------------------------------------------
+} // namespace boost
+//------------------------------------------------------------------------------
+#endif // postprocess_hpp
Modified: sandbox/tools/profile_templates2/src/preprocess.hpp
==============================================================================
--- sandbox/tools/profile_templates2/src/preprocess.hpp (original)
+++ sandbox/tools/profile_templates2/src/preprocess.hpp 2011-08-01 14:25:27 EDT (Mon, 01 Aug 2011)
@@ -1,2 +1,29 @@
+////////////////////////////////////////////////////////////////////////////////
+///
+/// \file preprocess.hpp
+/// --------------------
+///
+/// Copyright (c) 2011 Domagoj Saric
+///
+/// Use, modification and distribution is subject to the Boost Software License, Version 1.0.
+/// (See accompanying file LICENSE_1_0.txt or copy at
+/// http://www.boost.org/LICENSE_1_0.txt)
+///
+/// For more information, see http://www.boost.org
+///
+////////////////////////////////////////////////////////////////////////////////
+//------------------------------------------------------------------------------
+#ifndef preprocess_hpp__A0C9BD63_9A59_4F40_A70E_0026369C14C0
+#define preprocess_hpp__A0C9BD63_9A59_4F40_A70E_0026369C14C0
+#pragma once
+//------------------------------------------------------------------------------
+namespace boost
+{
+//------------------------------------------------------------------------------
-void preprocess( char const * const p_filename );
\ No newline at end of file
+void preprocess( char const * const p_filename );
+
+//------------------------------------------------------------------------------
+} // namespace boost
+//------------------------------------------------------------------------------
+#endif // preprocess_hpp
Modified: sandbox/tools/profile_templates2/src/profiler.cpp
==============================================================================
--- sandbox/tools/profile_templates2/src/profiler.cpp (original)
+++ sandbox/tools/profile_templates2/src/profiler.cpp 2011-08-01 14:25:27 EDT (Mon, 01 Aug 2011)
@@ -1,3 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+///
+/// profiler.cpp
+/// ------------
+///
+/// Copyright (c) 2008-2009 Steven Watanabe
+/// Copyright (c) 2011 Domagoj Saric
+///
+/// Use, modification and distribution is subject to the Boost Software License, Version 1.0.
+/// (See accompanying file LICENSE_1_0.txt or copy at
+/// http://www.boost.org/LICENSE_1_0.txt)
+///
+/// For more information, see http://www.boost.org
+///
+////////////////////////////////////////////////////////////////////////////////
+//------------------------------------------------------------------------------
+#include "profiler.hpp"
+//------------------------------------------------------------------------------
+namespace boost
+{
+//------------------------------------------------------------------------------
+
#undef BOOST_ENABLE_ASSERT_HANDLER
#include <cstdio>
@@ -48,3 +70,7 @@
return EXIT_FAILURE;
}
}
+
+//------------------------------------------------------------------------------
+} // namespace boost
+//------------------------------------------------------------------------------
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