Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- e:\llvm\2015>clang-tidy "E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp" -checks=* -- -std=c++11 -fcxx-exceptions
- 16 warnings generated.
- E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp:7:9: warning: declaration of 'operator new' has no matching declaration of 'operator delete' at the same scope [cert-dcl54-cpp]
- void *operator new(size_t size) noexcept;
- ^
- E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp:9:9: warning: declaration of 'operator new[]' has no matching declaration of 'operator delete[]' at the same scope [cert-dcl54-cpp]
- void *operator new[](size_t size) noexcept;
- ^
- E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp:13:7: warning: declaration of 'operator new' has no matching declaration of 'operator delete' at the same scope [cert-dcl54-cpp]
- void *operator new(size_t size) noexcept(false);
- ^
- E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp:21:9: warning: declaration of 'operator new' has no matching declaration of 'operator delete' at the same scope [cert-dcl54-cpp]
- void *operator new(size_t size) noexcept;
- ^
- E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp:35:8: warning: declaration of 'operator delete' has no matching declaration of 'operator new' at the same scope [cert-dcl54-cpp]
- void operator delete(void *ptr) noexcept;
- ^
- E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp:37:8: warning: declaration of 'operator delete[]' has no matching declaration of 'operator new[]' at the same scope [cert-dcl54-cpp]
- void operator delete[](void *ptr) noexcept;
- ^
- E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp:67:9: warning: declaration of 'operator new' has no matching declaration of 'operator delete' at the same scope [cert-dcl54-cpp]
- void *operator new(size_t) noexcept;
- ^
- E:\llvm\llvm\tools\clang\tools\extra\test\clang-tidy\misc-new-delete-overloads.cpp:76:9: warning: declaration of 'operator new' has no matching declaration of 'operator delete' at the same scope [cert-dcl54-cpp]
- void *operator new(size_t) noexcept; // base class operator is inaccessible
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement