summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/stringstatic.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-16 09:16:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-16 09:16:55 +0200
commit63d94a6c507015b2094e4f16f2b7b5b3a6015d20 (patch)
treeab6a3115f39458a6542b721f2eda503db2b0f765 /compilerplugins/clang/stringstatic.cxx
parentaff3d8dbacf67c4109ea70770719f8ebfa326873 (diff)
Fix check for aMinusSign in chart2/inc/SpecialUnicodes.hxx
Change-Id: I15e344874d90cc38acb219e7c07579d68af89043
Diffstat (limited to 'compilerplugins/clang/stringstatic.cxx')
-rw-r--r--compilerplugins/clang/stringstatic.cxx9
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()