Home
last modified time | relevance | path

Searched refs:TranslationUnit (Results 1 – 23 of 23) sorted by relevance

/external/clang/bindings/python/tests/cindex/
Dtest_code_completion.py1 from clang.cindex import TranslationUnit
25 tu = TranslationUnit.from_source('fake.c', ['-std=c99'], unsaved_files=files,
26 options=TranslationUnit.PARSE_INCLUDE_BRIEF_COMMENTS_IN_CODE_COMPLETION)
55 tu = TranslationUnit.from_source('fake.cpp', ['-std=c++98'], unsaved_files=files)
Dtest_translation_unit.py11 from clang.cindex import TranslationUnit
19 tu = TranslationUnit.from_source(path)
31 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
38 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
45 tu = TranslationUnit.from_source('fake.c', ['-I./'], unsaved_files = [
61 tu = TranslationUnit.from_source('fake.c', unsaved_files = [
86 tu = TranslationUnit.from_source(src)
143 tu2 = TranslationUnit.from_ast_file(filename=path)
158 assert isinstance(tu, TranslationUnit)
Dutil.py4 from clang.cindex import TranslationUnit
30 return TranslationUnit.from_source(name, args, unsaved_files=[(name,
Dtest_cursor.py4 from clang.cindex import TranslationUnit
83 assert isinstance(cursor.translation_unit, TranslationUnit)
88 assert isinstance(cursor.translation_unit, TranslationUnit)
Dtest_type.py4 from clang.cindex import TranslationUnit
89 assert isinstance(t.translation_unit, TranslationUnit)
94 assert isinstance(t.translation_unit, TranslationUnit)
Dtest_index.py15 assert isinstance(tu, TranslationUnit)
/external/clang/tools/libclang/
DCXComment.h34 Result.TranslationUnit = TU; in createCXComment()
52 return cxtu::getASTUnit(CXC.TranslationUnit)->getASTContext(); in getASTContext()
DCIndexCodeCompletion.cpp535 CXTranslationUnit *TranslationUnit) in CaptureCompletionResults() argument
538 TU(TranslationUnit) { } in CaptureCompletionResults()
DCXComment.cpp98 return createCXComment(*(C->child_begin() + ChildIdx), CXC.TranslationUnit); in clang_Comment_getChild()
250 return createCXComment(BCC->getParagraph(), CXC.TranslationUnit); in clang_BlockCommandComment_getParagraph()
1426 CXTranslationUnit TU = CXC.TranslationUnit; in clang_FullComment_getAsXML()
DCIndex.cpp4466 case Decl::TranslationUnit: in clang_getCursorDefinition()
/external/clang/bindings/python/clang/
Dcindex.py1328 if isinstance(arg, TranslationUnit):
1891 return TranslationUnit.from_ast(path, self)
1906 return TranslationUnit.from_source(path, args, unsaved_files, options,
1909 class TranslationUnit(ClangObject): class
2503 [TranslationUnit, POINTER(Token), c_uint, POINTER(Cursor)]),
2544 [TranslationUnit, c_char_p, c_int, c_int, c_void_p, c_int, c_int],
2572 [TranslationUnit],
2591 [TranslationUnit, POINTER(Token), c_uint]),
2594 [TranslationUnit]),
2665 [TranslationUnit, SourceLocation],
[all …]
/external/clang/lib/Serialization/
DASTCommon.cpp95 case Decl::TranslationUnit: in getDefinitiveDeclContext()
150 case Decl::TranslationUnit: // Special case of a "merged" declaration. in isRedeclarableDeclKind()
/external/clang/include/clang/Basic/
DDeclNodes.td13 def TranslationUnit : Decl, DeclContext;
/external/clang/docs/
DIntroductionToTheClangAST.rst48 <TranslationUnit ptr="0x4871160">
74 </TranslationUnit>
/external/clang/lib/AST/
DDeclBase.cpp554 case TranslationUnit: in getIdentifierNamespaceForKind()
804 while (DC->DeclKind != Decl::TranslationUnit) { in isExternCContext()
815 while (DC->DeclKind != Decl::TranslationUnit) { in isExternCXXContext()
836 case Decl::TranslationUnit: in getPrimaryContext()
/external/clang/include/clang/Analysis/
DAnalysisContext.h45 namespace idx { class TranslationUnit; } variable
/external/clang/lib/Frontend/
DASTConsumers.cpp188 case Decl::TranslationUnit: in PrintDeclContext()
/external/clang/include/clang/AST/
DDeclBase.h1051 return DeclKind == Decl::TranslationUnit || DeclKind == Decl::Namespace; in isFileContext()
1055 return DeclKind == Decl::TranslationUnit; in isTranslationUnit()
DDecl.h80 : Decl(TranslationUnit, 0, SourceLocation()), in TranslationUnitDecl()
81 DeclContext(TranslationUnit), in TranslationUnitDecl()
92 static bool classofKind(Kind K) { return K == TranslationUnit; } in classofKind()
/external/clang/include/clang-c/
DIndex.h2130 CXTranslationUnit TranslationUnit; member
/external/clang/lib/CodeGen/
DCGDecl.cpp35 case Decl::TranslationUnit: in EmitDecl()
/external/clang/lib/Sema/
DSemaCodeComplete.cpp2933 case Decl::TranslationUnit: return CXCursor_TranslationUnit; in getCursorKindForDecl()
DSemaDeclCXX.cpp6379 case Decl::TranslationUnit: in IsUsingDirectiveInToplevelContext()