[PATCH] D159138: [clang][Sema] Fix format size estimator's handling of %o, %x, %X with alternative form

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 30 09:48:49 PDT 2023


nickdesaulniers added a comment.

Mind adding tests for `%#X` and `%#o` as well, since you're changing the behavior of those, too?

I think it would also be good to have explicit tests for `%o` and `%b` where the value being printed was and was not `0`.  IIUC, we cannot diagnose those (unless a literal value is being printed)?

(Thanks for finding that one of the kernel cases was a false positive!)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159138/new/

https://reviews.llvm.org/D159138



More information about the cfe-commits mailing list