1. 28 Sep, 2021 1 commit
  2. 25 Sep, 2021 1 commit
    • Pino Toscano's avatar
      Hide most of non-public symbols by default (#984) · da1c8d36
      Pino Toscano authored
      * Export YAML::detail::node::m_amount
      
      The internal header node/detail/node.h is included by public headers;
      YAML::detail::node is implemented in the header itself, and thus it gets
      inlined... except for its static m_amount class member, which is
      instantiated in the library only. Right now all the symbols of yaml-cpp
      are exported (nothing is hidden), so the linker will find node::m_amount
      in the yaml-cpp library.
      
      As solution/workaround, explicitly export YAML::detail::node::m_amount.
      
      * CMake: use GenerateExportHeader
      
      Make use of the GenerateExportHeader CMake module to generate the dll.h
      header with export macros.
      
      While the produced dll.h is different, the result should be the same,
      i.e. nothing changes for yaml-cpp or its users.
      
      * CMake: hide all the symbols by default
      
      Hide all the symbols that are not explicitly exported with YAML_CPP_API.
      This way the ABI will be way smaller, and only actually exposing the
      public classes/functions.
      da1c8d36
  3. 16 Jun, 2020 1 commit
  4. 15 Jun, 2020 5 commits
  5. 07 Apr, 2020 2 commits
  6. 02 Oct, 2019 1 commit
  7. 17 Apr, 2019 1 commit
  8. 13 Mar, 2019 1 commit
    • Ted Lyngmo's avatar
      Apply formatting/style tweaks to comply with compile time diagnostics for g++ and clang++ (#686) · 0d5c5715
      Ted Lyngmo authored
      * Add compilation flags: -Wshadow -Weffc++ -pedantic -pedantic-errors
      * Delete implicit copy & move constructors & assignment operators
        in classes with pointer data members.
      * An exception to the above: Add default copy & move constructors &
        assignment operators for the Binary class.
      * Convert boolean RegEx operators to binary operators.
      * Initialize all members in all classes in ctors.
      * Let default ctor delegate to the converting ctor in
        Binary and RegEx
      * Don't change any tests except regex_test (as a result of the change
        to binary operators).
      
      Note: https://bugzilla.redhat.com/show_bug.cgi?id=1544675 makes
      -Weffc++ report a false positive in "include/yaml-cpp/node/impl.h".
      0d5c5715
  9. 25 Sep, 2018 1 commit
  10. 03 Jul, 2018 1 commit
  11. 14 May, 2018 1 commit
  12. 18 Jul, 2016 1 commit
    • c0nk's avatar
      Change node_map type from map<ptr,ptr> to vector<pair<ptr,ptr>> (#386) · f0b15cd6
      c0nk authored
      * Change node_map type from map<ptr,ptr> to vector<pair<ptr,ptr>>
      
      Map nodes are now iterated over in document order.
      
      * Change insert_map_pair to always append
      
      Always append in insert_map_pair even if the key is already present.
      This breaks the behavior of force_insert which now always inserts KVs
      even if the key is already present. The first insert for duplicated keys
      now takes precedence for lookups.
      f0b15cd6
  13. 11 Jan, 2016 1 commit
    • Matt Blair's avatar
      Replace Boost usage with C++11 features · 24fa1b33
      Matt Blair authored
       - Adds 'std=c++11' compiler flags
       - Replaces boost::type_traits with std::type_traits
       - Replaces boost::shared_ptr with std::shared_ptr
       - Replaces std::auto_ptr with std::unique_ptr
       - Replaces raw pointers with std::unique_ptr in ptr_vector, ptr_stack, and SettingChanges
       - Replaces boost::noncopyable with deleted copy and assignment operators
       - Replaces boost::next with std::next
       - Replaces boost::enable_if with std::enable_if
       - Replaces boost::is_convertible with std::is_convertible
       - Replaces ptrdiff_t with std::ptrdiff_t
       - Replaces boost::iterator_facade and boost::iterator_adaptor with std::iterator, borrowing the 'proxy reference' technique from boost
       - Removes Boost dependency from CMakeLists
       - Formats changed files using clang-format
      24fa1b33
  14. 02 Apr, 2015 1 commit
  15. 24 Jan, 2015 3 commits
  16. 23 Mar, 2014 1 commit
  17. 22 Mar, 2014 1 commit
  18. 19 May, 2012 1 commit