commit | 37829b56a1ef3e98868aebb39a32aca87ab8805e | [log] [tgz] |
---|---|---|
author | Kristof Umann <dkszelethus@gmail.com> | Fri Nov 02 19:48:56 2018 +0000 |
committer | Kristof Umann <dkszelethus@gmail.com> | Fri Nov 02 19:48:56 2018 +0000 |
tree | 8befd07d884f6b0c30c28e452b43adad23d85b61 | |
parent | 88e8763baef3d6af562ce1549245878adc6bc84b [diff] [blame] |
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 llvm-svn: 346033
diff --git a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp index 03d2ef3..8a26735 100644 --- a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp +++ b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
@@ -178,7 +178,8 @@ { \ CMDFLAG, \ llvm::Twine(llvm::Twine() + "(" + \ - (#TYPE == "StringRef" ? "string" : #TYPE ) + ") " DESC \ + (StringRef(#TYPE) == "StringRef" ? "string" : #TYPE ) + \ + ") " DESC \ " (default: " #DEFAULT_VAL ")").str() \ }, @@ -187,7 +188,8 @@ { \ 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() \ },