-
- Downloads
Apply formatting/style tweaks to comply with compile time diagnostics for g++ and clang++ (#686)
* 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".
Showing
- CMakeLists.txt 1 addition, 1 deletionCMakeLists.txt
- include/yaml-cpp/binary.h 7 additions, 3 deletionsinclude/yaml-cpp/binary.h
- include/yaml-cpp/contrib/anchordict.h 2 additions, 1 deletioninclude/yaml-cpp/contrib/anchordict.h
- include/yaml-cpp/emitter.h 4 additions, 3 deletionsinclude/yaml-cpp/emitter.h
- include/yaml-cpp/node/detail/memory.h 3 additions, 2 deletionsinclude/yaml-cpp/node/detail/memory.h
- include/yaml-cpp/node/detail/node.h 6 additions, 6 deletionsinclude/yaml-cpp/node/detail/node.h
- include/yaml-cpp/node/impl.h 18 additions, 18 deletionsinclude/yaml-cpp/node/impl.h
- include/yaml-cpp/noncopyable.h 0 additions, 25 deletionsinclude/yaml-cpp/noncopyable.h
- include/yaml-cpp/ostream_wrapper.h 6 additions, 2 deletionsinclude/yaml-cpp/ostream_wrapper.h
- include/yaml-cpp/parser.h 8 additions, 3 deletionsinclude/yaml-cpp/parser.h
- src/collectionstack.h 3 additions, 2 deletionssrc/collectionstack.h
- src/contrib/graphbuilderadapter.h 12 additions, 4 deletionssrc/contrib/graphbuilderadapter.h
- src/directives.cpp 2 additions, 7 deletionssrc/directives.cpp
- src/emitfromevents.cpp 4 additions, 3 deletionssrc/emitfromevents.cpp
- src/emitter.cpp 2 additions, 2 deletionssrc/emitter.cpp
- src/emitterstate.cpp 22 additions, 18 deletionssrc/emitterstate.cpp
- src/emitterstate.h 7 additions, 2 deletionssrc/emitterstate.h
- src/emitterutils.cpp 10 additions, 10 deletionssrc/emitterutils.cpp
- src/exp.h 30 additions, 30 deletionssrc/exp.h
- src/node_data.cpp 12 additions, 7 deletionssrc/node_data.cpp
Loading
Please register or sign in to comment