[LLVMbugs] [Bug 23951] New: __has_include not reported by "clang -dM -E - < /dev/null"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 25 08:43:52 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23951
Bug ID: 23951
Summary: __has_include not reported by "clang -dM -E - <
/dev/null"
Product: clang
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: nikolai.kosjar at digia.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
__has_include (and also *_next) is *not* reported by "clang -dM -E - <
/dev/null" but it's there:
~/work/clang-bugs % clang-3.6 --version
Ubuntu clang version 3.6.0-2ubuntu1~trusty1 (tags/RELEASE_360/final) (based on
LLVM 3.6.0)
Target: x86_64-pc-linux-gnu
Thread model: posix
~/work/clang-bugs % cat confirmPredefinedHasIncludeMacro.cpp
#if defined(__has_include)
# error "OK, __has_include"
#endif
~/work/clang-bugs % clang-3.6 -dM -E - < /dev/null | grep has_include
zsh: done clang-3.6 -dM -E - < /dev/null |
zsh: exit 1 grep --color=auto has_include
By the way, is this the preferred way to check for predefined macros in clang?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150625/b6f07da6/attachment.html>
More information about the llvm-bugs
mailing list