]> granicus.if.org Git - clang/commit
Change Type::isFloatingType() to reflect the actual definition of a
authorDouglas Gregor <dgregor@apple.com>
Tue, 22 Jun 2010 22:12:46 +0000 (22:12 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 22 Jun 2010 22:12:46 +0000 (22:12 +0000)
commit8eee119bf4f1693dde17b8552c1f9f81bf2b681e
tree601a85f32ae7619aeae6101e12360190f6b7df06
parentbe6d8e3bc409fe70964e5fdb675571fde37a59d0
Change Type::isFloatingType() to reflect the actual definition of a
"floating type" in C, which does not include vector types. Introduce
Type::hasFloatingRepresentation() for the places where we want to know
whether the underlying representation is one or more floating-point
values. Remove some hacks we had where the former behavior of
Type::isFloatingType() was at odds with the language definition of the
term.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106584 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/CanonicalType.h
include/clang/AST/Type.h
lib/AST/Type.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp