[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Fri Feb 10 16:50:14 UTC 2017
compilerplugins/clang/stringconstant.cxx | 14 --------------
1 file changed, 14 deletions(-)
New commits:
commit 57a505e8e9f3fe655ad0d4e812be4fd3c102bcc1
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Feb 10 17:49:45 2017 +0100
Remove unnecessary blacklists from loplugin:stringconstant
Change-Id: I866a421a2b3e8830aaa7096adaef945a2264195e
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx
index 5bf4392..d7f34f9 100644
--- a/compilerplugins/clang/stringconstant.cxx
+++ b/compilerplugins/clang/stringconstant.cxx
@@ -1062,20 +1062,6 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
return true;
}
- StringRef file(compiler.getSourceManager().getFilename(
- compiler.getSourceManager().getSpellingLoc(expr->getLocStart())));
- if (file == SRCDIR "/sal/qa/rtl/oustringbuffer/test_oustringbuffer_tostring.cxx")
- {
- return true;
- }
- // there is some template magic here I don't know how to work around
- if (file.startswith(SRCDIR "/connectivity"))
- {
- return true;
- }
- if (isInUnoIncludeFile(expr->getLocStart())) {
- return true;
- }
auto consDecl = expr->getConstructor();
for (unsigned i = 0; i != consDecl->getNumParams(); ++i) {
auto t = consDecl->getParamDecl(i)->getType();
More information about the Libreoffice-commits
mailing list