Home
last modified time | relevance | path

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

12345678910>>...76

/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp91 using namespace clang;
97 static void VerifyDecl(clang::Decl *decl) { in VerifyDecl()
124 bool isOverload(clang::CXXMethodDecl *m1, clang::CXXMethodDecl *m2) { in isOverload()
128 clang::ASTContext &context = m1->getASTContext(); in isOverload()
130 const auto *m1Type = llvm::cast<clang::FunctionProtoType>( in isOverload()
133 const auto *m2Type = llvm::cast<clang::FunctionProtoType>( in isOverload()
136 auto compareArgTypes = [&context](const clang::QualType &m1p, in isOverload()
137 const clang::QualType &m2p) { in isOverload()
152 void addOverridesForMethod(clang::CXXMethodDecl *decl) { in addOverridesForMethod()
156 clang::CXXBasePaths paths; in addOverridesForMethod()
[all …]
H A DTypeSystemClang.h45 namespace clang {
114 typedef void (*CompleteTagDeclCallback)(void *baton, clang::TagDecl *);
116 clang::ObjCInterfaceDecl *);
137 clang::ASTContext &existing_ctxt);
158 static TypeSystemClang *GetASTContext(clang::ASTContext *ast_ctx);
165 clang::ASTContext &getASTContext() const;
167 clang::MangleContext *getMangleContext();
169 std::shared_ptr<clang::TargetOptions> &getTargetOptions();
171 clang::TargetInfo *getTargetInfo();
173 void setSema(clang::Sema *s);
[all …]
/freebsd/contrib/llvm-project/clang/include/
H A Dmodule.modulemap2 umbrella "clang-c"
8 umbrella "clang/Analysis"
10 textual header "clang/Analysis/Analyses/ThreadSafetyOps.def"
15 // library into clang. Due to inline key functions in the headers,
17 // matchers (and thus the AST), which clang-format should not have.
18 exclude header "clang/Analysis/Analyses/ExprMutationAnalyzer.h"
23 umbrella "clang/AST"
25 textual header "clang/AST/BuiltinTypes.def"
26 textual header "clang/AST/CXXRecordDeclDefinitionBits.def"
27 textual header "clang/AST/OperationKinds.def"
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTUtils.h19 namespace clang {
29 class ExternalASTSourceWrapper : public clang::ExternalSemaSource {
39 clang::Decl *GetExternalDecl(clang::GlobalDeclID ID) override { in GetExternalDecl()
43 clang::Selector GetExternalSelector(uint32_t ID) override { in GetExternalSelector()
51 clang::Stmt *GetExternalDeclStmt(uint64_t Offset) override { in GetExternalDeclStmt()
55 clang::CXXCtorInitializer **
60 clang::CXXBaseSpecifier *
65 void updateOutOfDateIdentifier(const clang::IdentifierInfo &II) override { in updateOutOfDateIdentifier()
69 bool FindExternalVisibleDeclsByName(const clang::DeclContext *DC, in FindExternalVisibleDeclsByName()
70 clang::DeclarationName Name) override { in FindExternalVisibleDeclsByName()
[all …]
H A DClangASTSource.h33 class ClangASTSource : public clang::ExternalASTSource,
52 clang::Decl *GetExternalDecl(clang::GlobalDeclID) override { return nullptr; } in GetExternalDecl()
53 clang::Stmt *GetExternalDeclStmt(uint64_t) override { return nullptr; } in GetExternalDeclStmt()
54 clang::Selector GetExternalSelector(uint32_t) override { in GetExternalSelector()
55 return clang::Selector(); in GetExternalSelector()
58 clang::CXXBaseSpecifier *
62 void MaterializeVisibleDecls(const clang::DeclContext *DC) {} in MaterializeVisibleDecls()
86 bool FindExternalVisibleDeclsByName(const clang::DeclContext *DC,
87 clang::DeclarationName Name) override;
101 const clang::DeclContext *DC,
[all …]
H A DClangASTImporter.h69 typedef llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits>
74 llvm::DenseMap<const clang::FieldDecl *, uint64_t> field_offsets;
80 : m_file_manager(clang::FileSystemOptions(), in ClangASTImporter()
98 clang::Decl *CopyDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
111 clang::Decl *DeportDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
120 void SetRecordLayout(clang::RecordDecl *decl, const LayoutInfo &layout);
123 const clang::RecordDecl *record_decl, uint64_t &bit_size,
125 llvm::DenseMap<const clang::FieldDecl *, uint64_t> &field_offsets,
126 llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits>
128 llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits>
[all …]
H A DASTResultSynthesizer.h15 namespace clang {
37 class ASTResultSynthesizer : public clang::SemaConsumer {
54 ASTResultSynthesizer(clang::ASTConsumer *passthrough, bool top_level,
65 void Initialize(clang::ASTContext &Context) override;
74 bool HandleTopLevelDecl(clang::DeclGroupRef D) override;
77 void HandleTranslationUnit(clang::ASTContext &Ctx) override;
80 void HandleTagDeclDefinition(clang::TagDecl *D) override;
83 void CompleteTentativeDefinition(clang::VarDecl *D) override;
86 void HandleVTable(clang::CXXRecordDecl *RD) override;
96 void InitializeSema(clang::Sema &S) override;
[all …]
H A DClangExternalASTSourceCallbacks.h16 namespace clang {
24 class ClangExternalASTSourceCallbacks : public clang::ExternalASTSource {
31 static bool classof(const clang::ExternalASTSource *s) { return s->isA(&ID); } in classof()
36 const clang::DeclContext *DC,
37 llvm::function_ref<bool(clang::Decl::Kind)> IsKindWeWant,
38 llvm::SmallVectorImpl<clang::Decl *> &Result) override;
40 bool FindExternalVisibleDeclsByName(const clang::DeclContext *DC,
41 clang::DeclarationName Name) override;
43 void CompleteType(clang::TagDecl *tag_decl) override;
45 void CompleteType(clang::ObjCInterfaceDecl *objc_decl) override;
[all …]
H A DClangExternalASTSourceCallbacks.cpp21 void ClangExternalASTSourceCallbacks::CompleteType(clang::TagDecl *tag_decl) { in CompleteType()
26 clang::ObjCInterfaceDecl *objc_decl) { in CompleteType()
31 const clang::RecordDecl *Record, uint64_t &Size, uint64_t &Alignment, in layoutRecordType()
32 llvm::DenseMap<const clang::FieldDecl *, uint64_t> &FieldOffsets, in layoutRecordType()
33 llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits> &BaseOffsets, in layoutRecordType()
34 llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits> in layoutRecordType()
41 const clang::DeclContext *decl_ctx, in FindExternalLexicalDecls()
42 llvm::function_ref<bool(clang::Decl::Kind)> IsKindWeWant, in FindExternalLexicalDecls()
43 llvm::SmallVectorImpl<clang::Decl *> &decls) { in FindExternalLexicalDecls()
45 clang::TagDecl *tag_decl = llvm::dyn_cast<clang::TagDecl>( in FindExternalLexicalDecls()
[all …]
H A DClangASTImporter.cpp34 using namespace clang;
38 clang::ASTContext &dst_clang_ast = dst_ast.getASTContext(); in CopyType()
44 clang::ASTContext &src_clang_ast = src_ast->getASTContext(); in CopyType()
46 clang::QualType src_qual_type = ClangUtil::GetQualType(src_type); in CopyType()
69 clang::Decl *ClangASTImporter::CopyDecl(clang::ASTContext *dst_ast, in CopyDecl()
70 clang::Decl *decl) { in CopyDecl()
73 clang::ASTContext *src_ast = &decl->getASTContext(); in CopyDecl()
81 llvm::Expected<clang::Decl *> result = delegate_sp->Import(decl); in CopyDecl()
112 clang::DeclContext *decl_context;
113 clang::DeclContext *lexical_decl_context;
[all …]
H A DClangModulesDeclVendor.cpp46 class StoringDiagnosticConsumer : public clang::DiagnosticConsumer {
50 void HandleDiagnostic(clang::DiagnosticsEngine::Level DiagLevel,
51 const clang::Diagnostic &info) override;
57 void BeginSourceFile(const clang::LangOptions &LangOpts,
58 const clang::Preprocessor *PP = nullptr) override;
62 bool HandleModuleRemark(const clang::Diagnostic &info);
65 typedef std::pair<clang::DiagnosticsEngine::Level, std::string>
70 std::unique_ptr<clang::TextDiagnosticPrinter> m_diag_printer;
85 llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine> diagnostics_engine,
86 std::shared_ptr<clang::CompilerInvocation> compiler_invocation,
[all …]
H A DASTStructExtractor.h33 class ASTStructExtractor : public clang::SemaConsumer {
51 ASTStructExtractor(clang::ASTConsumer *passthrough, const char *struct_name,
62 void Initialize(clang::ASTContext &Context) override;
71 bool HandleTopLevelDecl(clang::DeclGroupRef D) override;
74 void HandleTranslationUnit(clang::ASTContext &Ctx) override;
77 void HandleTagDeclDefinition(clang::TagDecl *D) override;
80 void CompleteTentativeDefinition(clang::VarDecl *D) override;
83 void HandleVTable(clang::CXXRecordDecl *RD) override;
93 void InitializeSema(clang::Sema &S) override;
104 void ExtractFromFunctionDecl(clang::FunctionDecl *F);
[all …]
/freebsd/targets/pseudo/clang/
H A DMakefile.depend6 lib/clang/headers \
7 share/doc/llvm/clang \
8 usr.bin/clang/clang \
9 usr.bin/clang/clang-tblgen \
10 usr.bin/clang/llvm-min-tblgen \
11 usr.bin/clang/llvm-objdump \
12 usr.bin/clang/llvm-tblgen \
38 usr.bin/clang/lldb
43 usr.bin/clang/bugpoint \
44 usr.bin/clang/llc \
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h22 namespace clang {
56 PdbAstBuilder(TypeSystemClang &clang);
62 clang::DeclContext *GetOrCreateDeclContextForUid(PdbSymUid uid);
63 clang::DeclContext *GetParentDeclContext(PdbSymUid uid);
65 clang::FunctionDecl *GetOrCreateFunctionDecl(PdbCompilandSymId func_id);
66 clang::FunctionDecl *
68 clang::BlockDecl *GetOrCreateBlockDecl(PdbCompilandSymId block_id);
69 clang::VarDecl *GetOrCreateVariableDecl(PdbCompilandSymId scope_id,
71 clang::VarDecl *GetOrCreateVariableDecl(PdbGlobalSymId var_id);
72 clang::TypedefNameDecl *GetOrCreateTypedefDecl(PdbGlobalSymId id);
[all …]
H A DPdbAstBuilder.cpp39 clang::FunctionDecl *&function_decl, in CreateMethodDecl()
48 clang::FunctionDecl *&function_decl;
99 static clang::TagTypeKind TranslateUdtKind(const TagRecord &cr) { in TranslateUdtKind()
102 return clang::TagTypeKind::Class; in TranslateUdtKind()
104 return clang::TagTypeKind::Struct; in TranslateUdtKind()
106 return clang::TagTypeKind::Union; in TranslateUdtKind()
108 return clang::TagTypeKind::Interface; in TranslateUdtKind()
110 return clang::TagTypeKind::Enum; in TranslateUdtKind()
113 return clang::TagTypeKind::Struct; in TranslateUdtKind()
133 static std::optional<clang
163 PdbAstBuilder(TypeSystemClang & clang) PdbAstBuilder() argument
[all...]
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersMacros.h58 return ::clang::ast_matchers::internal::MemoizedMatcher< \
97 : public ::clang::ast_matchers::internal::MatcherInterface<Type> { \
101 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
102 ::clang::ast_matchers::internal::BoundNodesTreeBuilder \
106 inline ::clang::ast_matchers::internal::Matcher<Type> DefineMatcher() { \
107 return ::clang::ast_matchers::internal::makeMatcher( \
112 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
113 ::clang::ast_matchers::internal::BoundNodesTreeBuilder *Builder) const
135 : public ::clang::ast_matchers::internal::MatcherInterface<Type> { \
141 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCDeclVendor.cpp27 : public clang::ExternalASTSource {
32 bool FindExternalVisibleDeclsByName(const clang::DeclContext *decl_ctx, in FindExternalVisibleDeclsByName()
33 clang::DeclarationName name) override { in FindExternalVisibleDeclsByName()
48 const clang::ObjCInterfaceDecl *interface_decl = in FindExternalVisibleDeclsByName()
49 llvm::dyn_cast<clang::ObjCInterfaceDecl>(decl_ctx); in FindExternalVisibleDeclsByName()
54 clang::ObjCInterfaceDecl *non_const_interface_decl = in FindExternalVisibleDeclsByName()
55 const_cast<clang::ObjCInterfaceDecl *>(interface_decl); in FindExternalVisibleDeclsByName()
60 clang::DeclContext::lookup_result result = in FindExternalVisibleDeclsByName()
70 void CompleteType(clang::TagDecl *tag_decl) override { in CompleteType()
86 void CompleteType(clang::ObjCInterfaceDecl *interface_decl) override { in CompleteType()
[all …]
/freebsd/lib/clang/libclang/
H A DMakefile4 LIB= clang
7 CFLAGS+= -I${OBJTOP}/lib/clang/libllvm
20 SRCDIR= clang/lib
847 clang/AST/AbstractBasicReader.inc: \
848 ${CLANG_SRCS}/include/clang/AST/PropertiesBase.td
849 ${CLANG_TBLGEN} -gen-clang-basic-reader \
851 ${CLANG_SRCS}/include/clang/AST/PropertiesBase.td
852 TGHDRS+= clang/AST/AbstractBasicReader.inc
854 clang/AST/AbstractBasicWriter.inc: \
855 ${CLANG_SRCS}/include/clang/AST/PropertiesBase.td
[all …]
/freebsd/usr.bin/clang/clang/
H A DMakefile3 PROG_CXX= clang
5 SRCDIR= clang/tools/driver
9 SRCS+= clang-driver.cpp
12 LINKS= ${BINDIR}/clang ${BINDIR}/clang++ \
13 ${BINDIR}/clang ${BINDIR}/clang-cpp
14 MLINKS= clang.1 clang++.1 \
15 clang.1 clang-cpp.1
20 LINKS+= ${BINDIR}/clang ${BINDIR}/cc \
21 ${BINDIR}/clang ${BINDIR}/c++ \
22 ${BINDIR}/clang ${BINDIR}/cpp
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DCallGraph.h30 namespace clang {
217 template <> struct DenseMapInfo<clang::CallGraphNode::CallRecord> {
218 static inline clang::CallGraphNode::CallRecord getEmptyKey() {
219 return clang::CallGraphNode::CallRecord(
220 DenseMapInfo<clang::CallGraphNode *>::getEmptyKey(),
221 DenseMapInfo<clang::Expr *>::getEmptyKey());
224 static inline clang::CallGraphNode::CallRecord getTombstoneKey() {
225 return clang::CallGraphNode::CallRecord(
226 DenseMapInfo<clang::CallGraphNode *>::getTombstoneKey(),
227 DenseMapInfo<clang::Expr *>::getTombstoneKey());
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTypeOrdering.h25 namespace clang {
38 template<> struct DenseMapInfo<clang::QualType> {
39 static inline clang::QualType getEmptyKey() { return clang::QualType(); }
41 static inline clang::QualType getTombstoneKey() {
42 using clang::QualType;
43 return QualType::getFromOpaquePtr(reinterpret_cast<clang::Type *>(-1));
46 static unsigned getHashValue(clang::QualType Val) {
51 static bool isEqual(clang::QualType LHS, clang::QualType RHS) {
56 template<> struct DenseMapInfo<clang::CanQualType> {
57 static inline clang::CanQualType getEmptyKey() {
[all …]
/freebsd/
H A DObsoleteFiles.inc280 # 20241023: new clang import which bumps version from 18 to 19
281 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_builtin_vars.h
282 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_cmath.h
283 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_complex_builtins.h
284 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_device_functions.h
285 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_intrinsics.h
286 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_libdevice_declares.h
287 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_math.h
288 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_math_forward_declares.h
289 OLD_FILES+=usr/lib/clang/1
[all...]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/
H A DDiagnosticsYaml.h23 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Diagnostic)
24 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::DiagnosticMessage) in LLVM_YAML_IS_SEQUENCE_VECTOR()
25 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::FileByteRange) in LLVM_YAML_IS_SEQUENCE_VECTOR()
30 template <> struct MappingTraits<clang::tooling::FileByteRange> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
31 static void mapping(IO &Io, clang::tooling::FileByteRange &R) { in LLVM_YAML_IS_SEQUENCE_VECTOR()
38 template <> struct MappingTraits<clang::tooling::DiagnosticMessage> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
39 static void mapping(IO &Io, clang::tooling::DiagnosticMessage &M) { in LLVM_YAML_IS_SEQUENCE_VECTOR()
43 std::vector<clang::tooling::Replacement> Fixes; in LLVM_YAML_IS_SEQUENCE_VECTOR()
60 template <> struct MappingTraits<clang::tooling::Diagnostic> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
66 : DiagLevel(clang::tooling::Diagnostic::Level::Warning) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
[all …]
/freebsd/contrib/llvm-project/
H A DFREEBSD-Xlist2 .clang-format
3 .clang-tidy
15 clang/.clang-format
16 clang/.clang-tidy
17 clang/.gitignore
18 clang/CMakeLists.txt
19 clang/CodeOwners.rst
20 clang/INSTALL.txt
21 clang/NOTES.txt
22 clang/README.txt
[all …]
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DDiagnosticBuilderWrappers.h25 const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB,
28 const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB,
31 const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB,
34 const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB,
37 const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB,
40 const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB,
43 const clang::DiagnosticBuilder &
44 operator<<(const clang::DiagnosticBuilder &DB,

12345678910>>...76