[all-commits] [llvm/llvm-project] 67d483: [libcxx][test] Use TEST_HAS_BUILTIN in test code

Casey Carter via All-commits all-commits at lists.llvm.org
Thu Jan 20 01:47:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67d483aba23c95bf4501992de6417046e6685070
      https://github.com/llvm/llvm-project/commit/67d483aba23c95bf4501992de6417046e6685070
  Author: Casey Carter <Casey at Carter.net>
  Date:   2022-01-20 (Thu, 20 Jan 2022)

  Changed paths:
    M libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp
    M libcxx/test/support/test_macros.h

  Log Message:
  -----------
  [libcxx][test] Use TEST_HAS_BUILTIN in test code

... rather than using `__has_builtin` directly. This both (1) allows a compiler that doesn't speak `__has_builtin` to workaround with preprocessor magic, and (2) avoids diagnostics about things that look like function like macros after `#if` but are not.




More information about the All-commits mailing list