Go to file
Eric Fiselier a6b7ebe2cd Add stdbool.h wrapper for libc++
Summary:
According to the C++ standard <stdbool.h> isn't allowed to define `true` `false` or `bool`. However these macros are sometimes defined by the compilers `stdbool.h`.

Clang defines the macros whenever `__STRICT_ANSI__` isn't defined (ie `-std=gnu++11`).
New GCC versions define the macros in C++03 mode only, older GCC versions (4.9 and before) always define the macros.

This patch adds a wrapper header for `stdbool.h` that undefs the required macros.

Reviewers: mclow.lists, rsmith, EricWF

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D16346

llvm-svn: 261381
2016-02-20 00:16:41 +00:00
clang [modules] Do less scanning of macro definition chains when computing the set of 2016-02-19 22:43:58 +00:00
clang-tools-extra Add a new check, cert-flp30-c, that diagnoses loop induction expressions of floating-point type. This check corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/display/c/FLP30-C.+Do+not+use+floating-point+variables+as+loop+counters 2016-02-19 14:03:20 +00:00
compiler-rt [CMake] Adding a CMake cache file that matches Apple's build configs 2016-02-19 22:59:18 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Add .gitignore for build directories 2016-02-17 00:27:31 +00:00
libcxx Add stdbool.h wrapper for libc++ 2016-02-20 00:16:41 +00:00
libcxxabi [libcxxabi] Teach cxa_demangle about Hexagon's long double size 2016-01-20 14:10:23 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld Handle undef symbols in LTO. 2016-02-19 22:50:16 +00:00
lldb Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-19 19:33:46 +00:00
llgo [llgo] Force exporting __morestack from llgoi 2015-11-27 04:46:46 +00:00
llvm [codeview] Fix emission of file changes in inline line tables 2016-02-19 23:55:38 +00:00
openmp Remove unnecessary semicolons after braces 2016-02-18 19:38:25 +00:00
polly Codegen: Print error in Polly code verification and allow to disable verfication. 2016-02-19 11:07:12 +00:00