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 |
PKEuS
|
e8522c7883
|
Small refactorizations:
- #include cleanup
- Use std::array instead of std::vector
- Do not create a stringstream to concatenate 4 strings
- Use std::cout instead of printf
|
2015-11-29 10:56:44 +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
|
c6ec5ca734
|
Fix MathLib::characterLiteralToLongNumber for LP64 again.
|
2015-11-27 21:43:51 +01:00 |
Alexander Mai
|
d4749c3377
|
Fix excessive left shift of signed integer and some doxygen errors
|
2015-11-27 19:32:28 +01:00 |
Alexander Mai
|
a7ab5ecf08
|
Fix some compiler in MathLib::characterLiteralToLongNumber + some small refactoring
|
2015-11-23 20:41:21 +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
|
52b5446d86
|
Improve handling of various standard character constants
|
2015-11-20 10:23:38 +01:00 |
Daniel Marjamäki
|
86957214ae
|
Remove redundant comparisons
|
2015-11-20 10:11:58 +01:00 |
Daniel Marjamäki
|
0022ce8075
|
Refactor handling of char constants
|
2015-11-20 10:10:38 +01:00 |
Daniel Marjamäki
|
0f9d90d2be
|
Changed Copyrights. Removed my name.
|
2015-11-18 20:04:50 +01:00 |
PKEuS
|
4f565ba90f
|
Fixed crashs on garbage code (#7082)
|
2015-11-02 21:30:28 +01:00 |
PKEuS
|
1627b19dd6
|
Refactorizations:
- Call std::string::find() with char instead of char* where possible
- Avoid string copying
- Optimized several Token::tokAt/strAt calls
|
2015-08-16 10:33:51 +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 |
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 |
Daniel Marjamäki
|
177fd9c79d
|
MathLib: make isinf and isnan more portable
|
2015-07-14 20:48:08 +02:00 |
Daniel Marjamäki
|
ac04541d56
|
MathLib: Add value class. this will allow more type-independant value handling.
|
2015-07-10 20:36:38 +02:00 |
Daniel Marjamäki
|
f36f1e8952
|
MathLib: Minor tweaks. Use toDoubleNumber instead of std::atof. Only use clang workaround with clang.
|
2015-07-10 18:34:28 +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 |
Simon Martin
|
e5745d7d4a
|
Restore build with libc++ and revert PR#228 and PR#562.
|
2015-04-12 20:29:49 +02:00 |
orbitcowboy
|
8596794ce7
|
MathLib:mod: Declared local variable as const. No functional change.
|
2015-04-07 17:21:28 +02:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
Alexander Mai
|
d4e59065df
|
Fix some (clang) compiler warnings
|
2014-11-20 20:49:05 +01:00 |
orbitcowboy
|
4a2a4474c9
|
Fixed #6281: MathLib: Long integer suffix i64 is not supported.
|
2014-11-20 10:23:09 +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 |
orbitcowboy
|
b9a9f51fe0
|
MathLib: Added test for isDec() and removed not required state.
|
2014-11-14 04:29:35 +01:00 |
Alexander Mai
|
4d5b463613
|
Fix clang compiler warning in mathlib.cpp and repair test case for #5895
|
2014-06-07 13:16:02 +02: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
|
ee5cd91d51
|
MathLib: removed duplicated #include
|
2014-05-22 17:53:13 +02:00 |
Alexander Mai
|
cccddc20bf
|
#5843 MathLib::toLongNumber()/MathLib::toULongNumber() now use min/max values for bigint/biguint type in case the number to converted cannot be converted properly
|
2014-05-21 21:36:17 +02:00 |
PKEuS
|
ab4f58a146
|
Partially reverted 1317063b21 . enum class is not part of the common subset of supported C++11 functions of the compilers supported by cppcheck. (Fixes #5745)
|
2014-04-30 21:06:01 +02:00 |
Alexander Mai
|
1317063b21
|
Fix some more (clang++) compiler warnings
|
2014-04-26 20:44:21 +02:00 |
Alexander Mai
|
b5c580a59e
|
Fix some clang warnings - most related to semantic doxygen errors
|
2014-04-26 16:17:26 +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 |
Daniel Marjamäki
|
28751c8ad0
|
astyle formatting
[ci skip]
|
2014-04-15 06:32:25 +02:00 |
Alexander Mai
|
ac24635056
|
Convert MathLib::toLongNumber() from template member function to toLongNumber() and toULongNumber() to avoid various problems compiling with Visual Studio
|
2014-04-14 20:30: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 |
Alexander Mai
|
718e42f5ca
|
Fix some clang warnings about type conversions
|
2014-04-11 23:35:53 +02:00 |
Alexander Mai
|
6da6508913
|
Extract new function MathLib::isDec() our of isInt()
|
2014-04-11 22:15:25 +02:00 |