8000 Merge branch 'devel' of https://github.com/arangodb/arangodb into eng… · georgekaf/arangodb@aba8e42 · GitHub
  • [go: up one dir, main page]

    Skip to content

    Commit aba8e42

    Browse files
    committed
    Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api
    2 parents 62eee2d + f23b661 commit aba8e42

    File tree

    6 files changed

    +15
    -44
    lines changed

    6 files changed

    +15
    -44
    lines changed

    .travis.yml

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -24,8 +24,8 @@ addons:
    2424
    - ubuntu-toolchain-r-test
    2525
    - george-edison55-precise-backports
    2626
    packages:
    27-
    - g++-5.4
    28-
    - gcc-5.4
    27+
    - g++-5
    28+
    - gcc-5
    2929
    - binutils-gold
    3030
    - gdb
    3131
    - cmake-data

    Installation/travisCI/before_script.sh

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -7,10 +7,10 @@ mkdir -p $HOME/bin/gold
    77
    chmod a+x $HOME/bin/gold/ld
    88

    99
    # prepare CCACHE
    10-
    (echo '#!/bin/bash'; echo 'ccache /usr/bin/gcc-4.9 "$@"') > $HOME/bin/gcc
    10+
    (echo '#!/bin/bash'; echo 'ccache /usr/bin/gcc-5 "$@"') > $HOME/bin/gcc
    1111
    chmod a+x $HOME/bin/gcc
    1212

    13-
    (echo '#!/bin/bash'; echo 'ccache /usr/bin/g++-4.9 "$@"') > $HOME/bin/g++
    13+
    (echo '#!/bin/bash'; echo 'ccache /usr/bin/g++-5 "$@"') > $HOME/bin/g++
    1414
    chmod a+x $HOME/bin/g++
    1515

    1616
    # prepare files for unit test

    lib/Basics/AttributeNameParser.cpp

    Lines changed: 0 additions & 30 deletions
    Original file line numberDiff line numberDiff line change
    @@ -210,19 +210,6 @@ bool arangodb::basics::TRI_AttributeNamesHaveExpansion(
    210210
    /// @brief append the attribute name to an output stream
    211211
    ////////////////////////////////////////////////////////////////////////////////
    212212

    213-
    std::ostream& operator<<(std::ostream& stream,
    214-
    arangodb::basics::AttributeName const* name) {
    215-
    stream << name->name;
    216-
    if (name->shouldExpand) {
    217-
    stream << "[*]";
    218-
    }
    219-
    return stream;
    220-
    }
    221-
    222-
    ////////////////////////////////////////////////////////////////////////////////
    223-
    /// @brief append the attribute name to an output stream
    224-
    ////////////////////////////////////////////////////////////////////////////////
    225-
    226213
    std::ostream& operator<<(std::ostream& stream,
    227214
    arangodb::basics::AttributeName const& name) {
    228215
    stream << name.name;
    @@ -236,23 +223,6 @@ std::ostream& operator<<(std::ostream& stream,
    236223
    /// @brief append the attribute names to an output stream
    237224
    ////////////////////////////////////////////////////////////////////////////////
    238225

    239-
    std::ostream& operator<<(
    240-
    std::ostream& stream,
    241-
    std::vector<arangodb::basics::AttributeName> const* attributes) {
    242-
    size_t const n = attributes->size();
    243-
    for (size_t i = 0; i < n; ++i) {
    244-
    if (i > 0) {
    245-
    stream << ".";
    246-
    }
    247-
    stream << attributes[i];
    248-
    }
    249-
    return stream;
    250-
    }
    251-
    252-
    ////////////////////////////////////////////////////////////////////////////////
    253-
    /// @brief append the attribute names to an output stream
    254-
    ////////////////////////////////////////////////////////////////////////////////
    255-
    256226
    std::ostream& operator<<(
    257227
    std::ostream& stream,
    258228
    std::vector<arangodb::basics::AttributeName> const& attributes) {

    lib/Basics/AttributeNameParser.h

    Lines changed: 0 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -129,10 +129,7 @@ bool TRI_AttributeNamesHaveExpansion(std::vector<AttributeName> const& input);
    129129
    }
    130130
    }
    131131

    132-
    std::ostream& operator<<(std::ostream&, arangodb::basics::AttributeName const*);
    133132
    std::ostream& operator<<(std::ostream&, arangodb::basics::AttributeName const&);
    134-
    std::ostream& operator<<(std::ostream&,
    135-
    std::vector<arangodb::basics::AttributeName> const*);
    136133
    std::ostream& operator<<(std::ostream&,
    137134
    std::vector<arangodb::basics::AttributeName> const&);
    138135

    lib/Basics/debugging.h

    Lines changed: 11 additions & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -114,6 +114,16 @@ void TRI_ShutdownDebugging();
    114114
    void TRI_FlushDebugging();
    115115
    void TRI_FlushDebugging(char const* file, int line, char const* message);
    116116

    117+
    ////////////////////////////////////////////////////////////////////////////////
    118+
    /// @brief dump pair contents to an ostream
    119+
    ////////////////////////////////////////////////////////////////////////////////
    120+
    121+
    template <typename T1, typename T2>
    122+
    std::ostream& operator<<(std::ostream& stream, std::pair<T1, T2> const& obj) {
    123+
    stream << '(' << obj.first << ", " << obj.second << ')';
    124+
    return stream;
    125+
    }
    126+
    117127
    ////////////////////////////////////////////////////////////////////////////////
    118128
    /// @brief dump vector contents to an ostream
    119129
    ////////////////////////////////////////////////////////////////////////////////
    @@ -209,7 +219,7 @@ std::ostream& operator<<(std::ostream& stream,
    209219
    }
    210220

    211221
    ////////////////////////////////////////////////////////////////////////////////
    212-
    /// @brief dump unordered_map contents to an ostream
    222+
    /// @brief dump map contents to an ostream
    213223
    ////////////////////////////////////////////////////////////////////////////////
    214224

    215225
    template <typename K, typename V>

    lib/Logger/LoggerStream.h

    Lines changed: 0 additions & 6 deletions
    Original file line numberDiff line numberDiff line change
    @@ -82,12 +82,6 @@ class LoggerStream {
    8282
    return *this;
    8383
    }
    8484

    85-
    template <typename T1, typename T2>
    86-
    LoggerStream& operator<<(std::pair<T1, T2> const& obj) {
    87-
    _out << '(' << obj.first << ", " << obj.second << ')';
    88-
    return *this;
    89-
    }
    90-
    9185
    private:
    9286
    std::stringstream _out;
    9387
    size_t _topicId;

    0 commit comments

    Comments
     (0)
    0