llvm-project/clang/lib/Sema
Erich Keane 7130a93934 Correct warning on Float->Integer conversions.
As identified and briefly discussed here:
https://bugs.llvm.org/show_bug.cgi?id=37305

Converting a floating point number to an integer type when
the integral part is out of the range of the integer type is
undefined behavior in C. Additionally, CodeGen emits an undef
in this situation.

HOWEVER, we've been giving a warning that says that the value is
changed. This patch corrects the warning to list that it is actually
undefined behavior.

Differential Revision: https://reviews.llvm.org/D46535

llvm-svn: 331673
2018-05-07 20:52:56 +00:00
..
AnalysisBasedWarnings.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
AttributeList.cpp [Sema] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-02-20 02:16:28 +00:00
CMakeLists.txt Enabling the /bigobj flag for SemaDeclAttr.cpp. 2017-05-12 14:30:49 +00:00
CodeCompleteConsumer.cpp [Sema] Revert r329346 because of memory sanitizer failures. 2018-04-05 22:15:42 +00:00
CoroutineStmtBuilder.h [coroutines] Pass coro func args to promise ctor 2018-01-24 22:15:42 +00:00
DeclSpec.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
DelayedDiagnostic.cpp [Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots. 2018-03-29 17:34:09 +00:00
IdentifierResolver.cpp [Sema] Revert r329346 because of memory sanitizer failures. 2018-04-05 22:15:42 +00:00
JumpDiagnostics.cpp [ObjC] Allow declaring __strong pointer fields in structs in Objective-C 2018-02-28 07:15:55 +00:00
MultiplexExternalSemaSource.cpp [modules] Correctly overload getModule in the MultiplexExternalSemaSource 2018-01-22 15:27:25 +00:00
Scope.cpp Fix Scope::dump() 2018-01-18 04:28:56 +00:00
ScopeInfo.cpp [coroutines] Pass coro func args to promise ctor 2018-01-24 22:15:42 +00:00
Sema.cpp Revert r329684 (and follow-ups 329693, 329714). See discussion on https://reviews.llvm.org/D43578. 2018-04-10 18:53:28 +00:00
SemaAccess.cpp Revert r325321 "[Sema] Take into account the current context when checking the" 2018-02-16 12:06:32 +00:00
SemaAttr.cpp Fix typos in clang 2018-04-06 15:14:32 +00:00
SemaCUDA.cpp [HIP] Add hip input kind and codegen for kernel launching 2018-04-25 01:10:37 +00:00
SemaCXXScopeSpec.cpp Add support for editor placeholders to Clang 2017-04-19 08:58:56 +00:00
SemaCast.cpp Fix typos in clang 2018-04-06 15:14:32 +00:00
SemaChecking.cpp Correct warning on Float->Integer conversions. 2018-05-07 20:52:56 +00:00
SemaCodeComplete.cpp Fix typos in clang 2018-04-06 15:14:32 +00:00
SemaConsumer.cpp
SemaCoroutine.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
SemaDecl.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
SemaDeclAttr.cpp PR37189 Fix incorrect end source location and spelling for a split '>>' token. 2018-04-30 05:25:48 +00:00
SemaDeclCXX.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
SemaDeclObjC.cpp [ObjC] Supress the 'implementing unavailable method' warning when 2018-05-03 01:12:06 +00:00
SemaExceptionSpec.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
SemaExpr.cpp Implement P0482R2, support for char8_t type. 2018-05-01 05:02:45 +00:00
SemaExprCXX.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
SemaExprMember.cpp Parse A::template B as an identifier rather than as a template-id with no 2018-04-27 02:00:13 +00:00
SemaExprObjC.cpp Fix typos in clang 2018-04-06 15:14:32 +00:00
SemaFixItUtils.cpp [Sema] Revert r329346 because of memory sanitizer failures. 2018-04-05 22:15:42 +00:00
SemaInit.cpp Implement P0482R2, support for char8_t type. 2018-05-01 05:02:45 +00:00
SemaLambda.cpp [SemaCXX] _Pragma("clang optimize off") not affecting lambda. 2018-03-26 13:48:03 +00:00
SemaLookup.cpp [clang] Change std::sort to llvm::sort in response to r327219 2018-03-27 16:50:00 +00:00
SemaObjCProperty.cpp [ObjC] The absence of ownership qualifiers on an ambiguous property leads 2018-05-02 22:40:19 +00:00
SemaOpenMP.cpp [OPENMP] Analyze the type of the mapped entity instead of its base. 2018-05-02 18:44:10 +00:00
SemaOverload.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
SemaPseudoObject.cpp Clean carriage returns from lib/ and include/. NFC. 2018-04-16 08:31:08 +00:00
SemaStmt.cpp [OPENMP] Enable c++ exceptions outside of the target constructs iff they are 2018-05-02 16:52:07 +00:00
SemaStmtAsm.cpp Re-land "[Sema] Make getCurFunction() return null outside function parsing" 2018-03-12 21:43:02 +00:00
SemaStmtAttr.cpp Now that C++17 is official (https://www.iso.org/standard/68564.html), start changing the C++1z terminology over to C++17. NFC intended, these are all mechanical changes. 2017-12-04 20:27:34 +00:00
SemaTemplate.cpp Fix explicit template parameter reporting for narrowing conversions 2018-05-07 17:05:20 +00:00
SemaTemplateDeduction.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
SemaTemplateInstantiate.cpp Sink PrettyDeclStackTrace down to the AST library 2018-03-23 00:07:18 +00:00
SemaTemplateInstantiateDecl.cpp Revert rC330794 and some dependent tiny bug fixes 2018-04-26 00:42:40 +00:00
SemaTemplateVariadic.cpp Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
SemaType.cpp Allow writing calling convention attributes on function types. 2018-05-03 15:33:50 +00:00
TreeTransform.h Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
TypeLocBuilder.cpp [Sema] Fix bug in TypeLocBuilder::pushImpl 2016-02-18 21:05:09 +00:00
TypeLocBuilder.h Retire llvm::alignOf in favor of C++11 alignof. 2016-10-20 14:27:22 +00:00