http://llvm.org/bugs/show_bug.cgi?id=11321
Bug #: 11321
Summary: Warn on folded constants that look like bad date math
Product: clang
Version: 2.8
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
In celebration of the DST transition today, please consider adding a static
analyzer check for the folded constant 86400 (24*60*60), either integer or
floating point. Days do not necessarily have 86400 seconds and any occurrence
of this constant almost certainly represents such an assumption.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs