You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "github-actions[bot] (via GitHub)" <gi...@apache.org> on 2023/04/27 07:38:40 UTC

[GitHub] [doris] github-actions[bot] commented on a diff in pull request #19155: [Chore](build) upgrade clang-format version to 16 && move thrift to fe-common

github-actions[bot] commented on code in PR #19155:
URL: https://github.com/apache/doris/pull/19155#discussion_r1178745986


##########
be/src/common/factory_creator.h:
##########
@@ -35,21 +35,33 @@
 // during inherits
 // TODO try to allow make_unique
 //
-#define ENABLE_FACTORY_CREATOR(TypeName)                                                     \
-private:                                                                                     \
-    void* operator new(std::size_t size) { return ::operator new(size); }                    \
-    void* operator new[](std::size_t size) { return ::operator new[](size); }                \
-                                                                                             \
-public:                                                                                      \
-    void* operator new(std::size_t count, void* ptr) { return ::operator new(count, ptr); }  \
-    void operator delete(void* ptr) noexcept { ::operator delete(ptr); }                     \
-    void operator delete[](void* ptr) noexcept { ::operator delete[](ptr); }                 \
-    void operator delete(void* ptr, void* place) noexcept { ::operator delete(ptr, place); } \
-    template <typename... Args>                                                              \
-    static std::shared_ptr<TypeName> create_shared(Args&&... args) {                         \
-        return std::make_shared<TypeName>(std::forward<Args>(args)...);                      \
-    }                                                                                        \
-    template <typename... Args>                                                              \
-    static std::unique_ptr<TypeName> create_unique(Args&&... args) {                         \
-        return std::unique_ptr<TypeName>(new TypeName(std::forward<Args>(args)...));         \
+#define ENABLE_FACTORY_CREATOR(TypeName)                                             \

Review Comment:
   warning: macro is not used [clang-diagnostic-unused-macros]
   ```cpp
   #define ENABLE_FACTORY_CREATOR(TypeName)                                             \
           ^
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org