diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-13 15:18:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-13 17:32:43 +0200 |
commit | 6925007c2a86d45a8d71f08ef46e56bb3eda21e3 (patch) | |
tree | 1d1b6581f3e4bf7252759acaa9a4a317b130d747 /compilerplugins | |
parent | 77e5a6d857bd3a1a6a59891aab9b5d9bb9bc85cf (diff) |
Simplify jfw_findAllJREs
...dropping remaining uses of CJavaInfo
Change-Id: I76afd5af927233712181f58b14fe6f4c1a9c15c2
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/useuniqueptr.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compilerplugins/clang/useuniqueptr.cxx b/compilerplugins/clang/useuniqueptr.cxx index 9b607ecffea3..f038bd9c1485 100644 --- a/compilerplugins/clang/useuniqueptr.cxx +++ b/compilerplugins/clang/useuniqueptr.cxx @@ -43,12 +43,6 @@ bool UseUniquePtr::VisitCXXDestructorDecl(const CXXDestructorDecl* destructorDec if (isInUnoIncludeFile(destructorDecl)) return true; -/* - StringRef aFileName = compiler.getSourceManager().getFilename(compiler.getSourceManager().getSpellingLoc(destructorDecl->getLocStart())); - // weird stuff, passing pointers to internal members of struct - if (aFileName.startswith(SRCDIR "/include/jvmfwk/framework.hxx")) - return true; -*/ if (destructorDecl->getBody() == nullptr) return true; const CompoundStmt* compoundStmt = dyn_cast< CompoundStmt >( destructorDecl->getBody() ); @@ -88,9 +82,6 @@ bool UseUniquePtr::VisitCXXDestructorDecl(const CXXDestructorDecl* destructorDec StringRef aFileName = compiler.getSourceManager().getFilename(compiler.getSourceManager().getSpellingLoc(pFieldDecl->getLocStart())); if (aFileName.startswith(WORKDIR)) return true; - // weird stuff, passing pointers to internal members of struct - if (aFileName == SRCDIR "/jvmfwk/source/framework.hxx") - return true; // passes and stores pointers to member fields if (aFileName.startswith(SRCDIR "/sot/source/sdstor/stgdir.hxx")) return true; |