aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-22 20:47:51 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:34 -0300
commit557e41b119f052e9f20286e8eb6432f31ba50c07 (patch)
tree1e818f9225fcbe9d944c7d1cf14c077905308ee4 /clint.py
parent12c8094daeb0c7e055e5ea5382e1ae4b0e87d36f (diff)
downloadrneovim-557e41b119f052e9f20286e8eb6432f31ba50c07.tar.gz
rneovim-557e41b119f052e9f20286e8eb6432f31ba50c07.tar.bz2
rneovim-557e41b119f052e9f20286e8eb6432f31ba50c07.zip
Use portable format specifiers: Clint advice & other.
- Modify Clint advice to reflect preference for fixed sized macros. - Cleanup comment to eliminate referecen to "%ld".
Diffstat (limited to 'clint.py')
-rwxr-xr-xclint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clint.py b/clint.py
index d0770e913c..140b20cad7 100755
--- a/clint.py
+++ b/clint.py
@@ -1428,7 +1428,7 @@ def CheckForNonStandardConstructs(filename, clean_lines, linenum,
not standard C++. Warning about these in lint is one way to ease the
transition to new compilers.
- put storage class first (e.g. "static const" instead of "const static").
- - "%lld" instead of %qd" in printf-type functions.
+ - "%" PRId64 instead of %qd" in printf-type functions.
- "%1$d" is non-standard in printf-type functions.
- "\%" is an undefined character escape sequence.
- text after #endif is not allowed.
@@ -1454,7 +1454,7 @@ def CheckForNonStandardConstructs(filename, clean_lines, linenum,
if Search(r'printf\s*\(.*".*%[-+ ]?\d*q', line):
error(filename, linenum, 'runtime/printf_format', 3,
- '%q in format strings is deprecated. Use %ll instead.')
+ '"%q" in format strings is deprecated. Use "%" PRId64 instead.')
if Search(r'printf\s*\(.*".*%\d+\$', line):
error(filename, linenum, 'runtime/printf_format', 2,