yaml-cpp/include/yaml-cpp
Romain Geissler @ Amadeus 14c87258cd Fix -Wmisleading-indentation warning when using gcc >= 6. (#779)
This happens whenever in a macro you use some "if" block, and don't use curly braces {},
as the macro is expanded on a single line, not on several lines. So just add the missing
curly braces to please gcc.

In file included from /remote/users/mlamesch/CloneFromPlatinum/yamlcpp/osp/Yamlcpp/18-0-0-5/include/yaml-cpp/yaml.h:18,
                 from src/TestYaml.cpp:2:
/remote/users/mlamesch/CloneFromPlatinum/yamlcpp/osp/Yamlcpp/18-0-0-5/include/yaml-cpp/node/convert.h: In static member function static bool YAML::convert<int>::decode(const YAML::Node&, int&):
/remote/users/mlamesch/CloneFromPlatinum/yamlcpp/osp/Yamlcpp/18-0-0-5/include/yaml-cpp/node/convert.h:139:1: error: this if clause does not guard... [-Werror=misleading-indentation]
 YAML_DEFINE_CONVERT_STREAMABLE_SIGNED(int);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-10-23 14:45:27 -05:00
..
contrib Apply formatting/style tweaks to comply with compile time diagnostics for g++ and clang++ (#686) 2019-03-13 15:18:34 -07:00
node Fix -Wmisleading-indentation warning when using gcc >= 6. (#779) 2019-10-23 14:45:27 -05:00
anchor.h Modernize: Use "using" instead of "typedef" (#754) 2019-10-02 11:14:49 -05:00
binary.h Static analysis fix: replace 0 and NULL with nullptr (#738) 2019-09-14 20:23:22 -04:00
dll.h Fix line-wrapping in comment in dll.h 2016-03-16 10:41:12 -07:00
emitfromevents.h Modernization: Use "override" when overriding base class methods (#753) 2019-10-02 09:21:17 -05:00
emitter.h Make sure output of NaN, Infinity and -Infinity is identical on all platforms (#717) 2019-08-03 21:41:45 -04:00
emitterdef.h Renamed the None enumeration vaules to NoType to avoid a collision with X11's macro 2015-01-24 15:58:14 -06:00
emittermanip.h Pass std::string by const ref (#749) 2019-10-02 08:39:41 -05:00
emitterstyle.h Fix gcc warning 2015-01-24 14:47:00 -06:00
eventhandler.h Modernize: Use "default" for destructors and copy constructors (#751) 2019-10-02 08:38:49 -05:00
exceptions.h Modernization: Use "override" when overriding base class methods (#753) 2019-10-02 09:21:17 -05:00
mark.h More useful error messages. 2015-04-02 20:50:11 +01:00
null.h Make null handling YAML 1.2 compliant. 2016-04-01 17:14:59 -05:00
ostream_wrapper.h Static analysis fix: replace 0 and NULL with nullptr (#738) 2019-09-14 20:23:22 -04:00
parser.h Disallow moving for the Parser. 2019-03-24 17:01:14 -05:00
stlemitter.h Run clang-format 2014-03-22 12:49:16 -05:00
traits.h Modernize: Use "using" instead of "typedef" (#754) 2019-10-02 11:14:49 -05:00
yaml.h Merge from core 2015-01-24 12:26:16 -06:00