It's really easy to overflow an int. This patch adds APIs to prevent that
Note that I chose this interface (as opposed to, let's say, add CXEval_UInt, for example), to keep working code working as much as possible.
Paths
| Differential D26788
libclang: Add APIs to check the result of an integer expression in CXEvalResult without overflow. ClosedPublic Authored by emilio on Nov 16 2016, 7:22 PM.
Details
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 1 2016, 3:51 PM
Revision Contents
Diff 78312 include/clang-c/Index.h
test/Index/evaluate-cursor.cpp
tools/c-index-test/c-index-test.c
tools/libclang/CIndex.cpp
tools/libclang/libclang.exports
|