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_cursor.py6 from clang.cindex import TranslationUnit
78 assert isinstance(cursor.translation_unit, TranslationUnit)
83 assert isinstance(cursor.translation_unit, TranslationUnit)
Dtest_index.py15 assert isinstance(tu, 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.cpp5015 case Decl::TranslationUnit: in clang_getCursorDefinition()
/external/clang/bindings/python/clang/
Dcindex.py1514 if isinstance(arg, TranslationUnit):
2194 return TranslationUnit.from_ast_file(path, self)
2209 return TranslationUnit.from_source(path, args, unsaved_files, options,
2212 class TranslationUnit(ClangObject): class
2815 [TranslationUnit, POINTER(Token), c_uint, POINTER(Cursor)]),
2861 [TranslationUnit, c_char_p, c_int, c_int, c_void_p, c_int, c_int],
2893 [TranslationUnit],
2912 [TranslationUnit, POINTER(Token), c_uint]),
2915 [TranslationUnit]),
2990 [TranslationUnit, SourceLocation],
[all …]
/external/clang/lib/Serialization/
DASTCommon.cpp96 case Decl::TranslationUnit: in getDefinitiveDeclContext()
153 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.cpp599 case TranslationUnit: in getIdentifierNamespaceForKind()
882 while (DC->getDeclKind() != Decl::TranslationUnit) { in isLinkageSpecContext()
910 case Decl::TranslationUnit: in getPrimaryContext()
DDecl.cpp297 while (DC->getDeclKind() != Decl::TranslationUnit) { in getOutermostFuncOrBlockContext()
/external/clang/lib/Frontend/
DASTConsumers.cpp201 case Decl::TranslationUnit: in PrintDeclContext()
/external/clang/include/clang/AST/
DDeclBase.h1218 return DeclKind == Decl::TranslationUnit || DeclKind == Decl::Namespace; in isFileContext()
1222 return DeclKind == Decl::TranslationUnit; in isTranslationUnit()
DDecl.h86 : Decl(TranslationUnit, nullptr, SourceLocation()), in TranslationUnitDecl()
87 DeclContext(TranslationUnit), in TranslationUnitDecl()
98 static bool classofKind(Kind K) { return K == TranslationUnit; } in classofKind()
/external/clang/lib/CodeGen/
DCGDecl.cpp36 case Decl::TranslationUnit: in EmitDecl()
/external/lldb/source/Plugins/SymbolFile/DWARF/
DSymbolFileDWARF.cpp7864 case clang::Decl::TranslationUnit: in FindExternalVisibleDeclsByName()
/external/clang/lib/Sema/
DSemaCodeComplete.cpp2995 case Decl::TranslationUnit: return CXCursor_TranslationUnit; in getCursorKindForDecl()

12