[PATCH] D49091: Warn about usage of __has_include/__has_include_next in macro expansions
Tor Arne Vestbø via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 9 22:19:09 PST 2019
torarnv added a comment.
https://codereview.qt-project.org/c/qt/qtbase/+/284037 has merged and will be part of Qt 5.14.1
I went with treating them all under one strategy:
#ifndef __has_foo
#define __has_foo(x) 0
#endif
This includes `__has_builtin`, `__has_feature`, `__has_attribute`, `__has_cpp_attribute`, `__has_include`, and `__has_include_next`.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D49091/new/
https://reviews.llvm.org/D49091
More information about the cfe-commits
mailing list