summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/fakebool.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-15 16:43:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-15 19:15:47 +0100
commit565bcfbdcbebc68c07eee9a30e0f82b0fdf7e846 (patch)
tree840ec20b84f7ac69ec85b24db42526f4914d96b6 /compilerplugins/clang/fakebool.cxx
parentno need to construct a parser in ImportStoredChapterNumberingRules (diff)
downloadcore-565bcfbdcbebc68c07eee9a30e0f82b0fdf7e846.tar.gz
core-565bcfbdcbebc68c07eee9a30e0f82b0fdf7e846.zip
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/clang/fakebool.cxx')
-rw-r--r--compilerplugins/clang/fakebool.cxx5
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(