diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-10-19 15:11:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-10-19 22:01:31 +0200 |
commit | c4cec8647faf130111d67302e75998ddff4c0792 (patch) | |
tree | ad42b521fe2b671a93529cfa4211f271a893d439 /compilerplugins/clang | |
parent | 3aef606f2758172a27718a06fea0ff9080e4d80f (diff) |
clang-cl: Adapt Windows-specific code to extended loplugin:cstylecast
...after 1ebeacb20ad0165e399629fcfd7795ad0da3edf8 "Extend loplugin:cstylecast to
certain function-style casts"
Change-Id: I99bd383f5b3bee861d442d2e1be6ecd356b78315
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104523
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/test/cstylecast.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/test/cstylecast.cxx b/compilerplugins/clang/test/cstylecast.cxx index 916896d54db9..8d212700ae32 100644 --- a/compilerplugins/clang/test/cstylecast.cxx +++ b/compilerplugins/clang/test/cstylecast.cxx @@ -23,7 +23,7 @@ using T = unsigned int; void FunctionalCast(void* p) { - // expected-error@+1 {{Function-style cast from 'void *' to 'sal_IntPtr' (aka 'long') (performs: reinterpret_cast) (PointerToIntegral) [loplugin:cstylecast]}} + // expected-error-re@+1 {{Function-style cast from 'void *' to 'sal_IntPtr' (aka '{{.+}}') (performs: reinterpret_cast) (PointerToIntegral) [loplugin:cstylecast]}} auto n = sal_IntPtr(p); (void(n)); // no warning expected (outer parens to disambiguate expr vs. decl) } |