summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-strlcpycat-size.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename -Wstrl-incorrect-size to -Wstrlcpy-strlcat-size. This warning really ↵Ted Kremenek2011-08-191-1/+1
| | | | | | is just specific to strlcpy and strlcat. llvm-svn: 138038
* Enhance -Wstrl-incorrect-size to not report a FIXIT for destinations that ↵Ted Kremenek2011-08-181-0/+27
| | | | | | are flexible arrays or have size 1. llvm-svn: 138004
* Reapply r137903, but fix the definition of size_t in the test case to use ↵Ted Kremenek2011-08-181-0/+28
| | | | | | | | __SIZE_TYPE__ (and hence be portable). Also, change the warning to -Wstrl-incorrect-size. llvm-svn: 137980
* Revert r137903, "Add experimental -Wstrlcpy-size warning that looks to see ↵Ted Kremenek2011-08-181-28/+0
| | | | | | | | if the size argument for strlcpy/strlcat is the size of the *source*, and not the size of the *destination*. This warning is off by default (for now)." This currently doesn't work on Windows. llvm-svn: 137920
* Add experimental -Wstrlcpy-size warning that looks to see if the size ↵Ted Kremenek2011-08-171-0/+28
argument for strlcpy/strlcat is the size of the *source*, and not the size of the *destination*. This warning is off by default (for now). Warning logic provided by Geoff Keating. llvm-svn: 137903
OpenPOWER on IntegriCloud