Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
369bddf5ad8cb1543d38d4afd12cce768292114a
/
clang
/
lib
/
Analysis
/
PrintfFormatString.cpp
7ec652a
Don't print fixits for format specifiers in cases where the fixit does not actually fix the warning. PR8781.
by Eli Friedman
· 14 years ago
8dcc466
When generating printf fixits, preserve the original formating for unsigned integers (e.g., 'x', 'o').
by Ted Kremenek
· 14 years ago
f9cbcc4
Fix whitespace.
by NAKAMURA Takumi
· 15 years ago
7c28886
7bit-ize.
by NAKAMURA Takumi
· 15 years ago
bf4832c
Add semantic checking that the "thousands grouping"
by Ted Kremenek
· 15 years ago
a322cae
Add printf format string parsing support for '
by Ted Kremenek
· 15 years ago
ad3467e
The -fshort-wchar option causes wchar_t to become unsigned, in addition to being
by Chris Lattner
· 15 years ago
9e618ed
Fix range in printf warnings for invalid conversion specifiers.
by Ted Kremenek
· 15 years ago
a369f8d
The 'X' printf type has a valid alternative form. Fixes PR8641.
by Anders Carlsson
· 15 years ago
12a37de
Previously, the printf warnings would say your arguments type was 'int' when it was really a 'char'
by Ted Kremenek
· 15 years ago
5f0c066
Fix printf format string checking for '%lc' (which expects a wint_t or compatible argument). Fixes PR 7981.
by Ted Kremenek
· 15 years ago
ea28f83
Move 'hasValidLengthModifier' from PrintfFormatSpecifier to FormatSpecifier.
by Ted Kremenek
· 15 years ago
3652195
Cleanup whitespace in switch statement. No functionality change.
by Ted Kremenek
· 15 years ago
f03e6d85
Add 'ConversionSpecifier' root class in 'analyze_format_string' namespace and
by Ted Kremenek
· 15 years ago
348d149
Rename 'UnicodeStrArg' to 'SArg'.
by Ted Kremenek
· 15 years ago
516ef22
Rename 'ConsumedSoFarArg' -> 'nArg' and 'OutIntPtrArg' to 'nArg' (scanf and printf checking).
by Ted Kremenek
· 15 years ago
1ce32be
Rename 'VoidPtrArg' to 'pArg' in printf/scanf checking.
by Ted Kremenek
· 15 years ago
563e3ed
Rename 'CStrArg' to 'sArg' for printf checking to match with the analagous enum for scanf checking.
by Ted Kremenek
· 15 years ago
ab0fe8a
Rename analyze_printf::ConversionSpecifier::IntAsCharArg to 'cArg' to match
by Ted Kremenek
· 15 years ago
0208793
Add most of the boilerplate support for scanf format string checking. This includes
by Ted Kremenek
· 15 years ago
49b4d73
Type Type::isRealFloatingType() that vectors are not floating-point
by Douglas Gregor
· 15 years ago
6e4ea2d
Printf format strings: Added some more tests and fixed some minor bugs.
by Tom Care
· 15 years ago
9eee328
Bug 7394 - Fixed toString representation of Precisions in format strings.
by Tom Care
· 15 years ago
b49ec69
Bug 7377: Fixed several bad printf format string bugs.
by Tom Care
· 15 years ago
64c235e
Extend format string type-checking to include '%p'. Fixes remaining cases PR 4468.
by Ted Kremenek
· 15 years ago
0055463
Small fixes regarding printf fix suggestions.
by Tom Care
· 15 years ago
b4e3533ce
Fix a typo that breaks the GCC build. Turns out that Clang isn't
by Douglas Gregor
· 15 years ago
b704270
Added FixIt support to printf format string checking.
by Tom Care
· 15 years ago
186508c
Fix '+=' accumulation error when parsing numeric amounts in a format string.
by Ted Kremenek
· 16 years ago
80263e5
Allow a '0' precision in format strings (as the man page says it is okay).
by Ted Kremenek
· 16 years ago
d166819
For printf format string checking, add support for positional format strings.
by Ted Kremenek
· 16 years ago
4a49d98
For printf format string checking, move the tracking of the data argument index out of
by Ted Kremenek
· 16 years ago
74a4ce7
Add support for '%C' and '%S' printf conversion specifiers.
by Ted Kremenek
· 16 years ago
c8b188d
Refactor the logic for printf argument type-checking into analyze_printf::ArgTypeResult.
by Ted Kremenek
· 16 years ago
2a0cd59
Convert tabs to spaces.
by Ted Kremenek
· 16 years ago
1de1707
Move ParseFormatString() and FormatStringHandler back into the analyze_printf namespace.
by Ted Kremenek
· 16 years ago
016b605
Add format string type checking support for 'long double'.
by Ted Kremenek
· 16 years ago
19b70bd
Recognize 'q' as a format length modifier (from BSD).
by Daniel Dunbar
· 16 years ago
9ff0205
Add format string checking of 'double' arguments. Fixes <rdar://problem/6931734>.
by Ted Kremenek
· 16 years ago
ba775fe
Fix spacing.
by Ted Kremenek
· 16 years ago
79db7b7
Per a suggestion from Cristian Draghici, add a method to FormatSpecifier that returns the expected type of the matching data argument. It isn't complete, but should handle several of the important cases.
by Ted Kremenek
· 16 years ago
23a71a1
Enhancements to the alternate (WIP) format string checking:
by Ted Kremenek
· 16 years ago
c22f78d
Alternate format string checking: issue warnings for incomplete format specifiers.
by Ted Kremenek
· 16 years ago
94af575
Alternate format string checking: issue a warning for invalid conversion specifiers.
by Ted Kremenek
· 16 years ago
176f7d6
Yet another attempt to make the Linux buildbots happy. Apparently there are differences on how nested namespaces are handled...
by Ted Kremenek
· 16 years ago
559d89a
Move definition of FormatStringHandler::~FormatStringHandler() within namespace directives. Hopefully this will make the Linux buildbots happy.
by Ted Kremenek
· 16 years ago
5739de7
Add precision/field width checking to AlternateCheckPrintfString().
by Ted Kremenek
· 16 years ago
b5c98ef
Fix off-by-one error in ParseFormatSpecifier() when reporting the location of a null character.
by Ted Kremenek
· 16 years ago
fee0e96
Add position of conversion specifier character to 'ConversionSpecifier'.
by Ted Kremenek
· 16 years ago
08ad1cc
Rename namespace clang::printf to clang::analyze_printf to avoid problems where the reference to 'printf' is ambiguous.
by Ted Kremenek
· 16 years ago
bcbdaea
Allow HandleFormatSpecifier() to indicate that no more processing of the format string is desired.
by Ted Kremenek
· 16 years ago
c06ead6
Add '@' conversion specifier.
by Ted Kremenek
· 16 years ago
fa784e8
Remove invalid conversion specifiers from format string checking.
by Ted Kremenek
· 16 years ago
c8d9c01
Add a few more conversion specifiers to ParseFormatSpecifier (these appear in SemaChecking).
by Ted Kremenek
· 16 years ago
a2e77b4
Add skeleton for a more structured way to analyzing pring format
by Ted Kremenek
· 16 years ago