From: Kristof Umann Date: Fri, 2 Nov 2018 19:48:56 +0000 (+0000) Subject: Attempt to fix 'logical operation on address of string constant' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90458949c1c82c72ec45267838ad6b313d25b745;p=clang Attempt to fix 'logical operation on address of string constant' Caused a lot of warnings for Windows: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/21178/steps/build/logs/warnings%20%2867%29 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346033 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp b/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp index 03d2ef30c7..8a26735b00 100644 --- a/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp +++ b/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp @@ -178,7 +178,8 @@ void ento::printAnalyzerConfigList(raw_ostream &out) { { \ CMDFLAG, \ llvm::Twine(llvm::Twine() + "(" + \ - (#TYPE == "StringRef" ? "string" : #TYPE ) + ") " DESC \ + (StringRef(#TYPE) == "StringRef" ? "string" : #TYPE ) + \ + ") " DESC \ " (default: " #DEFAULT_VAL ")").str() \ }, @@ -187,7 +188,8 @@ void ento::printAnalyzerConfigList(raw_ostream &out) { { \ CMDFLAG, \ llvm::Twine(llvm::Twine() + "(" + \ - (#TYPE == "StringRef" ? "string" : #TYPE ) + ") " DESC \ + (StringRef(#TYPE) == "StringRef" ? "string" : #TYPE ) + \ + ") " DESC \ " (default: " #SHALLOW_VAL " in shallow mode, " #DEEP_VAL \ " in deep mode)").str() \ },