Skip to content

Commit

Permalink
drqs-8631397: Standardize 'namespace' opening layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreitstein committed Oct 14, 2016
1 parent 67916d3 commit 872d5f5
Show file tree
Hide file tree
Showing 67 changed files with 117 additions and 148 deletions.
4 changes: 2 additions & 2 deletions groups/bal/ball/ball_attributecontainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ BSLS_IDENT("$Id: $")


namespace BloombergLP {
namespace ball {


namespace ball {class Attribute;
class Attribute;

// ========================
// class AttributeContainer
Expand Down
7 changes: 3 additions & 4 deletions groups/bal/ball/ball_attributecontainerlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,10 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace ball {


namespace ball {class Attribute;
class AttributeContainer;

class Attribute;
class AttributeContainer;
struct AttributeContainerList_Node;

// ====================================
Expand Down
4 changes: 2 additions & 2 deletions groups/bal/ball/ball_attributecontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace ball {


namespace ball {class Category;
class Category;
class CategoryManager;

// ===============================================
Expand Down
5 changes: 2 additions & 3 deletions groups/bal/balm/balm_collectorrepository.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace balm {


namespace balm {class Category;

class Category;
class CollectorRepository_MetricCollectors; // defined in implementation

// =========================
Expand Down
4 changes: 2 additions & 2 deletions groups/bal/balm/balm_configurationutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace balm {


namespace balm {class MetricFormat;
class MetricFormat;
class MetricFormatSpec;
class MetricsManager;

Expand Down
4 changes: 2 additions & 2 deletions groups/bal/balst/balst_assertionlogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {

namespace balst { // ============================
namespace balst {
// ============================
// struct AssertionLogger
// ============================

Expand Down
4 changes: 3 additions & 1 deletion groups/bal/balst/balst_stacktraceresolverimpl_dladdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ namespace BloombergLP {
#if defined(BALST_OBJECTFILEFORMAT_RESOLVER_DLADDR)


namespace balst {template <typename RESOLVER_POLICY>
namespace balst {

template <typename RESOLVER_POLICY>
class StackTraceResolverImpl;

// ======================================================
Expand Down
4 changes: 3 additions & 1 deletion groups/bal/balst/balst_stacktraceresolverimpl_elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ namespace BloombergLP {

#if defined(BALST_OBJECTFILEFORMAT_RESOLVER_ELF)

namespace balst {template <class RESOLVER_POLICY>
namespace balst {

template <class RESOLVER_POLICY>
class StackTraceResolverImpl;

// ===================================================
Expand Down
11 changes: 7 additions & 4 deletions groups/bal/balxml/balxml_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace balxml {


namespace balxml {class Reader;
class Reader;
class ErrorInfo;
class Decoder;

Expand Down Expand Up @@ -779,7 +779,9 @@ class Decoder_ErrorLogger {
// FORWARD DECLARATIONS


namespace balxml {class Decoder_ElementContext;
namespace balxml {

class Decoder_ElementContext;

template <class TYPE>
class Decoder_ChoiceContext;
Expand Down Expand Up @@ -880,8 +882,9 @@ class Decoder_ListParser {
// struct balxml::Decoder_InstantiateContext<TYPE>
// ===============================================

namespace balxml {

namespace balxml {template <class CATEGORY, class TYPE>
template <class CATEGORY, class TYPE>
struct Decoder_InstantiateContext;
// COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.
//
Expand Down
6 changes: 3 additions & 3 deletions groups/bal/balxml/balxml_elementattribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {


namespace balxml {class PrefixStack;
namespace balxml {
class PrefixStack;

// ======================
// class ElementAttribute
Expand Down
4 changes: 2 additions & 2 deletions groups/bal/balxml/balxml_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace balxml {


namespace balxml {class Encoder_Context;
class Encoder_Context;

// =============
// class Encoder
Expand Down
3 changes: 2 additions & 1 deletion groups/bal/balxml/balxml_prefixstack.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace balxml {

namespace balxml {class NamespaceRegistry;
class NamespaceRegistry;

// =================
// class PrefixStack
Expand Down
4 changes: 2 additions & 2 deletions groups/bal/balxml/balxml_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace balxml {


namespace balxml {class ElementAttribute;
class ElementAttribute;
class PrefixStack;

// ============
Expand Down
4 changes: 3 additions & 1 deletion groups/bbl/bbldc/bbldc_basicbasicdaycountadapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace bdlt { class Date; }

namespace bdlt { class Date; }

namespace bbldc {

// ===============================
Expand Down
3 changes: 2 additions & 1 deletion groups/bdl/bdlcc/bdlcc_objectcatalog.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace bdlcc {template <class TYPE> class ObjectCatalog_AutoCleanup;
namespace bdlcc {

template <class TYPE> class ObjectCatalog_AutoCleanup;
template <class TYPE> class ObjectCatalogIter;
template <class TYPE> class ObjectCatalog;

Expand Down
9 changes: 7 additions & 2 deletions groups/bdl/bdlcc/bdlcc_skiplist.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,10 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace bdlcc {template <class KEY, class DATA> class SkipList;
namespace bdlcc {

template <class KEY, class DATA>
class SkipList;

template <class KEY, class DATA>
bool operator==(const SkipList<KEY, DATA>& lhs,
Expand Down Expand Up @@ -527,7 +530,9 @@ class SkipList_RandomLevelGenerator {
// local class bdlcc::SkipList_PoolUtil
// ====================================

namespace bdlcc {class SkipList_PoolManager;
namespace bdlcc {

class SkipList_PoolManager;

struct SkipList_PoolUtil {
// This component-private utility handles the lock-free pool of list nodes.
Expand Down
11 changes: 6 additions & 5 deletions groups/bdl/bdlcc/bdlcc_timequeue.h
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,9 @@ BSLS_IDENT("$Id: $")
#endif

namespace BloombergLP {
namespace bdlcc {template <class DATA>
namespace bdlcc {

template <class DATA>
class TimeQueueItem;

// ===============
Expand Down Expand Up @@ -1796,8 +1797,8 @@ DATA& TimeQueueItem<DATA>::data()

#if 0

namespace bdlcc {// this definition was moved into the class declaration

namespace bdlcc {
// this definition was moved into the class declaration
// to work around a Visual Studio .NET 2003 bug.
template <typename DATA>
inline
Expand Down Expand Up @@ -1837,8 +1838,8 @@ const DATA& TimeQueueItem<DATA>::data() const

#if 0

namespace bdlcc {// this definition was moved into the class declaration

namespace bdlcc {
// this definition was moved into the class declaration
// to work around a Visual Studio .NET 2003 bug.
template <typename DATA>
inline
Expand Down
4 changes: 3 additions & 1 deletion groups/bdl/bdlf/bdlf_bind.h
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,9 @@ template <class A1, class A2, class A3, class A4, class A5, class A6, class A7,

} // close package namespace

namespace bdlf {struct Bind_Tuple0;
namespace bdlf {

struct Bind_Tuple0;
template <class A1>
struct Bind_Tuple1;
template <class A1, class A2>
Expand Down
3 changes: 1 addition & 2 deletions groups/bdl/bdlt/bdlt_dayofweekset.h
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,7 @@ void bdlt::hashAppend(HASHALG& hashAlg, const DayOfWeekSet& object)
}

// TRAITS SPECIALIZATIONS
namespace bslmf
{
namespace bslmf {
template <>
struct IsBitwiseMoveable<bdlt::DayOfWeekSet> : ::bsl::true_type {};
}
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_c_stddef.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ BSLS_IDENT("$Id: $")
extern "C++" {

// On Sun, 'std::size_t' is defined in 'stddef.h'.
namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::size_t;
}
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_cctype.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <cctype>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::isalnum;
using native_std::isalpha;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_clocale.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <clocale>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::lconv;
using native_std::localeconv;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_cmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ BSLS_IDENT("$Id: $")
#endif
#endif // BDE_OMIT_INTERNAL_DEPRECATED

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::abs;
using native_std::acos;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_complex.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <complex>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace

using native_std::abs;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_csetjmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <csetjmp>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::jmp_buf;
using native_std::longjmp;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_csignal.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <csignal>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::signal;
using native_std::raise;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_cstdarg.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <cstdarg>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::va_list;
} // close package namespace
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_cstddef.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ BSLS_IDENT("$Id: $")

#include <cstddef>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::ptrdiff_t;
using native_std::size_t;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_cstdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <cstdio>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace
using native_std::FILE;
using native_std::fpos_t;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_cstdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <cstdlib>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace

using native_std::abort;
Expand Down
3 changes: 1 addition & 2 deletions groups/bsl/bsl+bslhdrs/bsl_cstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ BSLS_IDENT("$Id: $")

#include <cstring>

namespace bsl
{
namespace bsl {
// Import selected symbols into bsl namespace

using native_std::memchr;
Expand Down
Loading

0 comments on commit 872d5f5

Please sign in to comment.