Lauri Nurmi
|
996c9244d8
|
Update copyright year to 2007-2016.
|
2016-01-01 15:34:45 +02:00 |
Alexander Mai
|
5ddc5c0798
|
#7187 internal error; unhandled char constant \e. Support \e char literal support by clang,gcc,tcc
|
2015-12-05 18:53:03 +01:00 |
Alexander Mai
|
f4aaa76639
|
Fix compile error with clang
|
2015-11-28 16:50:12 +01:00 |
Alexander Mai
|
78489f4293
|
MathLib::characterLiteralToLongNumber can encode unicode char literals, though it's incompatible to gcc/clang
|
2015-11-28 16:37:26 +01:00 |
Alexander Mai
|
a7ab5ecf08
|
Fix some compiler in MathLib::characterLiteralToLongNumber + some small refactoring
|
2015-11-23 20:41:21 +01:00 |
Alexander Mai
|
b7030fcfa1
|
Fix compiler error (VS2010) and warning
|
2015-11-22 16:56:44 +01:00 |
Alexander Mai
|
63b7700660
|
Use clang/gcc-conforming encoding of multicharacter literals
|
2015-11-22 14:20:36 +01:00 |
Alexander Mai
|
9ca6704c81
|
#7162 Support multicharacter char literals.
|
2015-11-22 13:31:31 +01:00 |
Alexander Mai
|
517922feb6
|
MathLib::characterLiteralToLongNumber now reports more specific error messages for unsupported unicode literals (see #7162)
|
2015-11-22 07:38:38 +01:00 |
Alexander Mai
|
714579401f
|
#7160 Internal error: Unhandled char constant '\1'. Correct MathLib::toLongNumber. Create new utility function MathLib::characterLiteralToLongNumber
|
2015-11-21 22:35:58 +01:00 |
Daniel Marjamäki
|
79a70c1277
|
MathLib::toLongNumber: Better handling of '\x12' and '\000' char constants
|
2015-11-20 18:57:48 +01:00 |
Daniel Marjamäki
|
0f9d90d2be
|
Changed Copyrights. Removed my name.
|
2015-11-18 20:04:50 +01:00 |
Alexander Mai
|
7cdeb70efa
|
Fix some glitches from previous commit to TestMathLib
|
2015-07-26 19:47:27 +02:00 |
Alexander Mai
|
7c48bf3ca5
|
MathLib::isFloat now detects C99 hexadecimal float literals. MathLib::isDecimalFloat was added for C++ and pre-C99 compatibility.
|
2015-07-26 19:21:53 +02:00 |
Daniel Marjamäki
|
f3b5857b96
|
improved testing of calculations in valueflow
|
2015-07-26 12:00:42 +02:00 |
Alexander Mai
|
bbec54db8e
|
Implement MathLib::isFloatHex to detect C99 hexadecimal floating pointer literals. Rename MathLib::isHex to MathLib::isIntHex
|
2015-07-26 08:06:56 +02:00 |
Daniel Marjamäki
|
b821e996e1
|
MathLib: Add TEST_MATHLIB_VALUE that is used to test MathLib::value
|
2015-07-15 17:36:41 +02:00 |
orbitcowboy
|
dda5e46d1d
|
Fixed typo in comment. No functional changes.
|
2015-07-15 15:29:35 +02:00 |
Alexander Mai
|
56e90f95d9
|
Corrections for non-Microsoft compilers
|
2015-06-28 12:34:08 +02:00 |
amai2012
|
649a89d308
|
Refactoring: Expose some previously local functions to public and add Tokenizer as argument to distinguish between C and C++ code (e.g. in isSameExpression).
Refactoring: Improve type-safety for TestFixture::assertEquals to allow tests with types which were not handled correctly (e.g. unsigned long long)
|
2015-06-28 12:08:36 +02:00 |
Alexander Mai
|
b6858622eb
|
#6779 internal error: division overflow. Previous error handling (see #4520) was too restrictive.
|
2015-06-20 23:15:35 +02:00 |
Martin Ettl
|
9b14ab15eb
|
MathLib::intsuffix: Added support for LLU and LU suffixes.
|
2015-06-16 19:12:18 +02:00 |
Daniel Marjamäki
|
2cc23b4bb3
|
MathLib: Try to keep type suffix in constant calculations
|
2015-06-15 19:01:56 +02:00 |
PKEuS
|
bc5132e0ac
|
Refactorization: Moved declaration of errout, ... to testsuite.h, uniformized style
|
2015-03-11 22:54:43 +01:00 |
Martin Ettl
|
fab34a8382
|
Fixed a few inconclusive warnings regarding const-correctness in cppcheck code base.
|
2015-01-20 16:50:16 +01:00 |
orbitcowboy
|
ff415871bd
|
Fixed some const correctness issues in the test suite.
|
2015-01-19 18:00:05 +01:00 |
orbitcowboy
|
a26aa1cd16
|
testmathlib: Fixed typo in comment, no functional changes.
|
2015-01-14 00:51:50 +01:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
orbitcowboy
|
b8cca63a76
|
Improved test coverage of MathLib.
|
2014-12-03 18:24:27 +01:00 |
Alexander Mai
|
1779921306
|
Increase test coverage for MathLib
|
2014-11-26 17:35:32 +01:00 |
Daniel Marjamäki
|
051d42ae6b
|
astyle formatting
|
2014-11-20 14:20:09 +01:00 |
orbitcowboy
|
4a2a4474c9
|
Fixed #6281: MathLib: Long integer suffix i64 is not supported.
|
2014-11-20 10:23:09 +01:00 |
orbitcowboy
|
f5d804f71a
|
running astyle
|
2014-11-20 10:13:03 +01:00 |
Robert Reif
|
b7c9187539
|
Fixed #6280 (MathLib: binary literals are integers)
|
2014-11-19 06:43:52 +01:00 |
Robert Reif
|
7c4a137e14
|
Fixed #6274 (MathLib::isFloat doesn't recognize long double literal suffix L or l)
|
2014-11-17 06:53:32 +01:00 |
Alexander Mai
|
ea94b2748f
|
#633 Adding tests for some MathLib member functions, should reach 100% function coverage now
|
2014-11-16 18:09:21 +01:00 |
Daniel Marjamäki
|
149fe74d9d
|
astyle formatting
|
2014-11-14 21:43:37 +01:00 |
orbitcowboy
|
b9a9f51fe0
|
MathLib: Added test for isDec() and removed not required state.
|
2014-11-14 04:29:35 +01:00 |
orbitcowboy
|
8fe163285f
|
MathLib: Added missing testcase for incdec.
|
2014-06-04 08:41:30 +02:00 |
orbitcowboy
|
60e80b6fb1
|
Fixed #5885 - fsanitize=undefined: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' in lib/tokenize.cpp.
|
2014-05-29 18:25:01 +02:00 |
Martin Ettl
|
af369b4925
|
astyle run [ci skip]
|
2014-05-16 23:01:21 +02:00 |
amai2012
|
6f31ce334d
|
#5875 Fix 'lib/mathlib.cpp:559:43: runtime error: division by zero'. Several fixes to MathLib::divide(): avoid division by zero, handle various representation of 0 value, use 'nan.' instead of '-nan.0'
|
2014-05-31 18:25:23 +02:00 |
orbitcowboy
|
3d0217b69e
|
Implemented a slower but shorter version of MathLib::isNullValue() as suggested by PKeuS. Removed not needed test cases. Improved doxygen documentation for MathLib::IsNullValue().
|
2014-04-14 05:27:38 +02:00 |
Martin Ettl
|
82092e412a
|
MathLib::isNullValue(): Fixed bug in detecting zero values. Improved test coverage of MathLib::IsNullValue().
|
2014-04-12 02:14:50 +02:00 |
orbitcowboy
|
9c08885caf
|
MathLib:IsNullValue(): using a Finite State Machine to determine a string value contains a numeric NULL value. The NULL value can be Integer, Binary, Hex, Octal. The corresponding unit test cases are also included.
|
2014-04-11 01:27:05 +02:00 |
Alexander Mai
|
ab2f8bfba3
|
Tidy up MathLib::isInt() - using a state machine approach
|
2014-04-10 22:46:55 +02:00 |
PKEuS
|
a01bfcb62d
|
Fixed a few cppcheck messages
|
2014-03-28 18:55:16 +01:00 |
Alexander Mai
|
cba1879fee
|
Fixed #5571 (Clean up MathLib::isInt())
|
2014-03-16 11:55:44 +01:00 |
Daniel Marjamäki
|
8c7cf090c4
|
Merge pull request #261 from orbitcowboy/master
MathLib:isHex(): fix detection of missing suffixes (U,L).
|
2014-03-14 13:00:35 +01:00 |
Daniel Marjamäki
|
618c26f6bf
|
Merge pull request #260 from orbitcowboy/master
MathLib::isOct() fix missing detection of U and L suffix combinations an...
|
2014-03-12 05:30:35 +01:00 |