diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2013-08-26 15:01:17 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-09-05 20:01:01 +0800 |
commit | e29de2d78d11333b3c69e07929e16a0f35fb2298 (patch) | |
tree | caac97a19ea90def4a8bfc6a7fdb6393af85c952 /lib/clang/3.3/include/iso646.h | |
parent | 682de6b44a68579f40e39faf9766196158759154 (diff) | |
download | 3.3-e29de2d78d11333b3c69e07929e16a0f35fb2298.tar.gz |
Add clang 3.3 toolchain (darwin-x86)
Add clang enough for build system to call with "WITH_SYNTAX_CHECK=1 make ..." to
utilize clang's better diagnostics
Build instructions (on MacOSX 10.6):
export NDK=your-AOSP-path/ndk
cd $NDK ; ./build/tools/dev-cleanup.sh
./build/tools/download-toolchain-sources.sh /tmp/ndk-$USER/src
./build/tools/build-llvm.sh /tmp/ndk-$USER/src $NDK llvm-3.3
mkdir -p bin lib/clang/3.3
cp -a $NDK/toolchains/llvm-3.3/prebuilt/darwin-x86_64/bin/clang* bin
cp -a $NDK/toolchains/llvm-3.3/prebuilt/darwin-x86_64/lib/clang/3.3/include lib/clang/3.3
Change-Id: I65f56308413ce0649e4b1f7e55bbf45399227b18
Diffstat (limited to 'lib/clang/3.3/include/iso646.h')
-rw-r--r-- | lib/clang/3.3/include/iso646.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/clang/3.3/include/iso646.h b/lib/clang/3.3/include/iso646.h new file mode 100644 index 0000000..dca13c5 --- /dev/null +++ b/lib/clang/3.3/include/iso646.h @@ -0,0 +1,43 @@ +/*===---- iso646.h - Standard header for alternate spellings of operators---=== + * + * Copyright (c) 2008 Eli Friedman + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + *===-----------------------------------------------------------------------=== + */ + +#ifndef __ISO646_H +#define __ISO646_H + +#ifndef __cplusplus +#define and && +#define and_eq &= +#define bitand & +#define bitor | +#define compl ~ +#define not ! +#define not_eq != +#define or || +#define or_eq |= +#define xor ^ +#define xor_eq ^= +#endif + +#endif /* __ISO646_H */ |