Home
last modified time | relevance | path

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

12

/external/clang/bindings/python/tests/cindex/
Dtest_translation_unit.py13 from clang.cindex import TranslationUnit
21 tu = TranslationUnit.from_source(path)
33 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
40 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
47 tu = TranslationUnit.from_source('fake.c', ['-I./'], unsaved_files = [
63 tu = TranslationUnit.from_source('fake.c', unsaved_files = [
88 tu = TranslationUnit.from_source(src)
137 tu2 = TranslationUnit.from_ast_file(filename=path)
152 assert isinstance(tu, TranslationUnit)
240 tu = TranslationUnit.from_source(path)
[all …]
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_comment.py1 from clang.cindex import TranslationUnit
18 tu = TranslationUnit.from_source('fake.c', ['-std=c99'], unsaved_files=files,
19 options=TranslationUnit.PARSE_INCLUDE_BRIEF_COMMENTS_IN_CODE_COMPLETION)
Dutil.py4 from clang.cindex import TranslationUnit
30 return TranslationUnit.from_source(name, args, unsaved_files=[(name,
Dtest_index.py15 assert isinstance(tu, TranslationUnit)
Dtest_cursor.py6 from clang.cindex import TranslationUnit
78 assert isinstance(cursor.translation_unit, TranslationUnit)
83 assert isinstance(cursor.translation_unit, TranslationUnit)
Dtest_access_specifiers.py4 from clang.cindex import TranslationUnit
Dtest_type.py4 from clang.cindex import TranslationUnit
89 assert isinstance(t.translation_unit, TranslationUnit)
94 assert isinstance(t.translation_unit, TranslationUnit)
/external/clang/tools/libclang/
DCXComment.h35 Result.TranslationUnit = TU; in createCXComment()
53 return cxtu::getASTUnit(CXC.TranslationUnit)->getASTContext(); in getASTContext()
DCXComment.cpp106 return createCXComment(*(C->child_begin() + ChildIdx), CXC.TranslationUnit); in clang_Comment_getChild()
258 return createCXComment(BCC->getParagraph(), CXC.TranslationUnit); in clang_BlockCommandComment_getParagraph()
370 CXTranslationUnit TU = CXC.TranslationUnit; in clang_HTMLTagComment_getAsString()
385 CXTranslationUnit TU = CXC.TranslationUnit; in clang_FullComment_getAsHTML()
400 CXTranslationUnit TU = CXC.TranslationUnit; in clang_FullComment_getAsXML()
DCIndexCodeCompletion.cpp532 CXTranslationUnit *TranslationUnit) in CaptureCompletionResults() argument
535 TU(TranslationUnit) { } in CaptureCompletionResults()
DCIndex.cpp5270 case Decl::TranslationUnit: in clang_getCursorDefinition()
/external/clang/bindings/python/clang/
Dcindex.py1544 if isinstance(arg, TranslationUnit):
2225 return TranslationUnit.from_ast_file(path, self)
2240 return TranslationUnit.from_source(path, args, unsaved_files, options,
2243 class TranslationUnit(ClangObject): class
2846 [TranslationUnit, POINTER(Token), c_uint, POINTER(Cursor)]),
2892 [TranslationUnit, c_char_p, c_int, c_int, c_void_p, c_int, c_int],
2932 [TranslationUnit],
2951 [TranslationUnit, POINTER(Token), c_uint]),
2954 [TranslationUnit]),
3029 [TranslationUnit, SourceLocation],
[all …]
/external/clang/lib/Serialization/
DASTCommon.cpp210 case Decl::TranslationUnit: in getDefinitiveDeclContext()
267 case Decl::TranslationUnit: in isRedeclarableDeclKind()
/external/clang/include/clang-c/
DDocumentation.h39 CXTranslationUnit TranslationUnit; member
/external/clang/include/clang/Basic/
DDeclNodes.td13 def TranslationUnit : Decl, DeclContext;
/external/clang/include/clang/Analysis/
DAnalysisContext.h41 namespace idx { class TranslationUnit; } variable
/external/clang/lib/AST/
DDeclBase.cpp638 case TranslationUnit: in getIdentifierNamespaceForKind()
922 while (DC->getDeclKind() != Decl::TranslationUnit) { in isLinkageSpecContext()
950 case Decl::TranslationUnit: in getPrimaryContext()
DDecl.cpp48 : Decl(TranslationUnit, nullptr, SourceLocation()), in TranslationUnitDecl()
49 DeclContext(TranslationUnit), Ctx(ctx), AnonymousNamespace(nullptr) { in TranslationUnitDecl()
302 while (DC->getDeclKind() != Decl::TranslationUnit) { in getOutermostFuncOrBlockContext()
/external/clang/lib/Frontend/
DASTConsumers.cpp201 case Decl::TranslationUnit: in PrintDeclContext()
/external/clang/include/clang/AST/
DDeclBase.h1261 return DeclKind == Decl::TranslationUnit || DeclKind == Decl::Namespace; in isFileContext()
1265 return DeclKind == Decl::TranslationUnit; in isTranslationUnit()
DDecl.h97 static bool classofKind(Kind K) { return K == TranslationUnit; } in classofKind()
/external/clang/lib/CodeGen/
DCGDecl.cpp39 case Decl::TranslationUnit: in EmitDecl()
/external/lldb/source/Plugins/SymbolFile/DWARF/
DSymbolFileDWARF.cpp7864 case clang::Decl::TranslationUnit: in FindExternalVisibleDeclsByName()
/external/clang/lib/Sema/
DSemaCodeComplete.cpp3052 case Decl::TranslationUnit: return CXCursor_TranslationUnit; in getCursorKindForDecl()

12