/external/clang/test/Parser/ |
D | pragma-loop.cpp | 8 #pragma clang loop vectorize_width(V) interleave_count(I) in test_nontype_template_param() 13 #pragma clang loop vectorize_width(V + 4) interleave_count(I + 4) in test_nontype_template_param() 21 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_vectorize() 26 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop vectorize_width(V … in test_nontype_template_vectorize() 34 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop interleave_count(… in test_nontype_template_interleave() 39 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop interleave_count(2… in test_nontype_template_interleave() 47 …/* expected-error {{invalid argument of type 'char'; expected an integer type}} */ #pragma clang l… in test_nontype_template_char() 55 …/* expected-error {{invalid argument of type 'bool'; expected an integer type}} */ #pragma clang l… in test_nontype_template_bool() 63 …/* expected-error {{use of undeclared identifier 'Vec'}} */ #pragma clang loop vectorize_width(Vec… in test_nontype_template_badarg() 64 …/* expected-error {{use of undeclared identifier 'Int'}} */ #pragma clang loop vectorize_width(V) … in test_nontype_template_badarg() [all …]
|
D | pragma-loop-safety.cpp | 9 #pragma clang loop vectorize(assume_safety) in test() 10 #pragma clang loop interleave(assume_safety) in test() 15 /* expected-error {{expected ')'}} */ #pragma clang loop vectorize(assume_safety in test() 16 /* expected-error {{expected ')'}} */ #pragma clang loop interleave(assume_safety in test() 18 /* expected-error {{invalid argument; expected 'enable', 'full' or 'disable'}} */ #pragma clang loo… in test() 20 …id argument; expected 'enable', 'assume_safety' or 'disable'}} */ #pragma clang loop vectorize(bad… in test() 21 …id argument; expected 'enable', 'assume_safety' or 'disable'}} */ #pragma clang loop interleave(ba… in test() 22 /* expected-error {{invalid argument; expected 'enable', 'full' or 'disable'}} */ #pragma clang loo… in test() 27 …irectives 'vectorize(assume_safety)' and 'vectorize(enable)'}} */ #pragma clang loop vectorize(ena… in test() 28 #pragma clang loop vectorize(assume_safety) in test() [all …]
|
/external/clang/ |
D | clang-tblgen-rules.mk | 10 define transform-clang-td-to-out 12 $(call transform-host-clang-td-to-out,$(1)), \ 13 $(call transform-device-clang-td-to-out,$(1))) 25 LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrDump.inc 26 $(generated_sources)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 27 $(generated_sources)/include/clang/AST/AttrDump.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td… 28 $(call transform-clang-td-to-out,clang-attr-dump) 32 LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrImpl.inc 33 $(generated_sources)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 34 $(generated_sources)/include/clang/AST/AttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td… [all …]
|
/external/v8/tools/gcmole/ |
D | gcmole.cc | 51 static bool GetMangledName(clang::MangleContext* ctx, in GetMangledName() 52 const clang::NamedDecl* decl, in GetMangledName() 54 if (!llvm::isa<clang::CXXConstructorDecl>(decl) && in GetMangledName() 55 !llvm::isa<clang::CXXDestructorDecl>(decl)) { in GetMangledName() 67 static bool InV8Namespace(const clang::NamedDecl* decl) { in InV8Namespace() 75 static bool IsExternalVMState(const clang::ValueDecl* var) { in IsExternalVMState() 76 const clang::EnumConstantDecl* enum_constant = in IsExternalVMState() 77 llvm::dyn_cast<clang::EnumConstantDecl>(var); in IsExternalVMState() 79 clang::QualType type = enum_constant->getType(); in IsExternalVMState() 88 explicit Resolver(clang::ASTContext& ctx) in Resolver() [all …]
|
/external/clang/include/clang/AST/ |
D | TypeOrdering.h | 26 namespace clang { 40 template<> struct DenseMapInfo<clang::QualType> { 41 static inline clang::QualType getEmptyKey() { return clang::QualType(); } 43 static inline clang::QualType getTombstoneKey() { 44 using clang::QualType; 45 return QualType::getFromOpaquePtr(reinterpret_cast<clang::Type *>(-1)); 48 static unsigned getHashValue(clang::QualType Val) { 53 static bool isEqual(clang::QualType LHS, clang::QualType RHS) { 58 template<> struct DenseMapInfo<clang::CanQualType> { 59 static inline clang::CanQualType getEmptyKey() { [all …]
|
D | BaseSubobject.h | 22 namespace clang { 55 template<> struct DenseMapInfo<clang::BaseSubobject> { 56 static clang::BaseSubobject getEmptyKey() { 57 return clang::BaseSubobject( 58 DenseMapInfo<const clang::CXXRecordDecl *>::getEmptyKey(), 59 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getEmptyKey())); 62 static clang::BaseSubobject getTombstoneKey() { 63 return clang::BaseSubobject( 64 DenseMapInfo<const clang::CXXRecordDecl *>::getTombstoneKey(), 65 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getTombstoneKey())); [all …]
|
D | StmtGraphTraits.h | 27 template <> struct GraphTraits<clang::Stmt*> { 28 typedef clang::Stmt NodeType; 29 typedef clang::Stmt::child_iterator ChildIteratorType; 30 typedef llvm::df_iterator<clang::Stmt*> nodes_iterator; 32 static NodeType* getEntryNode(clang::Stmt* S) { return S; } 44 static nodes_iterator nodes_begin(clang::Stmt* S) { 48 static nodes_iterator nodes_end(clang::Stmt* S) { 54 template <> struct GraphTraits<const clang::Stmt*> { 55 typedef const clang::Stmt NodeType; 56 typedef clang::Stmt::const_child_iterator ChildIteratorType; [all …]
|
D | CharUnits.h | 21 namespace clang { 201 inline clang::CharUnits operator* (clang::CharUnits::QuantityType Scale, 202 const clang::CharUnits &CU) { 208 template<> struct DenseMapInfo<clang::CharUnits> { 209 static clang::CharUnits getEmptyKey() { 210 clang::CharUnits::QuantityType Quantity = 211 DenseMapInfo<clang::CharUnits::QuantityType>::getEmptyKey(); 213 return clang::CharUnits::fromQuantity(Quantity); 216 static clang::CharUnits getTombstoneKey() { 217 clang::CharUnits::QuantityType Quantity = [all …]
|
/external/clang/test/Preprocessor/ |
D | pragma_diagnostic_sections.cpp | 7 #pragma clang diagnostic push 8 #pragma clang diagnostic ignored "-Wtautological-compare" 10 #pragma clang diagnostic pop 17 #pragma clang diagnostic push 18 #pragma clang diagnostic ignored "-Wtautological-compare" 23 #pragma clang diagnostic pop 34 #pragma clang diagnostic push 35 #pragma clang diagnostic ignored "-Wunused-macros" 37 #pragma clang diagnostic pop 41 #pragma clang diagnostic push [all …]
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchersMacros.h | 59 return ::clang::ast_matchers::internal::MemoizedMatcher< \ 98 : public ::clang::ast_matchers::internal::MatcherInterface<Type> { \ 102 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \ 103 ::clang::ast_matchers::internal::BoundNodesTreeBuilder \ 107 inline ::clang::ast_matchers::internal::Matcher<Type> DefineMatcher() { \ 108 return ::clang::ast_matchers::internal::makeMatcher( \ 113 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \ 114 ::clang::ast_matchers::internal::BoundNodesTreeBuilder *Builder) const 136 : public ::clang::ast_matchers::internal::MatcherInterface<Type> { \ 142 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \ [all …]
|
/external/clang/include/clang/Analysis/ |
D | CallGraph.h | 26 namespace clang { 173 template <> struct GraphTraits<clang::CallGraphNode*> { 174 typedef clang::CallGraphNode NodeType; 175 typedef clang::CallGraphNode::CallRecord CallRecordTy; 177 clang::CallGraphNode*> CGNDerefFun; 178 static NodeType *getEntryNode(clang::CallGraphNode *CGN) { return CGN; } 186 static clang::CallGraphNode *CGNDeref(CallRecordTy P) { 191 template <> struct GraphTraits<const clang::CallGraphNode*> { 192 typedef const clang::CallGraphNode NodeType; 194 static NodeType *getEntryNode(const clang::CallGraphNode *CGN) { return CGN; } [all …]
|
/external/clang/tools/driver/ |
D | CMakeLists.txt | 19 option(CLANG_PLUGIN_SUPPORT "Build clang with plugin support" ON) 27 add_clang_executable(clang 33 target_link_libraries(clang 44 set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION}) 49 export_executable_symbols(clang) 52 add_dependencies(clang clang-headers) 54 install(TARGETS clang 56 COMPONENT clang) 59 add_custom_target(install-clang 60 DEPENDS clang [all …]
|
/external/clang/tools/clang-format/ |
D | CMakeLists.txt | 3 add_clang_executable(clang-format 14 target_link_libraries(clang-format 22 install(TARGETS clang-format RUNTIME DESTINATION bin) 23 install(PROGRAMS clang-format-bbedit.applescript DESTINATION share/clang) 24 install(PROGRAMS clang-format-diff.py DESTINATION share/clang) 25 install(PROGRAMS clang-format-sublime.py DESTINATION share/clang) 26 install(PROGRAMS clang-format.el DESTINATION share/clang) 27 install(PROGRAMS clang-format.py DESTINATION share/clang) 28 install(PROGRAMS git-clang-format DESTINATION bin)
|
/external/clang/test/SemaCXX/ |
D | switch-implicit-fallthrough.cpp | 55 [[clang::fallthrough]]; in fallthrough() 58 [[clang::fallthrough]]; in fallthrough() 63 [[clang::fallthrough]]; in fallthrough() 70 [[clang::fallthrough]]; in fallthrough() 182 …[[clang::fallthrough]]; // expected-warning{{fallthrough annotation does not directly precede swi… in fallthrough_position() 184 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position() 186 …[[clang::fallthrough]]; // expected-warning{{fallthrough annotation does not directly precede swi… in fallthrough_position() 188 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position() 190 …[[clang::fallthrough]]; // expected-warning{{fallthrough annotation does not directly precede swi… in fallthrough_position() 193 …[[clang::fallthrough]]; // expected-warning{{fallthrough annotation does not directly precede swit… in fallthrough_position() [all …]
|
D | captured-statements.cpp | 8 #pragma clang __debug captured in test_nest_lambda() 17 #pragma clang __debug captured in test_nest_lambda() 34 #pragma clang __debug captured in test() 36 #pragma clang __debug captured in test() 45 #pragma clang __debug captured in test() 47 #pragma clang __debug captured in test() 49 #pragma clang __debug captured in test() 57 #pragma clang _debug captured in template_capture_var() 68 #pragma clang __debug captured in set() 85 #pragma clang _debug captured in template_capture_var() [all …]
|
D | switch-implicit-fallthrough-macro.cpp | 15 #define COMPATIBILITY_FALLTHROUGH [ [ /* test */ clang /* test */ \ 35 #define M1 [[clang::fallthrough]] 42 #define WRONG_MACRO1 clang::fallthrough 43 #define WRONG_MACRO2 [[clang::fallthrough] 44 #define WRONG_MACRO3 [[clang::fall through]] 45 #define WRONG_MACRO4 [[clang::fallthrough]]] 70 #define TOO_LATE [[clang::fallthrough]] in fallthrough_compatibility_macro_undefined() 77 #define MACRO_WITH_HISTORY [[clang::fallthrough]] 88 #define MACRO_WITH_HISTORY [[clang::fallthrough]] in fallthrough_compatibility_macro_history() 96 #define MACRO_WITH_HISTORY [[clang::fallthrough]] [all …]
|
/external/clang/test/CodeGenCXX/ |
D | pragma-loop.cpp | 8 #pragma clang loop vectorize(enable) in while_test() 9 #pragma clang loop interleave_count(4) in while_test() 10 #pragma clang loop vectorize_width(4) in while_test() 11 #pragma clang loop unroll(full) in while_test() 23 #pragma clang loop vectorize_width(8) interleave_count(4) unroll(disable) in do_test() 35 #pragma clang loop interleave(enable) in for_test() 36 #pragma clang loop interleave_count(static_cast<int>(Tuner::Interleave)) in for_test() 37 #pragma clang loop unroll_count(static_cast<int>(Tuner::Unroll)) in for_test() 49 #pragma clang loop vectorize_width(2) interleave_count(2) in for_range_test() 58 #pragma clang loop vectorize(disable) unroll(disable) in disable_test() [all …]
|
/external/clang/utils/VtableTest/ |
D | Makefile | 2 CLANGXX := clang++ 15 test-clang.sum: test.cc 16 time $(CLANGXX) test.cc -o test-clang.s -S 17 $(CLANGXX) test-clang.s -o test-clang 18 ./test-clang >test-clang.sum 20 one: test-gcc.sum test-clang.sum 21 cmp test-gcc.sum test-clang.sum 24 rm -f gen test-gcc test-clang test.cc test-gcc.sum test-clang.sum test-gcc.s test-clang.s
|
/external/llvm/test/CodeGen/PowerPC/ |
D | BreakableToken-reduced.ll | 31 %"class.clang::format::BreakableStringLiteral" = type { %"class.clang::format::BreakableSingleLineT… 32 %"class.clang::format::BreakableSingleLineToken" = type { %"class.clang::format::BreakableToken", i… 33 %"class.clang::format::BreakableToken" = type { i32 (...)**, %"struct.clang::format::FormatToken"*,… 35 …clang::format::FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::Sou… 36 %"class.clang::Token" = type <{ i32, i32, i8*, i16, i16, [4 x i8] }> 37 %"class.clang::SourceRange" = type { %"class.clang::SourceLocation", %"class.clang::SourceLocation"… 38 %"class.clang::SourceLocation" = type { i32 } 42 %"struct.std::_Head_base.2" = type { %"class.clang::format::TokenRole"* } 43 %"class.clang::format::TokenRole" = type { i32 (...)**, %"struct.clang::format::FormatStyle"* } 59 %"struct.clang::format::FormatStyle" = type { i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, i8, i8, i32… [all …]
|
/external/clang/tools/clang-check/ |
D | ClangCheck.cpp | 35 using namespace clang::driver; 36 using namespace clang::tooling; 87 class FixItOptions : public clang::FixItOptions { 111 class FixItRewriter : public clang::FixItRewriter { 113 FixItRewriter(clang::DiagnosticsEngine& Diags, in FixItRewriter() 114 clang::SourceManager& SourceMgr, in FixItRewriter() 115 const clang::LangOptions& LangOpts, in FixItRewriter() 116 clang::FixItOptions* FixItOpts) in FixItRewriter() 117 : clang::FixItRewriter(Diags, SourceMgr, LangOpts, FixItOpts) { in FixItRewriter() 125 class FixItAction : public clang::FixItAction { [all …]
|
/external/clang/docs/ |
D | ClangFormat.rst | 13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used 18 $ clang-format -help 27 USAGE: clang-format [options] [<file> ...] 33 -assume-filename=<string> - When reading from stdin, clang-format assumes this 37 clang-format from an editor integration 41 fallback in case clang-format is invoked with 42 -style=file, but can not find the .clang-format 50 -length, clang-format will format up to the end 68 .clang-format file located in one of the parent 84 by putting your style configuration in the ``.clang-format`` or ``_clang-format`` [all …]
|
D | HowToSetupToolingForLLVM.rst | 7 of specific tools using this infrastructure (e.g. ``clang-check``). This 17 invoking clang tools, you can either specify a path to a build directory 20 build using CMake to use clang tools. 37 If you want to use clang instead of GCC, you can add 38 ``-DCMAKE_C_COMPILER=/path/to/clang -DCMAKE_CXX_COMPILER=/path/to/clang++``. 59 After you completed the previous steps, you are ready to run clang tools. If 60 you have a recent clang installed, you should have ``clang-check`` in 65 $ clang-check tools/clang/lib/Tooling/CompilationDatabase.cpp 67 If you're using vim, it's convenient to have clang-check integrated. Put 88 call ClangCheckImpl("clang-check " . l:filename) [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | fold-call-3.ll | 4 %"struct.clang::Action" = type { %"struct.clang::ActionBase" } 5 %"struct.clang::ActionBase" = type { i32 (...)** } 6 %"struct.clang::ActionBase::ActionResult<0u>" = type { i8*, i8 } 8 @llvm.used = appending global [1 x i8*] [ i8* bitcast (void (i8*, %"struct.clang::Action"*)* @_Z25R… 10 define void @_Z25RawPointerPerformanceTestPvRN5clang6ActionE(i8* %Val, %"struct.clang::Action"* %Ac… 12 …%0 = alloca %"struct.clang::ActionBase::ActionResult<0u>", align 8 ; <%"struct.clang::ActionBase:… 18 …%3 = getelementptr %"struct.clang::Action", %"struct.clang::Action"* %Actions, i64 0, i32 0, i32 0… 19 %mrv_gep = bitcast %"struct.clang::ActionBase::ActionResult<0u>"* %0 to i64* ; <i64*> [#uses=1] 20 …%mrv_gep1 = getelementptr %"struct.clang::ActionBase::ActionResult<0u>", %"struct.clang::ActionBas… 22 …%5 = getelementptr %"struct.clang::ActionBase::ActionResult<0u>", %"struct.clang::ActionBase::Acti… [all …]
|
/external/clang/test/Driver/ |
D | r600-mcpu.cl | 3 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=r600 %s -o - 2>&1 | FileCheck --check-pr… 4 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv630 %s -o - 2>&1 | FileCheck --check-p… 5 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv635 %s -o - 2>&1 | FileCheck --check-p… 6 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv610 %s -o - 2>&1 | FileCheck --check-p… 7 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv620 %s -o - 2>&1 | FileCheck --check-p… 8 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rs780 %s -o - 2>&1 | FileCheck --check-p… 9 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rs880 %s -o - 2>&1 | FileCheck --check-p… 10 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv670 %s -o - 2>&1 | FileCheck --check-p… 11 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv710 %s -o - 2>&1 | FileCheck --check-p… 12 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv730 %s -o - 2>&1 | FileCheck --check-p… [all …]
|
/external/clang/include/clang/Basic/ |
D | TargetBuiltins.h | 23 namespace clang { 27 LastTIBuiltin = clang::Builtin::FirstTSBuiltin - 1, 37 LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1, 48 LastTIBuiltin = clang::Builtin::FirstTSBuiltin - 1, 59 LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1, 69 LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1, 79 LastTIBuiltin = clang::Builtin::FirstTSBuiltin - 1, 89 LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1, 142 LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1, 152 LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1, [all …]
|