]> granicus.if.org Git - clang/commit
[analyzer] Suppress localization diagnostics in debug classes and methods.
authorDevin Coughlin <dcoughlin@apple.com>
Fri, 5 Feb 2016 04:22:15 +0000 (04:22 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Fri, 5 Feb 2016 04:22:15 +0000 (04:22 +0000)
commit4acb0a7d13ebc582f377efcb4c2dc020b6135fc1
tree44bc99266bd39622d4fb7bfdf6a91a108923c975
parentb18f2e9d6d1bd99dc1aee14588cfd8af994ccbef
[analyzer] Suppress localization diagnostics in debug classes and methods.

If the class or method name case-insensitively contains the term "debug",
suppress warnings about string constants flowing to user-facing UI APIs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259875 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
test/Analysis/localization.m