Fredrik Roubert
55c5895923
ICU-22793 Clang-Tidy: google-readability-casting
...
https://releases.llvm.org/19.1.0/tools/clang/tools/extra/docs/clang-tidy/checks/google/readability-casting.html
2024-09-19 18:59:13 +02:00
Fredrik Roubert
ca53838b83
ICU-22576 Remove now obsolete pre-C11 backward compatibility code.
2024-01-19 08:05:24 +09:00
Fredrik Roubert
85b7f5fda2
ICU-22604 Use 'void' for empty C parameter lists (-Wstrict-prototypes).
2023-12-19 09:27:01 +09:00
Fredrik Roubert
e112f896a2
ICU-22576 Use standard alignof() with modern C.
2023-12-14 19:11:29 +01:00
Fredrik Roubert
030fa1a479
ICU-21148 Consistently use standard lowercase true/false everywhere.
...
This is the normal standard way in C, C++ as well as Java and there's no
longer any reason for ICU to be different. The various internal macros
providing custom boolean constants can all be deleted and code as well
as documentation can be updated to use lowercase true/false everywhere.
2022-09-07 20:56:33 +02:00
Victor Chang
397cbb9530
ICU-21894 A modern version of ucol_safeClone and ucnv_safeClone API
2022-02-01 16:41:49 +00:00
luz paz
73eca0a9c9
ICU-21580 Fix typos in icu4c/
...
Found via `codespell -q 3 -L ans,anumber,atleast,ba,bre,hace,nd,nin,ois,rsource,som,sur,tht -S icu4c/source/data/zone,icu4c/source/data/lang`
ICU-21580 Fix source (related) typos
ICU-21580 Revert extraneous auto-encoding
ICU-21580 Re-add previous reverted fix without auto-encoding
2021-07-19 13:22:38 -05:00
Shane F. Carr
3b0772fff9
ICU-21015 Fixing gcc compiler warnings
2020-04-03 01:56:07 -05:00
Jeff Genovy
e72290c45e
ICU-13764 Add separate CI build that treats warnings as errors with clang.
...
This adds a separate CI build that enables -Werror for clang.
This also fixes all of the -Wall -Wextra warnings in the tests, and all the
-Wextra-semi warnings as well.
2019-07-30 22:10:02 -07:00
Andy Heninger
0367d4c135
ICU-20048 remove uses of UAlignedMemory, replace with native C++11 constructs.
...
Also update the Travis CI configuration to use newer compilers, and the
dependency checker to be happy with the newer clang compiler.
2019-06-28 13:35:17 -07:00
Jeff Genovy
33d7868d45
ICU-20351 Warning cleanup changes for ICU4C under MSVC.
2019-01-16 16:43:02 -08:00
Markus Scherer
fa2ddc86c7
ICU-13311 change illegal-UTF-8 handling in converter code
...
X-SVN-Rev: 40455
2017-09-23 06:34:53 +00:00
Andy Heninger
242e02c388
ICU-12764 icu4c utf-8 source files, update Copyright notices.
...
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Andy Heninger
0fd5600285
ICU-12809 only .cpp files no .c in ICU library code
...
X-SVN-Rev: 39527
2016-12-07 21:14:27 +00:00
Michael Ow
61607c2773
ICU-12564 Update copyright notice in trunk
...
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126
ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
...
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f
ICU-12564 Update copyright notice in ICU4C
...
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Fredrik Roubert
ebc0f5b22a
ICU-12012 Replace all sizeof p / sizeof T with UPRV_LENGTHOF().
...
R=markus.icu@gmail.com
Review URL: https://codereview.appspot.com/288320043 .
X-SVN-Rev: 38347
2016-02-24 21:48:56 +00:00
Fredrik Roubert
7f4b8d106b
ICU-12012 Replace all sizeof p / sizeof *p with UPRV_LENGTHOF().
...
R=markus.icu@gmail.com
Review URL: https://codereview.appspot.com/285520043 .
X-SVN-Rev: 38337
2016-02-23 10:40:09 +00:00
Michael Ow
a47a3679ac
ICU-11979 Fix max char size for iso-2022-kr in icu4c
...
X-SVN-Rev: 38086
2015-11-17 23:08:52 +00:00
Markus Scherer
7f6179f106
ICU-11535 make tests pass with only warnings when UCONFIG_ONLY_HTML_CONVERSION
...
X-SVN-Rev: 37088
2015-02-27 02:24:05 +00:00
Steven R. Loomis
7594250cc5
ICU-7653 changed uprv_lengthof to UPRV_LENGTHOF, also added apidoc
...
X-SVN-Rev: 36275
2014-08-28 22:13:45 +00:00
Tom Zhang
ee1f29b584
ICU-7653 move LENGTHOF(array) to common, internal header
...
X-SVN-Rev: 36265
2014-08-28 14:55:34 +00:00
Andy Heninger
2b6a24aebc
ICU-10624 Fix windows build error introduced with earlier compile warning fix.
...
X-SVN-Rev: 34859
2014-01-10 18:14:31 +00:00
Andy Heninger
301814f85f
ICU-10624 Compiler warning cleanups, continued.
...
X-SVN-Rev: 34855
2014-01-10 08:35:00 +00:00
Andy Heninger
1996008111
ICU-10624 Swat clang compile warnings. More fixes to come.
...
X-SVN-Rev: 34854
2014-01-10 02:24:54 +00:00
Markus Scherer
27e00900c8
ICU-9932 deprecate & disable cloning-into-user-buffer, except keep ucnv_safeClone() intact
...
X-SVN-Rev: 34359
2013-09-17 19:48:50 +00:00
Andy Heninger
ae4350661b
ICU-10048 Fix some compiler warnings in ICU4C.
...
X-SVN-Rev: 33444
2013-03-21 01:42:01 +00:00
Peter Edberg
cce314dc85
ICU-9581 Handle uconfig.h variations: fix errors and some of the old warnings
...
X-SVN-Rev: 32659
2012-10-18 19:51:28 +00:00
George Rhoten
dc75668c05
ICU-9457 Fix some compiler warnings
...
X-SVN-Rev: 32095
2012-08-03 19:09:42 +00:00
Markus Scherer
9a3376c379
ICU-9000 use our own implementation of uprv_stricmp() and uprv_strnicmp() to make sure we use language-independent case mappings/comparisons
...
X-SVN-Rev: 31118
2011-12-15 00:04:40 +00:00
Markus Scherer
9bcc40cf9e
ICU-8452 un-autoconf platform.h, move user-configurable settings to uconfig.h, and other changes; from svn merge --reintegrate branches/markus/platformh at r30411
...
X-SVN-Rev: 30412
2011-07-23 00:10:30 +00:00
Michael Ow
c2bf97eb02
ICU-8602 Fix some compiler warnings.
...
X-SVN-Rev: 30231
2011-06-24 19:12:33 +00:00
Michael Ow
310c23c24e
ICU-8578 Apply patch to fix some compiler warnings and related issues
...
X-SVN-Rev: 30205
2011-06-10 18:56:08 +00:00
Markus Scherer
41c8654d92
ICU-8601 replace C U_INLINE hack with C++ inline, and also rename a few other .c files to .cpp for future UMTX_CHECK replacement
...
X-SVN-Rev: 30148
2011-05-26 20:05:39 +00:00
Steven R. Loomis
a8575b74fa
ICU-7829 reset the default converter if the default converter name changes
...
X-SVN-Rev: 28310
2010-07-14 23:01:37 +00:00
Andy Heninger
74e297291f
ICU-7780 fix various compiler warnings
...
X-SVN-Rev: 28301
2010-07-12 18:03:29 +00:00
Steven R. Loomis
a1ea70071b
ICU-7708 compiler warnings for 4.5.1 (batch 1)
...
X-SVN-Rev: 28103
2010-05-25 22:17:12 +00:00
Markus Scherer
13bea319a7
ICU-7492 fix ucnv_convertEx(UTF-8 to SBCS/DBCS) handling of two truncated sequences at the end of the input
...
X-SVN-Rev: 27757
2010-03-03 04:53:55 +00:00
Michael Ow
a1900371b7
ICU-7226 Undo commit revision 24105 from ticket 6300.
...
X-SVN-Rev: 26871
2009-11-11 17:33:56 +00:00
Michael Ow
c6385f6209
ICU-7068 Add statements to ensure that uconfigtest passes
...
X-SVN-Rev: 26466
2009-08-04 21:09:17 +00:00
Michael Ow
9100ba632e
ICU-6905 Log errors as data errors where appropriate to ensure cintltst passes without data. Some areas don't propagate error code. Add new error log function to check for error code.
...
X-SVN-Rev: 26084
2009-06-09 21:28:13 +00:00
Markus Scherer
5c3b41f836
ICU-6789 implement Java-compatible Unicode, UnicodeBig and UnicodeLittle converters
...
X-SVN-Rev: 25714
2009-04-01 19:31:33 +00:00
Markus Scherer
93e35cf3db
ICU-6606 add #define option for >>default charset is UTF-8<<
...
X-SVN-Rev: 25544
2009-03-11 03:16:35 +00:00
Michael Ow
e337ab8678
ICU-6300 Set the max bytes per char for UTF16 to 4 to make it consistent with the specs.
...
X-SVN-Rev: 24105
2008-06-04 17:49:37 +00:00
Michael Ow
8a63dd5683
ICU-2498 Make test pass w/o data in iotest and cintltest.
...
X-SVN-Rev: 23783
2008-04-10 16:53:16 +00:00
Eric Mader
c771cb8f13
ICU-5808 fixes for uconfigtest.
...
X-SVN-Rev: 22398
2007-08-16 00:37:44 +00:00
George Rhoten
5c3a43a348
ICU-5234 Revert a few of the previous changes to use more of the original names & update a few tables.
...
X-SVN-Rev: 21505
2007-05-10 06:40:31 +00:00
George Rhoten
8587834a2d
ICU-5445 Fix some compiler warnings
...
X-SVN-Rev: 21281
2007-03-17 05:49:26 +00:00
Markus Scherer
cfc579ba82
ICU-5518 add a test case for bad UTF-8 input
...
X-SVN-Rev: 21274
2007-03-16 21:53:58 +00:00