]> granicus.if.org Git - icu/commitdiff
ICU-21833 Replace U_FINAL with final everywhere.
authorFredrik Roubert <roubert@google.com>
Wed, 15 Feb 2023 21:58:34 +0000 (22:58 +0100)
committerFredrik Roubert <fredrik@roubert.name>
Wed, 22 Feb 2023 21:39:41 +0000 (22:39 +0100)
16 files changed:
icu4c/source/Doxyfile.in
icu4c/source/common/unicode/caniter.h
icu4c/source/common/unicode/casemap.h
icu4c/source/common/unicode/char16ptr.h
icu4c/source/common/unicode/edits.h
icu4c/source/common/unicode/rbbi.h
icu4c/source/common/unicode/simpleformatter.h
icu4c/source/common/unicode/umachine.h
icu4c/source/common/unicode/uniset.h
icu4c/source/common/unicode/usetiter.h
icu4c/source/i18n/unicode/coleitr.h
icu4c/source/i18n/unicode/dtfmtsym.h
icu4c/source/i18n/unicode/dtitvinf.h
icu4c/source/i18n/unicode/regex.h
icu4c/source/i18n/unicode/stsearch.h
icu4c/source/i18n/unicode/tblcoll.h

index d851b19e381149ef242dadb390cb1f69a6398424..bfff2393134fad44aaf18a265e499d3590939f5f 100644 (file)
@@ -2085,8 +2085,7 @@ PREDEFINED             = U_EXPORT2= \
                          U_IN_DOXYGEN=1 \
                          U_CHAR16_IS_TYPEDEF=0 \
                          U_CPLUSPLUS_VERSION=11 \
-                         U_WCHAR_IS_UTF16 \
-                         U_FINAL=final
+                         U_WCHAR_IS_UTF16
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
 # tag can be used to specify a list of macro names that should be expanded. The
index db400a531bfe4d866e56fff30adff8df6f6da0a4..035bd0e64eb9243dd855cc4d1f2f5d203e4ebaa0 100644 (file)
@@ -73,7 +73,7 @@ Results for: {LATIN CAPITAL LETTER A WITH RING ABOVE}{LATIN SMALL LETTER D}{COMB
  * @author C++ port by V. Weinstein
  * @stable ICU 2.4
  */
-class U_COMMON_API CanonicalIterator U_FINAL : public UObject {
+class U_COMMON_API CanonicalIterator final : public UObject {
 public:
     /**
      * Construct a CanonicalIterator object
index d7779f6d67f65b6ae2f0a0988e919573bd369290..eca7cbf80a9ce53adb72394ab835fa5392b34874 100644 (file)
@@ -30,7 +30,7 @@ class Edits;
  *
  * @stable ICU 59
  */
-class U_COMMON_API CaseMap U_FINAL : public UMemory {
+class U_COMMON_API CaseMap final : public UMemory {
 public:
     /**
      * Lowercases a UTF-16 string and optionally records edits.
index c8a9ae6c35d646f7173d4fff6d5068914ce9408c..de8182c7ada4c522ad8420d3b4fa1584b931d7b8 100644 (file)
@@ -39,7 +39,7 @@ U_NAMESPACE_BEGIN
  * char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types.
  * @stable ICU 59
  */
-class U_COMMON_API Char16Ptr U_FINAL {
+class U_COMMON_API Char16Ptr final {
 public:
     /**
      * Copies the pointer.
@@ -146,7 +146,7 @@ char16_t *Char16Ptr::get() const { return u_.cp; }
  * const char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types.
  * @stable ICU 59
  */
-class U_COMMON_API ConstChar16Ptr U_FINAL {
+class U_COMMON_API ConstChar16Ptr final {
 public:
     /**
      * Copies the pointer.
index bfa07fa6765b730d6143f3d9e0e41ea1d853cb01..9b481fc760b66401f573141890593a8e1128f5c6 100644 (file)
@@ -77,7 +77,7 @@ class UnicodeString;
  *
  * @stable ICU 59
  */
-class U_COMMON_API Edits U_FINAL : public UMemory {
+class U_COMMON_API Edits final : public UMemory {
 public:
     /**
      * Constructs an empty object.
@@ -200,7 +200,7 @@ public:
      * @see getFineIterator
      * @stable ICU 59
      */
-    struct U_COMMON_API Iterator U_FINAL : public UMemory {
+    struct U_COMMON_API Iterator final : public UMemory {
         /**
          * Default constructor, empty iterator.
          * @stable ICU 60
index b4ad51d34f950ae1dea1758bcce69b1815f53a97..3e784b026e05996e6b3194e6e50d91f1f77d07ca 100644 (file)
@@ -54,7 +54,7 @@ class  UStack;
  *
  * <p>This class is not intended to be subclassed.</p>
  */
-class U_COMMON_API RuleBasedBreakIterator /*U_FINAL*/ : public BreakIterator {
+class U_COMMON_API RuleBasedBreakIterator /*final*/ : public BreakIterator {
 
 private:
     /**
index e7bbf8cf2d8f69fa991b2058d5334a2321a35e71..7f58106fadb3b764597b26c7c765222b22e0d58b 100644 (file)
@@ -59,7 +59,7 @@ class SimpleModifier;
  * @see UMessagePatternApostropheMode
  * @stable ICU 57
  */
-class U_COMMON_API SimpleFormatter U_FINAL : public UMemory {
+class U_COMMON_API SimpleFormatter final : public UMemory {
 public:
     /**
      * Default constructor.
index dbf6dea1f6f68730cf5f2091346f1c4320640137..de38a43f05a062729990a055a95c09a432c55c4b 100644 (file)
 /** Obsolete/same as U_CAPI; was used to declare a function as an internal ICU C API  */
 #define U_INTERNAL U_CAPI
 
-/**
- * \def U_FINAL
- * Defined to the C++11 "final" keyword if available.
- * Denotes a class or member which may not be overridden in subclasses.
- * May result in an error if subclasses attempt to override.
- * @internal
- */
-#if !defined(U_FINAL) || defined(U_IN_DOXYGEN)
-#define U_FINAL final
-#endif
-
 // Before ICU 65, function-like, multi-statement ICU macros were just defined as
 // series of statements wrapped in { } blocks and the caller could choose to
 // either treat them as if they were actual functions and end the invocation
index 83ebdb1319660a4c7e7e521f8c56feb4f68afa90..61435e7ac93561627e178e93bc93d79d15668be7 100644 (file)
@@ -282,7 +282,7 @@ class RuleCharacterIterator;
  * @author Alan Liu
  * @stable ICU 2.0
  */
-class U_COMMON_API UnicodeSet U_FINAL : public UnicodeFilter {
+class U_COMMON_API UnicodeSet final : public UnicodeFilter {
 private:
     /**
      * Enough for sets with few ranges.
index 34992d94b7f7b81d9ad48970b1813f00c80a0fd5..3168d3b0f6b8e27ff452ab5ff83c02de381781b4 100644 (file)
@@ -64,7 +64,7 @@ class UnicodeString;
  * @author M. Davis
  * @stable ICU 2.4
  */
-class U_COMMON_API UnicodeSetIterator U_FINAL : public UObject {
+class U_COMMON_API UnicodeSetIterator final : public UObject {
     /**
      * Value of <tt>codepoint</tt> if the iterator points to a string.
      * If <tt>codepoint == IS_STRING</tt>, then examine
index d3ddd0ee0440c378aff2e472cb5875a3a6d9b81c..bd0c569f35c80a81fae456abb6233f399bdcf27a 100644 (file)
@@ -118,7 +118,7 @@ class UVector32;
 * @see     RuleBasedCollator
 * @version 1.8 Jan 16 2001
 */
-class U_I18N_API CollationElementIterator U_FINAL : public UObject {
+class U_I18N_API CollationElementIterator final : public UObject {
 public: 
 
     // CollationElementIterator public data member ------------------------------
index 65a231c845863b4e365ccb50cef6b00a565dfd8e..3cd54092e0e3a7bc917dc66d60f638337f182973 100644 (file)
@@ -81,7 +81,7 @@ class Hashtable;
  * locale at least contains any resources that are to be particularized for the
  * calendar type.
  */
-class U_I18N_API DateFormatSymbols U_FINAL : public UObject  {
+class U_I18N_API DateFormatSymbols final : public UObject  {
 public:
     /**
      * Construct a DateFormatSymbols object by loading format data from
index a1f4f426a1c9c60d6cc87681db98e7c741f429b3..5b9a45351c2630ad99a71691c2d70fa8886b8b02 100644 (file)
@@ -151,7 +151,7 @@ U_NAMESPACE_BEGIN
  * calendar; non-Gregorian calendars are supported from ICU 4.4.1.
  * @stable ICU 4.0
 **/
-class U_I18N_API DateIntervalInfo U_FINAL : public UObject {
+class U_I18N_API DateIntervalInfo final : public UObject {
 public:
     /**
      * Default constructor.
index 6980b947825d04959910551ca885da94cfa4c308..cc2f9249295ee06d89f6fc9c65149947683068da 100644 (file)
@@ -84,7 +84,7 @@ class  UVector64;
   *
   * @stable ICU 2.4
   */
-class U_I18N_API RegexPattern U_FINAL : public UObject {
+class U_I18N_API RegexPattern final : public UObject {
 public:
 
     /**
@@ -656,7 +656,7 @@ private:
  *
  * @stable ICU 2.4
  */
-class U_I18N_API RegexMatcher U_FINAL : public UObject {
+class U_I18N_API RegexMatcher final : public UObject {
 public:
 
     /**
index 6f80194e644d2fa5dd20fb3dbb8cf2b706dcf2db..b916aebf246015e9cb1a947af197c08ea81f7c99 100644 (file)
@@ -132,7 +132,7 @@ U_NAMESPACE_BEGIN
  * @since ICU 2.0
  */
 
-class U_I18N_API StringSearch U_FINAL : public SearchIterator
+class U_I18N_API StringSearch final : public SearchIterator
 {
 public:
 
index 3fac5ef766e9c475c32d712e35e804c3787a3e93..43cf35d1a81b4c391a0c4af211df44e1a2829aa4 100644 (file)
@@ -112,7 +112,7 @@ class UVector64;
  * Note, RuleBasedCollator is not to be subclassed.
  * @see        Collator
  */
-class U_I18N_API RuleBasedCollator U_FINAL : public Collator {
+class U_I18N_API RuleBasedCollator final : public Collator {
 public:
     /**
      * RuleBasedCollator constructor. This takes the table rules and builds a