Remove unnecessary blacklists from loplugin:stringconstant

Change-Id: I866a421a2b3e8830aaa7096adaef945a2264195e
This commit is contained in:
Stephan Bergmann
2017-02-10 17:49:45 +01:00
parent 2d732b498b
commit 57a505e8e9

View File

@@ -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();