aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/ReturnStackAddressChecker.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-01 23:36:03 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-01 23:36:03 +0000
commit677e4feebe4b3485504860d991d700cc3b933961 (patch)
tree2922eed5d8af67722b41aca16cb82b116fc234aa /lib/Checker/ReturnStackAddressChecker.cpp
parent4581581881d3f7349bf5a4b39d761bce688f9164 (diff)
Improve handling of enumerator values for C and C++, including:
- In C++, prior to the closing '}', set the type of enumerators based on the type of their initializer. Don't perform unary conversions on the enumerator values. - In C++, handle overflow when an enumerator has no initializer and its value cannot be represented in the type of the previous enumerator. - In C, handle overflow more gracefully, by complaining and then falling back to the C++ rules. - In C, if the enumerator value is representable in an int, convert the expression to the type 'int'. Fixes PR5854 and PR4515. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/ReturnStackAddressChecker.cpp')
0 files changed, 0 insertions, 0 deletions