diff options
Diffstat (limited to 'compilerplugins/clang/stringstatic.cxx')
-rw-r--r-- | compilerplugins/clang/stringstatic.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/compilerplugins/clang/stringstatic.cxx b/compilerplugins/clang/stringstatic.cxx index ec7b3b0ad527..4ddac65d7e07 100644 --- a/compilerplugins/clang/stringstatic.cxx +++ b/compilerplugins/clang/stringstatic.cxx @@ -47,9 +47,6 @@ void StringStatic::run() // has a mix of literals and and refs to external OUStrings if (fn == SRCDIR "/ucb/source/ucp/webdav-neon/ContentProperties.cxx") return; - // we could use OUStringLiteral1 here, but we'd need to update OUStringLiteral1 to allow BMP chars first - if (fn == SRCDIR "/include/chart2/SpecialUnicodes.hxx") - return; TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); @@ -69,6 +66,12 @@ bool StringStatic::VisitVarDecl(VarDecl const* varDecl) if (ignoreLocation(varDecl)) { return true; } + // We could use OUStringLiteral1 here, but we'd need to update OUStringLiteral1 to allow BMP chars first: + if (compiler.getSourceManager().getFilename(varDecl->getLocation()) + == SRCDIR "/chart2/inc/SpecialUnicodes.hxx") + { + return true; + } QualType qt = varDecl->getType(); if (!varDecl->hasGlobalStorage() |