Home
last modified time | relevance | path

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

12345678910>>...78

/external/clang/test/Parser/
Dpragma-loop.cpp9 #pragma clang loop vectorize(enable) in test()
10 #pragma clang loop interleave(enable) in test()
11 #pragma clang loop unroll(enable) in test()
16 #pragma clang loop vectorize_width(4) in test()
17 #pragma clang loop interleave_count(8) in test()
18 #pragma clang loop unroll_count(16) in test()
23 #pragma clang loop vectorize(disable) in test()
24 #pragma clang loop interleave(disable) in test()
25 #pragma clang loop unroll(disable) in test()
30 #pragma clang loop vectorize_width(4) interleave_count(8) unroll_count(16) in test()
[all …]
/external/lldb/include/lldb/Symbol/
DClangASTContext.h38 typedef void (*CompleteTagDeclCallback)(void *baton, clang::TagDecl *);
39 typedef void (*CompleteObjCInterfaceDeclCallback)(void *baton, clang::ObjCInterfaceDecl *);
48 clang::ASTContext *
51 clang::Builtin::Context *
54 clang::IdentifierTable *
57 clang::LangOptions *
60 clang::SelectorTable *
63 clang::FileManager *
66 clang::SourceManager *
69 clang::DiagnosticsEngine *
[all …]
DClangASTImporter.h90 m_file_manager(clang::FileSystemOptions()) in ClangASTImporter()
94 clang::QualType
95 CopyType (clang::ASTContext *dst_ctx,
96 clang::ASTContext *src_ctx,
97 clang::QualType type);
100 CopyType (clang::ASTContext *dst_ctx,
101 clang::ASTContext *src_ctx,
104 clang::Decl *
105 CopyDecl (clang::ASTContext *dst_ctx,
106 clang::ASTContext *src_ctx,
[all …]
DClangExternalASTSourceCallbacks.h34 typedef void (*CompleteTagDeclCallback)(void *baton, clang::TagDecl *);
35 typedef void (*CompleteObjCInterfaceDeclCallback)(void *baton, clang::ObjCInterfaceDecl *);
36 …sByNameCallback)(void *baton, const clang::DeclContext *DC, clang::DeclarationName Name, llvm::Sma…
38 const clang::RecordDecl *Record,
41 … llvm::DenseMap <const clang::FieldDecl *, uint64_t> &FieldOffsets,
42 … llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &BaseOffsets,
43 … llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &VirtualBaseOffsets);
62 virtual clang::Decl *
70 virtual clang::Stmt *
79 virtual clang::Selector
[all …]
/external/clang/
Dclang-tblgen-rules.mk13 LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrDump.inc
14 $(intermediates)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
15 $(intermediates)/include/clang/AST/AttrDump.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $…
16 $(call transform-host-clang-td-to-out,clang-attr-dump)
20 LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrImpl.inc
21 $(intermediates)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
22 $(intermediates)/include/clang/AST/AttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $…
23 $(call transform-host-clang-td-to-out,clang-attr-impl)
27 LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/AttrHasAttributeImpl.inc
28 $(intermediates)/include/clang/Basic/AttrHasAttributeImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODUL…
[all …]
/external/lldb/include/lldb/Expression/
DClangASTSource.h66 clang::Decl *GetExternalDecl (uint32_t) { return NULL; } in GetExternalDecl()
67 clang::Stmt *GetExternalDeclStmt (uint64_t) { return NULL; } in GetExternalDeclStmt()
68 clang::Selector GetExternalSelector (uint32_t) { return clang::Selector(); } in GetExternalSelector()
70 clang::CXXBaseSpecifier *GetExternalCXXBaseSpecifiers (uint64_t Offset) in GetExternalCXXBaseSpecifiers()
72 void MaterializeVisibleDecls (const clang::DeclContext *DC) in MaterializeVisibleDecls()
75 void InstallASTContext (clang::ASTContext *ast_context) in InstallASTContext()
104 FindExternalVisibleDeclsByName (const clang::DeclContext *DC,
105 clang::DeclarationName Name);
120 clang::ExternalLoadResult
121 FindExternalLexicalDecls (const clang::DeclContext *DC,
[all …]
DASTResultSynthesizer.h32 class ASTResultSynthesizer : public clang::SemaConsumer
48 ASTResultSynthesizer(clang::ASTConsumer *passthrough,
63 void Initialize(clang::ASTContext &Context);
74 bool HandleTopLevelDecl(clang::DeclGroupRef D);
79 void HandleTranslationUnit(clang::ASTContext &Ctx);
84 void HandleTagDeclDefinition(clang::TagDecl *D);
89 void CompleteTentativeDefinition(clang::VarDecl *D);
94 void HandleVTable(clang::CXXRecordDecl *RD, bool DefinitionRequired);
108 void InitializeSema(clang::Sema &S);
123 void TransformTopLevelDecl(clang::Decl *D);
[all …]
DASTStructExtractor.h35 class ASTStructExtractor : public clang::SemaConsumer
55 ASTStructExtractor(clang::ASTConsumer *passthrough,
71 void Initialize(clang::ASTContext &Context);
82 bool HandleTopLevelDecl(clang::DeclGroupRef D);
87 void HandleTranslationUnit(clang::ASTContext &Ctx);
92 void HandleTagDeclDefinition(clang::TagDecl *D);
97 void CompleteTentativeDefinition(clang::VarDecl *D);
102 void HandleVTable(clang::CXXRecordDecl *RD, bool DefinitionRequired);
116 void InitializeSema(clang::Sema &S);
131 ExtractFromFunctionDecl(clang::FunctionDecl* F);
[all …]
/external/chromium_org/tools/clang/plugins/
DFindBadConstructsConsumer.h35 FindBadConstructsConsumer(clang::CompilerInstance& instance,
39 virtual void CheckChromeClass(clang::SourceLocation record_location,
40 clang::CXXRecordDecl* record);
41 virtual void CheckChromeEnum(clang::SourceLocation enum_location,
42 clang::EnumDecl* enum_decl);
48 void CheckCtorDtorWeight(clang::SourceLocation record_location,
49 clang::CXXRecordDecl* record);
51 void CheckVirtualMethod(const clang::CXXMethodDecl* method,
54 bool InTestingNamespace(const clang::Decl* record);
55 bool IsMethodInBannedOrTestingNamespace(const clang::CXXMethodDecl* method);
[all …]
DChromeClassTester.h17 class ChromeClassTester : public clang::ASTConsumer {
19 explicit ChromeClassTester(clang::CompilerInstance& instance);
23 virtual void HandleTagDeclDefinition(clang::TagDecl* tag);
24 virtual bool HandleTopLevelDecl(clang::DeclGroupRef group_ref);
27 clang::CompilerInstance& instance() { return instance_; } in instance()
28 clang::DiagnosticsEngine& diagnostic() { return diagnostic_; } in diagnostic()
32 void emitWarning(clang::SourceLocation loc, const char* error);
36 bool InBannedNamespace(const clang::Decl* record);
41 std::string GetNamespace(const clang::Decl* record);
45 bool InImplementationFile(clang::SourceLocation location);
[all …]
/external/chromium_org/tools/clang/empty_string/
DEmptyStringConverter.cpp20 using clang::ast_matchers::MatchFinder;
21 using clang::ast_matchers::argumentCountIs;
22 using clang::ast_matchers::bindTemporaryExpr;
23 using clang::ast_matchers::constructorDecl;
24 using clang::ast_matchers::constructExpr;
25 using clang::ast_matchers::defaultArgExpr;
26 using clang::ast_matchers::expr;
27 using clang::ast_matchers::forEach;
28 using clang::ast_matchers::has;
29 using clang::ast_matchers::hasArgument;
[all …]
/external/lldb/source/Symbol/
DClangASTType.cpp52 using namespace clang;
58 const clang::Type::TypeClass type_class = qual_type->getTypeClass(); in GetCompleteQualType()
61 case clang::Type::ConstantArray: in GetCompleteQualType()
62 case clang::Type::IncompleteArray: in GetCompleteQualType()
63 case clang::Type::VariableArray: in GetCompleteQualType()
72 case clang::Type::Record: in GetCompleteQualType()
73 case clang::Type::Enum: in GetCompleteQualType()
106 case clang::Type::ObjCObject: in GetCompleteQualType()
107 case clang::Type::ObjCInterface: in GetCompleteQualType()
141 case clang::Type::Typedef: in GetCompleteQualType()
[all …]
DClangExternalASTSourceCallbacks.cpp45 using namespace clang;
51 const clang::DeclContext *decl_ctx, in FindExternalVisibleDeclsByName()
52 clang::DeclarationName clang_decl_name in FindExternalVisibleDeclsByName()
57 llvm::SmallVector <clang::NamedDecl *, 3> results; in FindExternalVisibleDeclsByName()
70 case clang::DeclarationName::Identifier: in FindExternalVisibleDeclsByName()
79 case clang::DeclarationName::ObjCZeroArgSelector: in FindExternalVisibleDeclsByName()
84 case clang::DeclarationName::ObjCOneArgSelector: in FindExternalVisibleDeclsByName()
89 case clang::DeclarationName::ObjCMultiArgSelector: in FindExternalVisibleDeclsByName()
94 case clang::DeclarationName::CXXConstructorName: in FindExternalVisibleDeclsByName()
100 case clang::DeclarationName::CXXDestructorName: in FindExternalVisibleDeclsByName()
[all …]
/external/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
DAppleObjCTypeVendor.cpp34 FindExternalVisibleDeclsByName (const clang::DeclContext *decl_ctx, in FindExternalVisibleDeclsByName()
35 clang::DeclarationName name) in FindExternalVisibleDeclsByName()
54 …const clang::ObjCInterfaceDecl *interface_decl = llvm::dyn_cast<clang::ObjCInterfaceDecl>(decl_ctx… in FindExternalVisibleDeclsByName()
59clang::ObjCInterfaceDecl *non_const_interface_decl = const_cast<clang::ObjCInterfaceDecl*>(interfa… in FindExternalVisibleDeclsByName()
64 clang::DeclContext::lookup_const_result result = non_const_interface_decl->lookup(name); in FindExternalVisibleDeclsByName()
74 clang::ExternalLoadResult
75 FindExternalLexicalDecls (const clang::DeclContext *DC, in FindExternalLexicalDecls()
76 bool (*isKindWeWant)(clang::Decl::Kind), in FindExternalLexicalDecls()
77 llvm::SmallVectorImpl<clang::Decl*> &Decls) in FindExternalLexicalDecls()
79 return clang::ELR_Success; in FindExternalLexicalDecls()
[all …]
/external/chromium_org/tools/clang/blink_gc_plugin/
DRecordInfo.h36 BasePoint(const clang::CXXBaseSpecifier& spec, in BasePoint()
41 const clang::CXXBaseSpecifier& spec() { return spec_; } in spec()
45 const clang::CXXBaseSpecifier& spec_;
52 FieldPoint(clang::FieldDecl* field, Edge* edge) in FieldPoint()
57 clang::FieldDecl* field() { return field_; } in field()
61 clang::FieldDecl* field_;
71 typedef std::map<clang::CXXRecordDecl*, BasePoint> Bases;
72 typedef std::map<clang::FieldDecl*, FieldPoint> Fields;
73 typedef std::vector<const clang::Type*> TemplateArgs;
77 clang::CXXRecordDecl* record() const { return record_; } in record()
[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.h22 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 …]
/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 …]
/external/chromium_org/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/chromium_org/tools/clang/rewrite_scoped_refptr/
DRewriteScopedRefptr.cpp26 using namespace clang::ast_matchers;
27 using clang::tooling::CommonOptionsParser;
28 using clang::tooling::Replacement;
29 using clang::tooling::Replacements;
32 namespace clang { namespace
49 bool NeedsParens(const clang::Expr* expr) { in NeedsParens()
50 if (llvm::dyn_cast<clang::UnaryOperator>(expr) || in NeedsParens()
51 llvm::dyn_cast<clang::BinaryOperator>(expr) || in NeedsParens()
52 llvm::dyn_cast<clang::ConditionalOperator>(expr)) { in NeedsParens()
57 if (const clang::CXXOperatorCallExpr* op = in NeedsParens()
[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/tools/clang-format/
DCMakeLists.txt3 add_clang_executable(clang-format
7 target_link_libraries(clang-format
15 install(TARGETS clang-format RUNTIME DESTINATION bin)
16 install(PROGRAMS clang-format-bbedit.applescript DESTINATION share/clang)
17 install(PROGRAMS clang-format-diff.py DESTINATION share/clang)
18 install(PROGRAMS clang-format-sublime.py DESTINATION share/clang)
19 install(PROGRAMS clang-format.el DESTINATION share/clang)
20 install(PROGRAMS clang-format.py DESTINATION share/clang)
21 install(PROGRAMS git-clang-format DESTINATION bin)
/external/clang/tools/driver/
DCMakeLists.txt21 option(CLANG_PLUGIN_SUPPORT "Build clang with plugin support" ON)
29 add_clang_executable(clang
35 target_link_libraries(clang
42 set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION})
46 set_target_properties(clang PROPERTIES ENABLE_EXPORTS 1)
49 add_dependencies(clang clang-headers)
54 set(clang_binary "clang${CMAKE_EXECUTABLE_SUFFIX}")
57 set(clang_binary "${LLVM_RUNTIME_OUTPUT_INTDIR}/clang${CMAKE_EXECUTABLE_SUFFIX}")
60 # Create the clang++ symlink in the build directory.
61 set(clang_pp "${LLVM_RUNTIME_OUTPUT_INTDIR}/clang++${CMAKE_EXECUTABLE_SUFFIX}")
[all …]
/external/clang/patches/
D0004-Add-Android-build-system.patch9 clang-host-build.mk | 38 ++++++
10 clang-tblgen-rules.mk | 237 +++++++++++++++++++++++++++++++++
11 clang-version-inc.mk | 36 +++++
12 clang.mk | 7 +
14 include/clang/Config/config.h | 25 ++++
39 create mode 100644 clang-host-build.mk
40 create mode 100644 clang-tblgen-rules.mk
41 create mode 100644 clang-version-inc.mk
42 create mode 100644 clang.mk
44 create mode 100644 include/clang/Config/config.h
[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()
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 …]

12345678910>>...78