"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/mathlib.h" between
cppcheck-1.86.tar.gz and cppcheck-1.87.tar.gz

About: Cppcheck is a static analysis tool for C/C++ code. It checks for memory leaks, mismatching allocation-deallocation, buffer overrun, and many more.

mathlib.h  (cppcheck-1.86):mathlib.h  (cppcheck-1.87)
/* /*
* Cppcheck - A tool for static C/C++ code analysis * Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2018 Cppcheck team. * Copyright (C) 2007-2019 Cppcheck team.
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 95 skipping to change at line 95
static bool isDecimalFloat(const std::string &str); static bool isDecimalFloat(const std::string &str);
static bool isNegative(const std::string &str); static bool isNegative(const std::string &str);
static bool isPositive(const std::string &str); static bool isPositive(const std::string &str);
static bool isDec(const std::string & str); static bool isDec(const std::string & str);
static bool isFloatHex(const std::string& str); static bool isFloatHex(const std::string& str);
static bool isIntHex(const std::string& str); static bool isIntHex(const std::string& str);
static bool isOct(const std::string& str); static bool isOct(const std::string& str);
static bool isBin(const std::string& str); static bool isBin(const std::string& str);
static std::string getSuffix(const std::string& value); static std::string getSuffix(const std::string& value);
static bool isValidIntegerSuffix(const std::string& str); /**
static bool isValidIntegerSuffix(std::string::const_iterator it, std::string * \param[in] str string
::const_iterator end); * \param[in] supportMicrosoftExtensions support Microsoft extension: i64
* \return true if str is a non-empty valid integer suffix
*/
static bool isValidIntegerSuffix(const std::string& str, bool supportMicroso
ftExtensions=true);
static std::string add(const std::string & first, const std::string & second ); static std::string add(const std::string & first, const std::string & second );
static std::string subtract(const std::string & first, const std::string & s econd); static std::string subtract(const std::string & first, const std::string & s econd);
static std::string multiply(const std::string & first, const std::string & s econd); static std::string multiply(const std::string & first, const std::string & s econd);
static std::string divide(const std::string & first, const std::string & sec ond); static std::string divide(const std::string & first, const std::string & sec ond);
static std::string mod(const std::string & first, const std::string & second ); static std::string mod(const std::string & first, const std::string & second );
static std::string incdec(const std::string & var, const std::string & op); static std::string incdec(const std::string & var, const std::string & op);
static std::string calculate(const std::string & first, const std::string & second, char action); static std::string calculate(const std::string & first, const std::string & second, char action);
static std::string sin(const std::string & tok); static std::string sin(const std::string & tok);
 End of changes. 2 change blocks. 
4 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)