================ @@ -97,6 +97,17 @@ void strlen_constant2(char x) { clang_analyzer_eval(strlen(a) == 3); // expected-warning{{UNKNOWN}} } +const char *const global_str_ptr = "abcd"; ---------------- Xazax-hun wrote:
What about a non-const global pointer? Could you add a test making sure we do not calculate the wrong size in that case? https://github.com/llvm/llvm-project/pull/68368 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits