[PATCH] D33080: [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 11 23:35:54 PDT 2017


EricWF updated this revision to Diff 98725.
EricWF added a comment.

- Fix missing `_LIBCPP_POP_MACROS` in `<__threading_support>`.
- Add test that each header is unaffected by `min` and `max` macros and that the macros themselves are unaffected.


https://reviews.llvm.org/D33080

Files:
  include/__bit_reference
  include/__config
  include/__hash_table
  include/__mutex_base
  include/__split_buffer
  include/__std_stream
  include/__string
  include/__threading_support
  include/__tree
  include/__undef_macros
  include/__undef_min_max
  include/algorithm
  include/array
  include/bitset
  include/chrono
  include/deque
  include/experimental/algorithm
  include/experimental/dynarray
  include/experimental/functional
  include/experimental/memory_resource
  include/experimental/numeric
  include/experimental/optional
  include/experimental/string_view
  include/forward_list
  include/fstream
  include/istream
  include/limits
  include/list
  include/locale
  include/memory
  include/module.modulemap
  include/mutex
  include/numeric
  include/optional
  include/random
  include/ratio
  include/regex
  include/shared_mutex
  include/sstream
  include/streambuf
  include/string
  include/string_view
  include/thread
  include/valarray
  include/vector
  test/libcxx/min_max_macros.sh.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33080.98725.patch
Type: text/x-patch
Size: 36258 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170512/9436d423/attachment-0001.bin>


More information about the cfe-commits mailing list