Home
last modified time | relevance | path

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

12

/llvm-project/clang/bindings/python/tests/cindex/
H A Dtest_code_completion.py3 from clang.cindex import Config, TranslationUnit
40 tu = TranslationUnit.from_source(
44 options=TranslationUnit.PARSE_INCLUDE_BRIEF_COMMENTS_IN_CODE_COMPLETION,
76 tu = TranslationUnit.from_source(
80 options=TranslationUnit.PARSE_INCLUDE_BRIEF_COMMENTS_IN_CODE_COMPLETION,
121 tu = TranslationUnit.from_source(
H A Dtest_translation_unit.py11 TranslationUnit,
32 """Convenience API to save a TranslationUnit to a file.
43 """Convenience API to save a TranslationUnit to a file.
55 tu = TranslationUnit.from_source(path)
67 tu = TranslationUnit.from_source(path, ["-DDECL_ONE=hello", "-DDECL_TWO=hi"])
74 tu = TranslationUnit.from_source(path, ["-DDECL_ONE=hello", "-DDECL_TWO=hi"])
81 tu = TranslationUnit.from_source(
108 tu = TranslationUnit.from_source(
115 tu = TranslationUnit.from_source(
159 tu = TranslationUnit
[all...]
H A Dtest_comment.py3 from clang.cindex import Config, TranslationUnit
33 tu = TranslationUnit.from_source(
37 options=TranslationUnit.PARSE_INCLUDE_BRIEF_COMMENTS_IN_CODE_COMPLETION,
H A Dtest_index.py3 from clang.cindex import Config, Index, TranslationUnit
23 self.assertIsInstance(tu, TranslationUnit)
25 self.assertIsInstance(tu, TranslationUnit)
H A Dutil.py3 from clang.cindex import Cursor, TranslationUnit
30 return TranslationUnit.from_source(name, args, unsaved_files=[(name, source)])
38 TranslationUnit or Cursor instance.
57 TranslationUnit or Cursor instance.
H A Dtest_rewrite.py4 from clang.cindex import File, Rewriter, SourceLocation, SourceRange, TranslationUnit
14 self.tu = TranslationUnit.from_source(self.tmp.name)
H A Dtest_location.py9 TranslationUnit,
116 tu = TranslationUnit.from_source(
H A Dtest_access_specifiers.py
H A Dtest_linkage.py
H A Dtest_tls_kind.py
H A Dtest_type.py9 TranslationUnit,
126 """Ensure that a Type maintains a reference to a TranslationUnit."""
135 self.assertIsInstance(t.translation_unit, TranslationUnit)
137 # Delete main TranslationUnit reference and force a GC.
140 self.assertIsInstance(t.translation_unit, TranslationUnit)
/llvm-project/clang/unittests/Tooling/Syntax/
H A DTreeTestBase.cpp69 syntax::TranslationUnit * in buildTree()
75 BuildSyntaxTree(syntax::TranslationUnit *&Root, in buildTree()
94 syntax::TranslationUnit *&Root; in buildTree()
103 BuildSyntaxTreeAction(syntax::TranslationUnit *&Root, in buildTree()
119 syntax::TranslationUnit *&Root; in buildTree()
160 syntax::TranslationUnit *Root = nullptr; in buildTree()
H A DMutationsTest.cpp25 TranslationUnit * /*Root*/)>;
47 TranslationUnit *Root) { in __anonb432754e0202()
H A DTreeTestBase.h35 TranslationUnit *buildTree(StringRef Code,
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DForwardDeclarationNamespaceCheck.cpp86 // TranslationUnit declaration, the parent should be either a translation unit in haveSameNamespaceOrTranslationUnit()
88 if (ParentDecl1->getDeclKind() == Decl::TranslationUnit || in haveSameNamespaceOrTranslationUnit()
89 ParentDecl2->getDeclKind() == Decl::TranslationUnit) { in haveSameNamespaceOrTranslationUnit()
103 if (ParentDecl->getDeclKind() == Decl::TranslationUnit) { in getNameOfNamespace()
/llvm-project/clang/tools/libclang/
H A DCXComment.h34 Result.TranslationUnit = TU; in createCXComment()
52 return cxtu::getASTUnit(CXC.TranslationUnit)->getASTContext(); in getASTContext()
H A DCXComment.cpp102 return createCXComment(*(C->child_begin() + ChildIdx), CXC.TranslationUnit); in clang_Comment_getChild()
257 return createCXComment(BCC->getParagraph(), CXC.TranslationUnit); in clang_BlockCommandComment_getParagraph()
369 CXTranslationUnit TU = CXC.TranslationUnit; in clang_HTMLTagComment_getAsString()
384 CXTranslationUnit TU = CXC.TranslationUnit; in clang_FullComment_getAsHTML()
399 CXTranslationUnit TU = CXC.TranslationUnit; in clang_FullComment_getAsXML()
H A DCXTranslationUnit.h40 CXTranslationUnit TranslationUnit; member
/llvm-project/clang/include/clang/Tooling/Syntax/
H A DMutations.h25 const syntax::TranslationUnit &TU);
H A DBuildTree.h25 syntax::TranslationUnit *
/llvm-project/clang-tools-extra/clangd/test/
H A Dast-no-range.test47 # CHECK-NEXT: "kind": "TranslationUnit",
/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp312 case Decl::TranslationUnit: in getDefinitiveDeclContext()
371 case Decl::TranslationUnit: in isRedeclarableDeclKind()
/llvm-project/clang/lib/Tooling/Syntax/
H A DSynthesis.cpp75 case syntax::NodeKind::TranslationUnit: in allocateTree()
76 return new (A.getAllocator()) syntax::TranslationUnit; in allocateTree()
/llvm-project/lldb/include/lldb/
H A Dlldb-private-enumerations.h199 TranslationUnit = 1,
198 TranslationUnit = 1, global() enumerator
/llvm-project/clang/include/clang-c/
H A DDocumentation.h39 CXTranslationUnit TranslationUnit; member

12