[PATCH] D45906: [Sanitizer] Internal Printf string width + left-justify.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 20 16:26:46 PDT 2018


eugenis accepted this revision.
eugenis added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/sanitizer_common/sanitizer_printf.cc:98
 
-static int AppendString(char **buff, const char *buff_end, int precision,
-                        const char *s) {
+static int AppendString(char **buff, const char *buff_end, int width,
+                        int max_chars, const char *s) {
----------------
the fact that "width" can be negative definitely deserves a comment


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D45906





More information about the llvm-commits mailing list