summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2018-05-15 22:38:31 +0000
committerVolodymyr Sapsai <vsapsai@apple.com>2018-05-15 22:38:31 +0000
commit85d3a702da8f937ab1a818411a2c3ba7df294279 (patch)
tree32f71dcb8b70388d62497ffb7c00c0be3d8edacf /clang/lib/Frontend/CompilerInvocation.cpp
parentcfeb646f809461177a89480bfadbc59a00c0018f (diff)
downloadbcm5719-llvm-85d3a702da8f937ab1a818411a2c3ba7df294279.tar.gz
bcm5719-llvm-85d3a702da8f937ab1a818411a2c3ba7df294279.zip
Emit an error when include <atomic> after <stdatomic.h>
C11 defines `kill_dependency` as a macro in <stdatomic.h>. When you include <atomic> after <stdatomic.h>, the macro clashes with `std::kill_dependency` and causes multiple errors. Explicit error should help in diagnosing those errors. No change for working code that includes <atomic> before <stdatomic.h>. rdar://problem/27435938 Reviewers: rsmith, EricWF, mclow.lists, jfb Reviewed By: jfb Subscribers: jfb, jkorous-apple, christof, bumblebritches57, JonChesterfield, smeenai, cfe-commits Differential Revision: https://reviews.llvm.org/D45470 llvm-svn: 332413
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud