summaryrefslogtreecommitdiff
path: root/compilerplugins/clang
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r--compilerplugins/clang/ostr.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/compilerplugins/clang/ostr.cxx b/compilerplugins/clang/ostr.cxx
index 9675913c8576..d0290aad1f90 100644
--- a/compilerplugins/clang/ostr.cxx
+++ b/compilerplugins/clang/ostr.cxx
@@ -46,14 +46,6 @@ public:
= bool(loplugin::TypeCheck(i.first->getType()).Class("OUStringLiteral"));
if (i.second.singleUse == nullptr)
{
- if (!(i.first->getDeclContext()->isFunctionOrMethod()
- || compiler.getSourceManager().isInMainFile(i.first->getLocation())
- || compiler.getDiagnosticOpts().VerifyDiagnostics))
- {
- //TODO, rewriting these in include files could trigger
- // loplugin:redundantfcast in other translation units:
- continue;
- }
if (rewriter != nullptr)
{
auto e = i.first->getInit()->IgnoreParenImpCasts();