llvm-project/clang/lib
Leonard Chan e5597ad9f3 [Fixed Point Arithmetic] Fix for bug where integer literals could be treated as fixed point literals
This addresses a bug brought up in https://bugs.llvm.org/show_bug.cgi?id=38161 where integer literals could be treated as fixed point types and throw errors related to fixed point types when the 'k' or 'r' suffix used. The fix also addresses the second issue brought up with the assertion by not treating integers as fixed point types in the first place.

Integers that have suffixes 'k' and 'r' now throw the error `invalid suffix 'k/r' on integer constant`.

A few more tests were also added to ensure that fixed point types, and any errors/warnings related to them, are limited to C for now.

Prior discussion also at https://reviews.llvm.org/D46915.

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

llvm-svn: 337289
2018-07-17 14:58:49 +00:00
..
ARCMigrate Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
AST [ASTImporter] Fix poisonous structural equivalence cache 2018-07-17 12:39:27 +00:00
ASTMatchers [ASTMatchers] Introduce Objective-C matchers `hasReceiver` and `isInstanceMessage` for ObjCMessageExpr 2018-07-16 20:22:12 +00:00
Analysis [CFG] [analyzer] Allow elidable copies to have more than one arguments. 2018-07-17 00:57:57 +00:00
Basic Always use __mcount on NetBSD. Some platforms don't provide _mcount. 2018-07-17 13:13:34 +00:00
CodeGen [OPENMP] Fix checks for declare target link entries. 2018-07-16 20:05:25 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver For NetBSD, unwind data is emitted by default, so also enable frame 2018-07-17 12:38:57 +00:00
Edit Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Format [clang-format/ObjC] Put ObjC method arguments into one line when they fit 2018-07-09 07:08:45 +00:00
Frontend [Driver] Add -fno-digraphs 2018-07-17 04:56:22 +00:00
FrontendTool Add a new driver mode to dump compiler feature and extension options. 2018-05-31 13:57:09 +00:00
Headers [X86] Lowering integer truncation intrinsics to native IR 2018-07-10 08:22:44 +00:00
Index [Index] Add index::IndexingOptions::IndexImplicitInstantiation 2018-07-09 21:49:06 +00:00
Lex [Fixed Point Arithmetic] Fix for bug where integer literals could be treated as fixed point literals 2018-07-17 14:58:49 +00:00
Parse [Sema] Add fixit for unused lambda captures 2018-07-16 07:23:47 +00:00
Rewrite Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Sema [ASTImporter] Fix poisonous structural equivalence cache 2018-07-17 12:39:27 +00:00
Serialization PR15730/PR16986 Allow dependently typed vector_size types. 2018-07-13 19:46:04 +00:00
StaticAnalyzer [analyzer] pr37802: Fix symbolic-pointer-to-boolean casts during load. 2018-07-17 00:42:35 +00:00
Tooling [Tooling] Make standalone executor support user-provided vfs. 2018-07-12 18:32:11 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00