diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-15 16:43:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-15 19:15:47 +0100 |
commit | 565bcfbdcbebc68c07eee9a30e0f82b0fdf7e846 (patch) | |
tree | 840ec20b84f7ac69ec85b24db42526f4914d96b6 /compilerplugins | |
parent | 3efa861bbb10db0a98d5911fd9365da89f1c0a71 (diff) |
Fix loplugin:fakebool for Objective C
...ignoring uses of "BOOL" in Objective C for now
Change-Id: I3eb48dc8d2592285f03f75dc7bc1b21e2383644d
Reviewed-on: https://gerrit.libreoffice.org/82803
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/fakebool.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/fakebool.cxx b/compilerplugins/clang/fakebool.cxx index 1dbb535ceef9..99fbf95e3d29 100644 --- a/compilerplugins/clang/fakebool.cxx +++ b/compilerplugins/clang/fakebool.cxx @@ -931,7 +931,10 @@ bool FakeBool::VisitFieldDecl(FieldDecl const * decl) { return true; } TagDecl const * td = dyn_cast<TagDecl>(decl->getDeclContext()); - assert(td != nullptr); + if (td == nullptr) { + //TODO: ObjCInterface + return true; + } if (!(((td->isStruct() || td->isUnion()) && td->isExternCContext()) || isInUnoIncludeFile( compiler.getSourceManager().getSpellingLoc( |