diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-02-22 14:35:31 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-02-22 16:43:46 +0100 |
commit | b0f1672a5db0379b0e5f424038fc38f5d699eceb (patch) | |
tree | 63fb89fa4616bd0a0e4a171e7aef4823f27564de /compilerplugins/clang/data.cxx | |
parent | 68a323c97ad817faf95d2569b0965c4654044f60 (diff) |
Avoid loplugin:refounting in uninstantiated template code
...causing e.g. false positive
> In file included from shell/source/win32/spsupp/COMOpenDocuments_x64.cxx:11:
> In file included from shell/source/win32/spsupp/COMOpenDocuments.cxx:16:
> In file included from shell/inc/spsupp\COMOpenDocuments.hpp:21:
> shell/inc/spsupp/COMRefCounted.hpp(35,13): error: cppu::OWeakObject subclass 'COMRefCounted<Interfaces...>' being deleted via delete, should be managed via rtl::Reference [loplugin:refcounting]
> delete this;
> ^~~~~~~~~~~
with clang-cl on Windows. (Ideally, this would be made up for with setting this
plugins' shouldVisitTemplateInstantiations() to true, see the TODO added in
compilerplugins/clang/test/refcounting.cxx, but that would cause lots of other
findings, so is left out for now.)
Change-Id: Ia52b13498a0c7169b37ecf4882ce84c3cc1d2cc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111339
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang/data.cxx')
0 files changed, 0 insertions, 0 deletions