From 102845ccf6ec65f52929af81f17aabfa3b322757 Mon Sep 17 00:00:00 2001 From: wfjm Date: Sat, 6 Oct 2018 22:38:04 +0200 Subject: [PATCH] move using after includes (clang warning) --- doc/CHANGELOG.md | 1 + tools/src/librwxxtpp/RtclRw11UnitDisk.cpp | 11 ++++++----- tools/src/librwxxtpp/RtclRw11UnitStream.cpp | 9 +++++---- tools/src/librwxxtpp/RtclRw11UnitTape.cpp | 9 +++++---- tools/src/librwxxtpp/RtclRw11UnitTerm.cpp | 9 +++++---- 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 868dbed6..6deef34e 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -56,6 +56,7 @@ The full set of tests is only run for tagged releases. - fixes for uninitialized variables (coverity, all uncritical) - now -Wunused-parameter clean (comment out unused params) - now -Wunused-variable clean (comment out so far unused code) + - move `using namespace std` after includes (clang warning) - some selected clang -Weverything aspects - now -Wdocumentation clean (some wrong doxygen trailing comments) diff --git a/tools/src/librwxxtpp/RtclRw11UnitDisk.cpp b/tools/src/librwxxtpp/RtclRw11UnitDisk.cpp index d3aae092..544d4081 100644 --- a/tools/src/librwxxtpp/RtclRw11UnitDisk.cpp +++ b/tools/src/librwxxtpp/RtclRw11UnitDisk.cpp @@ -1,6 +1,6 @@ -// $Id: RtclRw11UnitDisk.cpp 983 2018-01-02 20:35:59Z mueller $ +// $Id: RtclRw11UnitDisk.cpp 1053 2018-10-06 20:34:52Z mueller $ // -// Copyright 2013-2017 by Walter F.J. Mueller +// Copyright 2013-2018 by Walter F.J. Mueller // // This program is free software; you may redistribute and/or modify it under // the terms of the GNU General Public License as published by the Free @@ -13,7 +13,8 @@ // // Revision History: // Date Rev Version Comment -// 2017-04-08 870 1.1 use Rw11UnitDisk& ObjUV(); inherit from RtclRw11Unit +// 2018-10-06 1053 1.2.1 move using after includes (clang warning) +// 2017-04-08 870 1.2 use Rw11UnitDisk& ObjUV(); inherit from RtclRw11Unit // 2015-05-14 680 1.1.1 fGets: remove enabled, now in RtclRw11UnitBase // 2015-03-21 659 1.1 fGets: add enabled // 2013-04-19 507 1.0 Initial version @@ -25,10 +26,10 @@ \brief Implemenation of RtclRw11UnitDisk. */ -using namespace std; - #include "RtclRw11UnitDisk.hpp" +using namespace std; + /*! \class Retro::RtclRw11UnitDisk \brief FIXME_docs diff --git a/tools/src/librwxxtpp/RtclRw11UnitStream.cpp b/tools/src/librwxxtpp/RtclRw11UnitStream.cpp index 3a72fb76..92c746de 100644 --- a/tools/src/librwxxtpp/RtclRw11UnitStream.cpp +++ b/tools/src/librwxxtpp/RtclRw11UnitStream.cpp @@ -1,6 +1,6 @@ -// $Id: RtclRw11UnitStream.cpp 983 2018-01-02 20:35:59Z mueller $ +// $Id: RtclRw11UnitStream.cpp 1053 2018-10-06 20:34:52Z mueller $ // -// Copyright 2013-2017 by Walter F.J. Mueller +// Copyright 2013-2018 by Walter F.J. Mueller // // This program is free software; you may redistribute and/or modify it under // the terms of the GNU General Public License as published by the Free @@ -13,6 +13,7 @@ // // Revision History: // Date Rev Version Comment +// 2018-10-06 1053 1.1.1 move using after includes (clang warning) // 2017-04-08 870 1.1 use Rw11UnitStream& ObjUV(); inh from RtclRw11Unit // 2013-05-01 513 1.0 Initial version // --------------------------------------------------------------------------- @@ -22,10 +23,10 @@ \brief Implemenation of RtclRw11UnitStream. */ -using namespace std; - #include "RtclRw11UnitStream.hpp" +using namespace std; + /*! \class Retro::RtclRw11UnitStream \brief FIXME_docs diff --git a/tools/src/librwxxtpp/RtclRw11UnitTape.cpp b/tools/src/librwxxtpp/RtclRw11UnitTape.cpp index 020386a3..e47face8 100644 --- a/tools/src/librwxxtpp/RtclRw11UnitTape.cpp +++ b/tools/src/librwxxtpp/RtclRw11UnitTape.cpp @@ -1,6 +1,6 @@ -// $Id: RtclRw11UnitTape.cpp 983 2018-01-02 20:35:59Z mueller $ +// $Id: RtclRw11UnitTape.cpp 1053 2018-10-06 20:34:52Z mueller $ // -// Copyright 2015-2017 by Walter F.J. Mueller +// Copyright 2015-2018 by Walter F.J. Mueller // // This program is free software; you may redistribute and/or modify it under // the terms of the GNU General Public License as published by the Free @@ -13,6 +13,7 @@ // // Revision History: // Date Rev Version Comment +// 2018-10-06 1053 1.1.1 move using after includes (clang warning) // 2017-04-08 870 1.1 use Rw11UnitTape& ObjUV(); inherit from RtclRw11Unit // 2015-06-04 686 1.0 Initial version // 2015-05-17 683 0.1 First draft @@ -23,10 +24,10 @@ \brief Implemenation of RtclRw11UnitTape. */ -using namespace std; - #include "RtclRw11UnitTape.hpp" +using namespace std; + /*! \class Retro::RtclRw11UnitTape \brief FIXME_docs diff --git a/tools/src/librwxxtpp/RtclRw11UnitTerm.cpp b/tools/src/librwxxtpp/RtclRw11UnitTerm.cpp index acca19df..58248e1b 100644 --- a/tools/src/librwxxtpp/RtclRw11UnitTerm.cpp +++ b/tools/src/librwxxtpp/RtclRw11UnitTerm.cpp @@ -1,6 +1,6 @@ -// $Id: RtclRw11UnitTerm.cpp 983 2018-01-02 20:35:59Z mueller $ +// $Id: RtclRw11UnitTerm.cpp 1053 2018-10-06 20:34:52Z mueller $ // -// Copyright 2013-2017 by Walter F.J. Mueller +// Copyright 2013-2018 by Walter F.J. Mueller // // This program is free software; you may redistribute and/or modify it under // the terms of the GNU General Public License as published by the Free @@ -13,6 +13,7 @@ // // Revision History: // Date Rev Version Comment +// 2018-10-06 1053 1.1.1 move using after includes (clang warning) // 2017-04-08 870 1.1 use Rw11UnitTerm& ObjUV(); inherit from RtclRw11Unit // 2013-04-26 511 1.0.1 add M_type // 2013-03-03 494 1.0 Initial version @@ -24,10 +25,10 @@ \brief Implemenation of RtclRw11UnitTerm. */ -using namespace std; - #include "RtclRw11UnitTerm.hpp" +using namespace std; + /*! \class Retro::RtclRw11UnitTerm \brief FIXME_docs