Kaydet (Commit) aab03225 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Disable loplugin:casttovoid when --disable-assert-always-abort

...as finding uses of variables in arguments to expand-to-nothing assert macros
is just not implemented not implemented.

Change-Id: Iacb3bd25d03eca13ac8ff3942f98e46dee3286b9
Reviewed-on: https://gerrit.libreoffice.org/47200Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst b7cb509d
...@@ -336,6 +336,9 @@ private: ...@@ -336,6 +336,9 @@ private:
std::stack<QualType> returnTypes_; std::stack<QualType> returnTypes_;
void run() override { void run() override {
if (compiler.getPreprocessor().getIdentifierInfo("NDEBUG")->hasMacroDefinition()) {
return;
}
if (!TraverseDecl(compiler.getASTContext().getTranslationUnitDecl())) { if (!TraverseDecl(compiler.getASTContext().getTranslationUnitDecl())) {
return; return;
} }
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#undef NDEBUG
#include <cassert> #include <cassert>
#define CAST_N3 (void) n3 #define CAST_N3 (void) n3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment