Warn about comparisons between arrays and improve self-comparison
warnings, from Troy Straszheim! Fixes PR6163. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105631 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 4 additions, 2 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaExpr.cpp 45 additions, 11 deletionslib/Sema/SemaExpr.cpp
- test/Sema/compare.c 3 additions, 2 deletionstest/Sema/compare.c
- test/Sema/ext_vector_comparisons.c 30 additions, 0 deletionstest/Sema/ext_vector_comparisons.c
- test/Sema/self-comparison.c 43 additions, 2 deletionstest/Sema/self-comparison.c
- test/SemaCXX/overloaded-operator.cpp 7 additions, 0 deletionstest/SemaCXX/overloaded-operator.cpp
- test/SemaCXX/warn-self-comparisons.cpp 5 additions, 0 deletionstest/SemaCXX/warn-self-comparisons.cpp
Loading
Please register or sign in to comment