/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 …]
|
/external/clang/ |
D | Android.bp | 2 name: "clang-defaults", 7 header_libs: ["clang-headers"], 17 "external/clang/include", 18 "external/clang/lib/CodeGen", 43 "clang-gen-options", 44 "clang-gen-attributes", 45 "clang-gen-checkers", 46 "clang-gen-comment-commands", 47 "clang-gen-comment-html-named-character-references", 48 "clang-gen-html-tags", [all …]
|
/external/v8/tools/clang/rewrite_to_chrome_style/ |
D | RewriteToChromeStyle.cpp | 41 using namespace clang::ast_matchers; 42 using clang::tooling::CommonOptionsParser; 43 using clang::tooling::Replacement; 56 clang::ASTContext& context) { in IsMatching() 60 const clang::ast_matchers::internal:: 61 VariadicDynCastAllOfMatcher<clang::Expr, clang::UnresolvedMemberExpr> 64 const clang::ast_matchers::internal:: 65 VariadicDynCastAllOfMatcher<clang::Expr, clang::DependentScopeDeclRefExpr> 68 const clang::ast_matchers::internal:: 69 VariadicDynCastAllOfMatcher<clang::Expr, clang::CXXDependentScopeMemberExpr> [all …]
|
/external/v8/tools/clang/value_cleanup/ |
D | ListValueRewriter.cpp | 23 using namespace clang::ast_matchers; 24 using clang::tooling::Replacement; 33 : public clang::RecursiveASTVisitor<CollectDeclRefExprVisitor> { 35 CollectDeclRefExprVisitor(clang::SourceManager* source_manager, in CollectDeclRefExprVisitor() 36 clang::ASTContext* ast_context, in CollectDeclRefExprVisitor() 37 const clang::VarDecl* decl, in CollectDeclRefExprVisitor() 38 const clang::FunctionDecl* containing_function) in CollectDeclRefExprVisitor() 46 bool VisitDeclRefExpr(const clang::DeclRefExpr* expr) { in VisitDeclRefExpr() 50 const clang::Stmt* stmt = expr; in VisitDeclRefExpr() 53 stmt = map_.getParentIgnoreParenImpCasts(const_cast<clang::Stmt*>(stmt)); in VisitDeclRefExpr() [all …]
|
D | ListValueRewriter.h | 20 std::set<clang::tooling::Replacement>* replacements); 22 void RegisterMatchers(clang::ast_matchers::MatchFinder* match_finder); 26 : public clang::ast_matchers::MatchFinder::MatchCallback { 29 std::set<clang::tooling::Replacement>* replacements); 32 const clang::ast_matchers::MatchFinder::MatchResult& result) override; 35 std::set<clang::tooling::Replacement>* const replacements_; 41 std::set<clang::tooling::Replacement>* replacements); 44 const clang::ast_matchers::MatchFinder::MatchResult& result) override; 50 std::set<clang::tooling::Replacement>* replacements); 53 const clang::ast_matchers::MatchFinder::MatchResult& result) override; [all …]
|
/external/v8/tools/clang/plugins/ |
D | FindBadConstructsConsumer.h | 43 : public clang::RecursiveASTVisitor<FindBadConstructsConsumer>, 46 FindBadConstructsConsumer(clang::CompilerInstance& instance, 49 void Traverse(clang::ASTContext& context); 52 bool TraverseDecl(clang::Decl* decl); 53 bool VisitTagDecl(clang::TagDecl* tag_decl); 54 bool VisitVarDecl(clang::VarDecl* var_decl); 55 bool VisitTemplateSpecializationType(clang::TemplateSpecializationType* spec); 56 bool VisitCallExpr(clang::CallExpr* call_expr); 59 void CheckChromeClass(clang::SourceLocation record_location, 60 clang::CXXRecordDecl* record) override; [all …]
|
D | CheckIPCVisitor.h | 42 explicit CheckIPCVisitor(clang::CompilerInstance& compiler); 44 void set_context(clang::ASTContext* context) { context_ = context; } in set_context() 46 void BeginDecl(clang::Decl* decl); 49 clang::TemplateSpecializationType* spec); 50 void VisitCallExpr(clang::CallExpr* call_expr); 57 bool ValidateWriteParam(const clang::CallExpr* call_expr); 58 bool ValidateWriteParamSignature(const clang::CallExpr* call_expr); 59 bool ValidateWriteParamArgument(const clang::Expr* arg_expr); 61 const clang::TemplateSpecializationType* spec); 66 bool IsBlacklistedType(clang::QualType type) const; [all …]
|
D | ChromeClassTester.h | 21 ChromeClassTester(clang::CompilerInstance& instance, 25 void CheckTag(clang::TagDecl*); 27 clang::DiagnosticsEngine::Level getErrorLevel(); 30 clang::CompilerInstance& instance() { return instance_; } in instance() 31 clang::DiagnosticsEngine& diagnostic() { return diagnostic_; } in diagnostic() 35 void emitWarning(clang::SourceLocation loc, const char* error); 39 bool InBannedNamespace(const clang::Decl* record); 43 bool InBannedDirectory(clang::SourceLocation loc); 48 std::string GetNamespace(const clang::Decl* record); 52 bool HasIgnoredBases(const clang::CXXRecordDecl* record); [all …]
|
/external/v8/tools/clang/translation_unit/ |
D | TranslationUnitGenerator.cpp | 36 using clang::HeaderSearchOptions; 37 using clang::tooling::CommonOptionsParser; 45 class IncludeFinderPPCallbacks : public clang::PPCallbacks { 47 IncludeFinderPPCallbacks(clang::SourceManager* source_manager, 51 void FileChanged(clang::SourceLocation /*loc*/, 52 clang::PPCallbacks::FileChangeReason reason, 53 clang::SrcMgr::CharacteristicKind /*file_type*/, 54 clang::FileID /*prev_fid*/) override; 56 void InclusionDirective(clang::SourceLocation hash_loc, 57 const clang::Token& include_tok, [all …]
|
/external/v8/tools/clang/blink_gc_plugin/ |
D | RecordInfo.h | 39 BasePoint(const clang::CXXBaseSpecifier& spec, in BasePoint() 44 const clang::CXXBaseSpecifier& spec() { return spec_; } in spec() 48 const clang::CXXBaseSpecifier& spec_; 55 FieldPoint(clang::FieldDecl* field, Edge* edge) in FieldPoint() 60 clang::FieldDecl* field() { return field_; } in field() 64 clang::FieldDecl* field_; 74 typedef std::vector<std::pair<clang::CXXRecordDecl*, BasePoint>> Bases; 77 bool operator()(clang::FieldDecl* a, clang::FieldDecl *b) const { in operator() 81 typedef std::map<clang::FieldDecl*, FieldPoint, FieldDeclCmp> Fields; 83 typedef std::vector<const clang::Type*> TemplateArgs; [all …]
|
D | DiagnosticsReporter.h | 23 explicit DiagnosticsReporter(clang::CompilerInstance&); 26 clang::DiagnosticsEngine::Level getErrorLevel() const; 31 clang::CXXMethodDecl* trace, 32 clang::CXXRecordDecl* base); 34 clang::CXXMethodDecl* trace); 41 clang::CXXMethodDecl* dtor, 47 clang::CXXMethodDecl* trace, 48 clang::CXXMethodDecl* overridden); 52 clang::CXXMethodDecl* dispatch); 53 void MissingTraceDispatch(const clang::FunctionDecl* dispatch, [all …]
|
D | BlinkGCPluginConsumer.h | 23 class BlinkGCPluginConsumer : public clang::ASTConsumer { 25 BlinkGCPluginConsumer(clang::CompilerInstance& instance, 28 void HandleTranslationUnit(clang::ASTContext& context) override; 31 void ParseFunctionTemplates(clang::TranslationUnitDecl* decl); 39 clang::CXXRecordDecl* GetDependentTemplatedDecl(const clang::Type& type); 41 void CheckPolymorphicClass(RecordInfo* info, clang::CXXMethodDecl* trace); 43 clang::CXXRecordDecl* GetLeftMostBase(clang::CXXRecordDecl* left_most); 45 bool DeclaresVirtualMethods(clang::CXXRecordDecl* decl); 58 void CheckTracingMethod(clang::CXXMethodDecl* method); 62 clang::CXXMethodDecl* method); [all …]
|
D | CheckTraceVisitor.h | 20 class CheckTraceVisitor : public clang::RecursiveASTVisitor<CheckTraceVisitor> { 22 CheckTraceVisitor(clang::CXXMethodDecl* trace, 28 bool VisitMemberExpr(clang::MemberExpr* member); 29 bool VisitCallExpr(clang::CallExpr* call); 34 clang::CXXRecordDecl* GetDependentTemplatedDecl( 35 clang::CXXDependentScopeMemberExpr* expr); 38 clang::CallExpr* call, 39 clang::CXXDependentScopeMemberExpr* expr); 40 bool CheckTraceBaseCall(clang::CallExpr* call); 41 bool CheckTraceFieldMemberCall(clang::CXXMemberCallExpr* call); [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/v8/tools/clang/rewrite_scoped_refptr/ |
D | RewriteScopedRefptr.cpp | 27 using namespace clang::ast_matchers; 28 using clang::tooling::CommonOptionsParser; 29 using clang::tooling::Replacement; 30 using clang::tooling::Replacements; 33 namespace clang { namespace 50 bool NeedsParens(const clang::Expr* expr) { in NeedsParens() 51 if (llvm::dyn_cast<clang::UnaryOperator>(expr) || in NeedsParens() 52 llvm::dyn_cast<clang::BinaryOperator>(expr) || in NeedsParens() 53 llvm::dyn_cast<clang::ConditionalOperator>(expr)) { in NeedsParens() 58 if (const clang::CXXOperatorCallExpr* op = in NeedsParens() [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/tools/clang-format/ |
D | CMakeLists.txt | 3 add_clang_tool(clang-format 14 target_link_libraries(clang-format 22 install(PROGRAMS clang-format-bbedit.applescript 23 DESTINATION share/clang 24 COMPONENT clang-format) 25 install(PROGRAMS clang-format-diff.py 26 DESTINATION share/clang 27 COMPONENT clang-format) 28 install(PROGRAMS clang-format-sublime.py 29 DESTINATION share/clang [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 | 23 namespace clang { 54 template<> struct DenseMapInfo<clang::BaseSubobject> { 55 static clang::BaseSubobject getEmptyKey() { 56 return clang::BaseSubobject( 57 DenseMapInfo<const clang::CXXRecordDecl *>::getEmptyKey(), 58 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getEmptyKey())); 61 static clang::BaseSubobject getTombstoneKey() { 62 return clang::BaseSubobject( 63 DenseMapInfo<const clang::CXXRecordDecl *>::getTombstoneKey(), 64 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getTombstoneKey())); [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/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 …]
|
D | pushable-diagnostics.c | 3 #pragma clang diagnostic pop // expected-warning{{pragma diagnostic pop could not pop, no matching … 5 #pragma clang diagnostic puhs // expected-warning {{pragma diagnostic expected 'error', 'warning', … 9 #pragma clang diagnostic push 10 #pragma clang diagnostic ignored "-Wmultichar" 13 #pragma clang diagnostic pop 17 #pragma clang diagnostic pop // expected-warning{{pragma diagnostic pop could not pop, no matching … 22 #pragma clang diagnostic push // now push 24 #pragma clang diagnostic warning "-Weverything" 27 #pragma clang diagnostic push // push again 28 #pragma clang diagnostic ignored "-Weverything" // Set to ignore in this level. [all …]
|
/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() 183 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position() 186 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position() 197 [[clang::fallthrough]]; // no warning here in fallthrough_position() 200 [[clang::fallthrough]]; // no warning here in fallthrough_position() 218 [[clang::fallthrough]]; // no warning here, this shouldn't be treated as unreachable code in fallthrough_covered_enums() 237 [[clang::fallthrough]]; // no diagnostics in fallthrough_in_local_class() [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() 12 #pragma clang loop distribute(enable) in while_test() 24 #pragma clang loop vectorize_width(8) interleave_count(4) unroll(disable) distribute(disable) in do_test() 36 #pragma clang loop interleave(enable) in for_test() 37 #pragma clang loop interleave_count(static_cast<int>(Tuner::Interleave)) in for_test() 38 #pragma clang loop unroll_count(static_cast<int>(Tuner::Unroll)) in for_test() 50 #pragma clang loop vectorize_width(2) interleave_count(2) in for_range_test() [all …]
|
/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 …]
|