[PATCH] Prototype patch to support <math.h> as a conforming C++ header in addition to <cmath>.

Chandler Carruth chandlerc at gmail.com
Fri Mar 13 11:06:59 PDT 2015


Hi mclow.lists, rsmith,

This extracts the conformance fixing aspects of <cmath> (replacing macros with
inline functions) into a <math.h> which wraps the system <math.h>.

This should have no functionality change for <cmath> but will cause
includes of <math.h> to be modular and place nicely in C++ code using
libc++.

Clearly this isn't ready to commit -- it doesn't have a synopsis and I would
rather fix all of the related <cfoo> headers in a single patch, but it should
at least clarify the nature of the approach.

http://reviews.llvm.org/D8323

Files:
  include/cmath
  include/math.h

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8323.21939.patch
Type: text/x-patch
Size: 14209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150313/5379c1ea/attachment.bin>


More information about the cfe-commits mailing list