| /external/clang/test/Driver/ |
| bitrig.c | 1 // RUN: %clang -no-canonical-prefixes -target amd64-pc-bitrig %s -### 2>&1 \ 3 // CHECK-LD-C: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 8 // CHECK-LD-CXX-STDLIB: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 13 // CHECK-LD-CXX: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 16 // RUN: %clang -no-canonical-prefixes -target amd64-pc-bitrig -pthread %s -### 2>&1 \ 18 // CHECK-PTHREAD: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 21 // RUN: %clang -no-canonical-prefixes -target amd64-pc-bitrig -pg -pthread %s -### 2>&1 \ 23 // CHECK-PG-PTHREAD: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 26 // RUN: %clang -no-canonical-prefixes -target amd64-pc-bitrig -shared -pg -pthread %s -### 2>&1 \ 28 // CHECK-PG-PTHREAD-SHARED: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig [all...] |
| cuda-arch-translation.cu | 4 // REQUIRES: clang-driver 10 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 %s 2>&1 \ 12 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_21 %s 2>&1 \ 14 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_30 %s 2>&1 \ 16 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_32 %s 2>&1 \ 18 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_35 %s 2>&1 \ 20 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_37 %s 2>&1 \ 22 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_50 %s 2>&1 \ 24 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_52 %s 2>&1 \ 26 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_53 %s 2>&1 [all...] |
| cuda-version-check.cu | 1 // REQUIRES: clang-driver 5 // RUN: %clang -v -### --cuda-gpu-arch=sm_20 --sysroot=%S/Inputs/CUDA 2>&1 %s | \ 7 // RUN: %clang -v -### --cuda-gpu-arch=sm_20 --sysroot=%S/Inputs/CUDA_80 2>&1 %s | \ 9 // RUN: %clang -v -### --cuda-gpu-arch=sm_60 --sysroot=%S/Inputs/CUDA_80 2>&1 %s | \ 13 // RUN: %clang -v -### --cuda-gpu-arch=sm_60 --sysroot=%S/Inputs/CUDA 2>&1 %s | \ 17 // RUN: %clang -v -### --cuda-gpu-arch=sm_60 --cuda-gpu-arch=sm_35 \ 22 // RUN: %clang -v -### --cuda-gpu-arch=sm_60 --cuda-gpu-arch=sm_61 \ 28 // RUN: %clang -v -### --cuda-gpu-arch=sm_60 -nocudainc --sysroot=%S/Inputs/CUDA 2>&1 %s | \ 33 // RUN: %clang -v -### -E --cuda-device-only --cuda-gpu-arch=sm_60 -nocudainc \ 38 // RUN: %clang -v -### --cuda-gpu-arch=sm_60 --sysroot=%S/Inputs/CUDA 2>&1 [all...] |
| embed-bitcode.c | 1 // RUN: %clang -ccc-print-bindings -c %s -fembed-bitcode 2>&1 | FileCheck %s 2 // CHECK: clang 3 // CHECK: clang 5 // RUN: %clang %s -c -fembed-bitcode -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-CC 12 // RUN: %clang %s -c -fembed-bitcode=bitcode -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-BITCODE 19 // RUN: %clang %s -c -save-temps -fembed-bitcode -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-SAVE-TEMP 29 // RUN: %clang -c %s -flto -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO 30 // RUN: %clang -c %s -flto=full -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO 31 // RUN: %clang -c %s -flto=thin -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO 38 // RUN: %clang -c %s -fembed-bitcode-marker -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-MARKE [all...] |
| miamcu-opt.c | 1 // REQUIRES: clang-driver 4 // RUN: %clang -miamcu -no-canonical-prefixes %s -### -o %t.o 2>&1 | FileCheck %s 5 // RUN: %clang -miamcu -no-canonical-prefixes -m32 %s -### -o %t.o 2>&1 | FileCheck %s 6 // RUN: %clang -miamcu -no-canonical-prefixes -target x86_64-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck %s 7 // RUN: %clang -mno-iamcu -miamcu -no-canonical-prefixes %s -### -o %t.o 2>&1 | FileCheck %s 8 // RUN: %clang -miamcu -no-canonical-prefixes -m64 %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=M64 9 // RUN: %clang -miamcu -no-canonical-prefixes -dynamic %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=DYNAMIC 10 // RUN: %clang -miamcu -no-canonical-prefixes -target armv8-eabi %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=NOT-X86 11 // RUN: %clang -miamcu -mno-iamcu -no-canonical-prefixes -target x86_64-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=MNOIAMCU 21 // CHECK: "{{.*}}clang{{.*}}" "-cc1 [all...] |
| r600-mcpu.cl | 3 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=r600 %s -o - 2>&1 | FileCheck --check-prefix=R600-CHECK %s 4 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv630 %s -o - 2>&1 | FileCheck --check-prefix=R600-CHECK %s 5 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv635 %s -o - 2>&1 | FileCheck --check-prefix=R600-CHECK %s 6 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv610 %s -o - 2>&1 | FileCheck --check-prefix=RS880-CHECK %s 7 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv620 %s -o - 2>&1 | FileCheck --check-prefix=RS880-CHECK %s 8 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rs780 %s -o - 2>&1 | FileCheck --check-prefix=RS880-CHECK %s 9 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rs880 %s -o - 2>&1 | FileCheck --check-prefix=RS880-CHECK %s 10 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv670 %s -o - 2>&1 | FileCheck --check-prefix=RV670-CHECK %s 11 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv710 %s -o - 2>&1 | FileCheck --check-prefix=RV710-CHECK %s 12 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv730 %s -o - 2>&1 | FileCheck --check-prefix=RV730-CH (…) [all...] |
| stack-protector.c | 1 // RUN: %clang -fno-stack-protector -### %s 2>&1 | FileCheck %s -check-prefix=NOSSP 5 // RUN: %clang -target i386-unknown-linux -fstack-protector -### %s 2>&1 | FileCheck %s -check-prefix=SSP 9 // RUN: %clang -target i386-unknown-linux -fstack-protector --param ssp-buffer-size=16 -### %s 2>&1 | FileCheck %s -check-prefix=SSP-BUF 13 // RUN: %clang -target i386-pc-openbsd -### %s 2>&1 | FileCheck %s -check-prefix=OPENBSD 16 // RUN: %clang -target i386-pc-openbsd -fstack-protector -### %s 2>&1 | FileCheck %s -check-prefix=OPENBSD_SPS 19 // RUN: %clang -fstack-protector-strong -### %s 2>&1 | FileCheck %s -check-prefix=SSP-STRONG 23 // RUN: %clang -fstack-protector-all -### %s 2>&1 | FileCheck %s -check-prefix=SSP-ALL 27 // RUN: %clang -target x86_64-scei-ps4 -### %s 2>&1 | FileCheck %s -check-prefix=SSP-PS4 28 // RUN: %clang -target x86_64-scei-ps4 -fstack-protector -### %s 2>&1 | FileCheck %s -check-prefix=SSP-PS4 32 // RUN: %clang -target x86_64-scei-ps4 -fstack-protector --param ssp-buffer-size=16 -### %s 2>&1 | FileCheck %s - (…) [all...] |
| unknown-gcc-arch.c | 1 // RUN: %clang -target x86_64-unknown-unknown -no-integrated-as -c \ 5 // RUN: %clang -target x86_64-unknown-unknown -c -x assembler %s -### -m32 \ 9 // RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### \ 13 // RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### -m64 \ 17 // RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### \ 21 // RUN: %clang -target powerpc-unknown-unknown -c -x assembler %s -### -m64 \ 26 // RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### -m32 \ 30 // RUN: %clang -target powerpc-unknown-unknown -c -x assembler %s -### 2>&1 \ 34 // RUN: %clang -target sparc64-unknown-unknown -no-integrated-as -c -x assembler %s -### -m32 2>&1 \ 38 // RUN: %clang -target sparc-unknown-unknown -no-integrated-as -c -x assembler %s -### -m64 2>&1 [all...] |
| /external/clang/test/Frontend/ |
| gnu-mcount.c | 1 // RUN: %clang -target armv7-unknown-none-eabi -pg -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM-EABI 2 // RUN: %clang -target armv7-unknown-none-eabi -pg -meabi gnu -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM-EABI-MEABI-GNU 3 // RUN: %clang -target aarch64-unknown-none-eabi -pg -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM64-EABI 4 // RUN: %clang -target aarch64-unknown-none-eabi -pg -meabi gnu -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM64-EABI-MEABI-GNU 5 // RUN: %clang -target armv7-unknown-linux-gnueabi -pg -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM-EABI 6 // RUN: %clang -target armv7-unknown-linux-gnueabi -meabi gnu -pg -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM-EABI-MEABI-GNU 7 // RUN: %clang -target aarch64-unknown-linux-gnueabi -pg -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM64-EABI 8 // RUN: %clang -target aarch64-unknown-linux-gnueabi -meabi gnu -pg -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM64-EABI-MEABI-GNU 9 // RUN: %clang -target armv7-unknown-linux-gnueabihf -pg -S -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ARM-EABI 10 // RUN: %clang -target armv7-unknown-linux-gnueabihf -meabi gnu -pg -S -emit-llvm -o - %s | FileCheck %s -check-p (…) [all...] |
| /external/clang/www/ |
| comparison.html | 7 <title>Comparing clang to other open source compilers</title> 14 <h1>Clang vs Other Open Source Compilers</h1> 17 always clear to people why we decided to do this. Here we compare clang 27 This will hopefully help you to evaluate whether using clang is a good 38 <li><a href="#gcc">Clang vs GCC</a> (GNU Compiler Collection)</li> 39 <li><a href="#elsa">Clang vs Elsa</a> (Elkhound-based C++ Parser)</li> 40 <li><a href="#pcc">Clang vs PCC</a> (Portable C Compiler)</li> 45 <h2><a name="gcc">Clang vs GCC (GNU Compiler Collection)</a></h2> 48 <p>Pro's of GCC vs clang:</p> 51 <li>GCC supports languages that clang does not aim to, such as Java, Ada [all...] |
| /external/libcxx/test/std/strings/string.view/string_view.literals/ |
| literal.pass.cpp | 12 // UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7, clang-3.8, clang-3.9 13 // UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang- [all...] |
| /frameworks/compile/slang/ |
| slang_rs_export_var.cpp | 19 #include "clang/AST/ASTContext.h" 20 #include "clang/AST/Type.h" 30 const clang::VarDecl *VD, 40 const clang::Expr *Initializer = VD->getAnyInitializer(); 50 clang::Expr::NPC_ValueDependentIsNotNull)) { 51 mInit.Val = clang::APValue(llvm::APSInt(1)); 61 const clang::InitListExpr *IList = 62 static_cast<const clang::InitListExpr*>(Initializer); 73 clang::Expr::EvalResult tempInit; 98 clang::QualType QT = VD->getTypeSourceInfo()->getType() [all...] |
| slang_rs_special_func.cpp | 19 #include "clang/AST/ASTContext.h" 20 #include "clang/AST/Attr.h" 28 const clang::FunctionDecl *FD) { 29 if (FD->hasAttr<clang::RenderScriptKernelAttr>()) { 44 const clang::QualType &IntType = FD->getASTContext().IntTy; 56 clang::FunctionDecl const *FD) { 59 const clang::ASTContext &C = FD->getASTContext(); 60 const clang::QualType &IntType = FD->getASTContext().IntTy; 65 const clang::ParmVarDecl *PVD = FD->getParamDecl(0); 66 clang::QualType QT = PVD->getType().getCanonicalType() [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/AST/ |
| DeclVisitor.h | 16 #include "clang/AST/Decl.h" 17 #include "clang/AST/DeclCXX.h" 18 #include "clang/AST/DeclFriend.h" 19 #include "clang/AST/DeclObjC.h" 20 #include "clang/AST/DeclOpenMP.h" 21 #include "clang/AST/DeclTemplate.h" 23 namespace clang { namespace 43 #include "clang/AST/DeclNodes.inc" 52 #include "clang/AST/DeclNodes.inc" 77 } // end namespace clang [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/ |
| ReplacementsYaml.h | 19 #include "clang/Tooling/Refactoring.h" 23 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) 30 template <> struct MappingTraits<clang::tooling::Replacement> { 37 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) 41 clang::tooling::Replacement denormalize(const IO &) { 42 return clang::tooling::Replacement(FilePath, Offset, Length, 52 static void mapping(IO &Io, clang::tooling::Replacement &R) { 53 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> 64 template <> struct MappingTraits<clang::tooling::TranslationUnitReplacements> { 66 clang::tooling::TranslationUnitReplacements &Doc) [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4393122/include/clang/AST/ |
| DeclVisitor.h | 16 #include "clang/AST/Decl.h" 17 #include "clang/AST/DeclCXX.h" 18 #include "clang/AST/DeclFriend.h" 19 #include "clang/AST/DeclObjC.h" 20 #include "clang/AST/DeclOpenMP.h" 21 #include "clang/AST/DeclTemplate.h" 23 namespace clang { namespace 43 #include "clang/AST/DeclNodes.inc" 52 #include "clang/AST/DeclNodes.inc" 77 } // end namespace clang [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4393122/include/clang/Tooling/ |
| ReplacementsYaml.h | 19 #include "clang/Tooling/Refactoring.h" 23 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) 30 template <> struct MappingTraits<clang::tooling::Replacement> { 37 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) 41 clang::tooling::Replacement denormalize(const IO &) { 42 return clang::tooling::Replacement(FilePath, Offset, Length, 52 static void mapping(IO &Io, clang::tooling::Replacement &R) { 53 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> 64 template <> struct MappingTraits<clang::tooling::TranslationUnitReplacements> { 66 clang::tooling::TranslationUnitReplacements &Doc) [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4479392/include/clang/AST/ |
| DeclVisitor.h | 16 #include "clang/AST/Decl.h" 17 #include "clang/AST/DeclCXX.h" 18 #include "clang/AST/DeclFriend.h" 19 #include "clang/AST/DeclObjC.h" 20 #include "clang/AST/DeclOpenMP.h" 21 #include "clang/AST/DeclTemplate.h" 23 namespace clang { namespace 43 #include "clang/AST/DeclNodes.inc" 52 #include "clang/AST/DeclNodes.inc" 77 } // end namespace clang [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4479392/include/clang/Tooling/ |
| ReplacementsYaml.h | 19 #include "clang/Tooling/Refactoring.h" 23 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) 30 template <> struct MappingTraits<clang::tooling::Replacement> { 37 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) 41 clang::tooling::Replacement denormalize(const IO &) { 42 return clang::tooling::Replacement(FilePath, Offset, Length, 52 static void mapping(IO &Io, clang::tooling::Replacement &R) { 53 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> 64 template <> struct MappingTraits<clang::tooling::TranslationUnitReplacements> { 66 clang::tooling::TranslationUnitReplacements &Doc) [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4579689/include/clang/AST/ |
| DeclVisitor.h | 16 #include "clang/AST/Decl.h" 17 #include "clang/AST/DeclCXX.h" 18 #include "clang/AST/DeclFriend.h" 19 #include "clang/AST/DeclObjC.h" 20 #include "clang/AST/DeclOpenMP.h" 21 #include "clang/AST/DeclTemplate.h" 23 namespace clang { namespace 43 #include "clang/AST/DeclNodes.inc" 52 #include "clang/AST/DeclNodes.inc" 77 } // end namespace clang [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4579689/include/clang/Tooling/ |
| ReplacementsYaml.h | 19 #include "clang/Tooling/Refactoring.h" 23 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) 30 template <> struct MappingTraits<clang::tooling::Replacement> { 37 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) 41 clang::tooling::Replacement denormalize(const IO &) { 42 return clang::tooling::Replacement(FilePath, Offset, Length, 52 static void mapping(IO &Io, clang::tooling::Replacement &R) { 53 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> 64 template <> struct MappingTraits<clang::tooling::TranslationUnitReplacements> { 66 clang::tooling::TranslationUnitReplacements &Doc) [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4630689/include/clang/AST/ |
| DeclVisitor.h | 16 #include "clang/AST/Decl.h" 17 #include "clang/AST/DeclCXX.h" 18 #include "clang/AST/DeclFriend.h" 19 #include "clang/AST/DeclObjC.h" 20 #include "clang/AST/DeclOpenMP.h" 21 #include "clang/AST/DeclTemplate.h" 23 namespace clang { namespace 43 #include "clang/AST/DeclNodes.inc" 52 #include "clang/AST/DeclNodes.inc" 77 } // end namespace clang [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4630689/include/clang/Tooling/ |
| ReplacementsYaml.h | 19 #include "clang/Tooling/Refactoring.h" 23 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) 30 template <> struct MappingTraits<clang::tooling::Replacement> { 37 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) 41 clang::tooling::Replacement denormalize(const IO &) { 42 return clang::tooling::Replacement(FilePath, Offset, Length, 52 static void mapping(IO &Io, clang::tooling::Replacement &R) { 53 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> 64 template <> struct MappingTraits<clang::tooling::TranslationUnitReplacements> { 66 clang::tooling::TranslationUnitReplacements &Doc) [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4639204/include/clang/AST/ |
| DeclVisitor.h | 16 #include "clang/AST/Decl.h" 17 #include "clang/AST/DeclCXX.h" 18 #include "clang/AST/DeclFriend.h" 19 #include "clang/AST/DeclObjC.h" 20 #include "clang/AST/DeclOpenMP.h" 21 #include "clang/AST/DeclTemplate.h" 23 namespace clang { namespace 43 #include "clang/AST/DeclNodes.inc" 52 #include "clang/AST/DeclNodes.inc" 77 } // end namespace clang [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4639204/include/clang/Tooling/ |
| ReplacementsYaml.h | 19 #include "clang/Tooling/Refactoring.h" 23 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) 30 template <> struct MappingTraits<clang::tooling::Replacement> { 37 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) 41 clang::tooling::Replacement denormalize(const IO &) { 42 return clang::tooling::Replacement(FilePath, Offset, Length, 52 static void mapping(IO &Io, clang::tooling::Replacement &R) { 53 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> 64 template <> struct MappingTraits<clang::tooling::TranslationUnitReplacements> { 66 clang::tooling::TranslationUnitReplacements &Doc) [all...] |