summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/floating-point-compare.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed test case to not expect a warning when one should not be emitted.Ted Kremenek2007-11-291-5/+1
| | | | | | Removed redundant test case. llvm-svn: 44426
* Added test cases for -Wfloat-equal to test comparisons against literals that ↵Ted Kremenek2007-11-291-6/+14
| | | | | | | | | can be represented exactly and inexactly by APFloats. For the former, we do not emit a warning. llvm-svn: 44425
* Updated test case to flag about comparisons against constants. We mayTed Kremenek2007-11-131-1/+1
| | | | | | invert this case (i.e., not flag a warning) in the future. llvm-svn: 44059
* Modified -Wfloat-equal logic to suppress warnings where floating point valuesTed Kremenek2007-11-131-0/+8
| | | | | | are compared against builtins such as __builtin_inf. llvm-svn: 44058
* Added -Wfloat-equal option to the driver. This makes warnings aboutTed Kremenek2007-11-131-1/+1
| | | | | | | | | floating point comparisons using == or != an opt-in rather than a default warning. Updated test case to use -Wfloat-equal. llvm-svn: 44053
* For checking for floating point comparison using == or !=, we now suppressTed Kremenek2007-10-291-0/+4
| | | | | | | | errors for cases such as "x == x". Added test case to test this feature. llvm-svn: 43447
* rename -parse-ast-print to -ast-printChris Lattner2007-10-111-1/+1
| | | | | | | rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852
* Removed option "-parse-ast-check" from clang driver. This is now implementedTed Kremenek2007-09-261-2/+2
| | | | | | | | | | | | using "-parse-ast -verify". Updated all test cases (using a sed script) that invoked -parse-ast-check to now use -parse-ast -verify. Fixed a bug where using "-verify" instead of "-parse-ast-check" would not correctly create the DiagClient needed to accumulate diagnostics. llvm-svn: 42365
* Added checking (during parsing) of comparison of floating point values using ↵Ted Kremenek2007-08-291-0/+9
== or !=. This is the same functionality gcc provides via --Wfloat-equal. llvm-svn: 41574
OpenPOWER on IntegriCloud