Home
last modified time | relevance | path

Searched refs:clang (Results 1 – 25 of 4633) sorted by relevance

12345678910>>...186

/external/clang/test/Parser/
Dpragma-loop.cpp8 #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/
DAndroid.bp2 name: "clang-defaults",
7 header_libs: ["clang-headers"],
18 "external/clang/include",
19 "external/clang/lib/CodeGen",
44 "clang-gen-options",
45 "clang-gen-attributes",
46 "clang-gen-checkers",
47 "clang-gen-comment-commands",
48 "clang-gen-comment-html-named-character-references",
49 "clang-gen-html-tags",
[all …]
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.h29 namespace clang {
46 class MapVisitor : public clang::RecursiveASTVisitor<MapVisitor> {
48 explicit MapVisitor(std::set<clang::Decl *> &m);
49 bool VisitCallExpr(clang::CallExpr *Call);
50 void set_ptreg(std::tuple<clang::Decl *, int> &pt) { ptregs_.insert(pt); } in set_ptreg()
52 std::set<clang::Decl *> &m_;
53 std::set<std::tuple<clang::Decl *, int>> ptregs_;
60 class BTypeVisitor : public clang::RecursiveASTVisitor<BTypeVisitor> {
62 explicit BTypeVisitor(clang::ASTContext &C, BFrontendAction &fe);
63 bool TraverseCallExpr(clang::CallExpr *Call);
[all …]
Dtp_frontend_action.h27 namespace clang {
43 public clang::RecursiveASTVisitor<TracepointTypeVisitor> {
45 explicit TracepointTypeVisitor(clang::ASTContext &C,
46 clang::Rewriter &rewriter);
47 bool VisitFunctionDecl(clang::FunctionDecl *D);
50 std::string GenerateTracepointStruct(clang::SourceLocation loc,
53 clang::ASTContext &C;
54 clang::DiagnosticsEngine &diag_;
55 clang::Rewriter &rewriter_;
59 class TracepointTypeConsumer : public clang::ASTConsumer {
[all …]
/external/v8/tools/clang/rewrite_to_chrome_style/
DRewriteToChromeStyle.cpp45 using namespace clang::ast_matchers;
46 using clang::tooling::CommonOptionsParser;
47 using clang::tooling::Replacement;
57 std::set<clang::SourceLocation>& GetRewrittenLocs() { in GetRewrittenLocs()
58 static auto& locations = *new std::set<clang::SourceLocation>(); in GetRewrittenLocs()
65 clang::ASTContext& context) { in IsMatching()
69 const clang::ast_matchers::internal::
70 VariadicDynCastAllOfMatcher<clang::Expr, clang::UnresolvedMemberExpr>
73 const clang::ast_matchers::internal::
74 VariadicDynCastAllOfMatcher<clang::Expr, clang::DependentScopeDeclRefExpr>
[all …]
/external/v8/tools/clang/plugins/
DFindBadConstructsConsumer.h43 : public clang::RecursiveASTVisitor<FindBadConstructsConsumer>,
46 FindBadConstructsConsumer(clang::CompilerInstance& instance,
49 void Traverse(clang::ASTContext& context);
52 bool TraverseDecl(clang::Decl* decl);
53 bool VisitEnumDecl(clang::EnumDecl* enum_decl);
54 bool VisitTagDecl(clang::TagDecl* tag_decl);
55 bool VisitVarDecl(clang::VarDecl* var_decl);
56 bool VisitTemplateSpecializationType(clang::TemplateSpecializationType* spec);
57 bool VisitCallExpr(clang::CallExpr* call_expr);
61 clang::SourceLocation record_location,
[all …]
DCheckIPCVisitor.h42 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 …]
/external/v8/tools/clang/translation_unit/
DTranslationUnitGenerator.cpp37 using clang::HeaderSearchOptions;
38 using clang::tooling::CommonOptionsParser;
48 class IncludeFinderPPCallbacks : public clang::PPCallbacks {
50 IncludeFinderPPCallbacks(clang::SourceManager* source_manager,
54 void FileChanged(clang::SourceLocation /*loc*/,
55 clang::PPCallbacks::FileChangeReason reason,
56 clang::SrcMgr::CharacteristicKind /*file_type*/,
57 clang::FileID /*prev_fid*/) override;
59 void InclusionDirective(clang::SourceLocation hash_loc,
60 const clang::Token& include_tok,
[all …]
/external/v8/tools/clang/blink_gc_plugin/
DRecordInfo.h39 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 …]
DDiagnosticsReporter.h23 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 …]
DBlinkGCPluginConsumer.h23 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 …]
DCheckTraceVisitor.h20 class CheckTraceVisitor : public clang::RecursiveASTVisitor<CheckTraceVisitor> {
22 CheckTraceVisitor(clang::CXXMethodDecl* trace,
26 bool VisitMemberExpr(clang::MemberExpr* member);
27 bool VisitCallExpr(clang::CallExpr* call);
32 clang::CXXRecordDecl* GetDependentTemplatedDecl(
33 clang::CXXDependentScopeMemberExpr* expr);
36 clang::CallExpr* call,
37 clang::CXXDependentScopeMemberExpr* expr);
38 bool CheckTraceBaseCall(clang::CallExpr* call);
39 bool CheckTraceFieldMemberCall(clang::CXXMemberCallExpr* call);
[all …]
/external/google-fruit/extras/scripts/
Dpostsubmit-helper.sh35 clang-3.5)
36 export CC=clang-3.5
37 export CXX=clang++-3.5
40 clang-3.6)
41 export CC=clang-3.6
42 export CXX=clang++-3.6
45 clang-3.7)
46 export CC=clang-3.7
47 export CXX=clang++-3.7
50 clang-3.8)
[all …]
/external/v8/tools/gcmole/
Dgcmole.cc51 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/
DRewriteScopedRefptr.cpp27 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/tools/clang-format/
DCMakeLists.txt3 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/ASTMatchers/
DASTMatchersMacros.h59 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/AST/
DTypeOrdering.h26 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 …]
DBaseSubobject.h23 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/
DCallGraph.h26 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/
Dpragma_diagnostic_sections.cpp7 #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 …]
Dpushable-diagnostics.c3 #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/v8/tools/clang/base_bind_rewriters/
DBaseBindRewriters.cpp26 using Replacements = std::vector<clang::tooling::Replacement>;
27 using clang::ASTContext;
28 using clang::CFG;
29 using clang::CFGBlock;
30 using clang::CFGLifetimeEnds;
31 using clang::CFGStmt;
32 using clang::CallExpr;
33 using clang::Decl;
34 using clang::DeclRefExpr;
35 using clang::FunctionDecl;
[all …]
/external/clang/test/SemaCXX/
Dswitch-implicit-fallthrough.cpp55 [[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/
Dpragma-loop.cpp8 #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 …]

12345678910>>...186