Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. 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
  2. 16 warnings generated.
  3. 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]
  4. void *operator new(size_t size) noexcept;
  5. ^
  6. 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]
  7. void *operator new[](size_t size) noexcept;
  8. ^
  9. 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]
  10. void *operator new(size_t size) noexcept(false);
  11. ^
  12. 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]
  13. void *operator new(size_t size) noexcept;
  14. ^
  15. 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]
  16. void operator delete(void *ptr) noexcept;
  17. ^
  18. 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]
  19. void operator delete[](void *ptr) noexcept;
  20. ^
  21. 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]
  22. void *operator new(size_t) noexcept;
  23. ^
  24. 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]
  25. void *operator new(size_t) noexcept; // base class operator is inaccessible
  26. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement