triton
|
1467c086b6
|
Use GenerateClassFields to generate internal class fields instead of duplicating the logic. Fixes struct inheritance handling.
|
13 years ago |
triton
|
be8ffb358e
|
Check for explicitly ignored declarations when checking for ignored types.
|
13 years ago |
triton
|
54db52dda7
|
Call HandlePreprocessedEntities to handle preprocessor definitions when walking through records.
|
13 years ago |
triton
|
bcb692c77a
|
Check for dependent contexts when parsing functions.
|
13 years ago |
triton
|
aed949e4dd
|
Fixed the IgnoreHeadersWithName helper to be more robust by checking for patterns against the file path and include paths.
|
13 years ago |
triton
|
cb6f2c72ca
|
When creating new fake methods from functions also initialize their mangled names.
|
13 years ago |
triton
|
b0d2757238
|
Fixed the CheckOperatorsOverloads pass to be more robust when handling declarations.
|
13 years ago |
triton
|
383850437e
|
Re-use the generator CSharpTypePrinter instance in CSharpTextTemplate.
|
13 years ago |
triton
|
b68fe99754
|
Moved the user passes to run before some built-in classes so that declarations added by the passes can still be verified and processed.
|
13 years ago |
triton
|
c83a87dbd4
|
Moved ignored declaration and type checking code from ResolveIncompleteDeclsPass to its own pass.
|
13 years ago |
triton
|
fae4ae8be2
|
Made the check for ignored declarations more robust.
|
13 years ago |
triton
|
e57c435426
|
Fixed some incorrect behavior with nested types in the CheckAmbiguousOverloads pass by fixing GetFunctionOverloads to be dynamically dispatched instead of using some weird manual type checking.
|
13 years ago |
triton
|
5037e8b6b0
|
Unify handling of pointers to primitive types.
|
13 years ago |
triton
|
3a22b39ec0
|
Re-work the marshaler to make sure we visit the canonical Type and Decl overloads and do proper type map handling.
|
13 years ago |
triton
|
9cf717707b
|
Ignore a couple more unused declarations.
|
13 years ago |
triton
|
cc892a6f19
|
Use the field's class as the field namespace.
|
13 years ago |
triton
|
78b3732b19
|
Unify the handling of comments in WalkDeclaration.
|
13 years ago |
triton
|
b43887ed90
|
Remove unused namespace variable.
|
13 years ago |
triton
|
c984806f5c
|
Remove the unused TypeLoc parameter from WalkDeclaration.
|
13 years ago |
triton
|
ba8081b0ba
|
Remove some old debug output.
|
13 years ago |
triton
|
7377565118
|
Since we now process records fully, we also get some undesired declarations that are created automatically by Clang. Long story short, in this case we do not want to process injected class names inside the record since that will lead us to process records twice and insert them in different namespaces.
|
13 years ago |
triton
|
e07e529f2a
|
Re-work the way we handle records in the parser to actually go through all declarations instead of just a subset of them. This makes sure we handle nested definitions properly.
|
13 years ago |
triton
|
55c0b94e78
|
Remove obsolete checks for isAnonymousStructOrUnion and hasFlexibleArrayMember.
|
13 years ago |
triton
|
2fb1952c05
|
Remove HasClassDependentFields and IsDependent parameter from WalkRecordCXX and just query Clang directly if the type is dependent.
|
13 years ago |
triton
|
5e475658a8
|
Completely re-work the way we handle namespaces/declaration contexts in the native parser to properly handle nested definitions.
|
13 years ago |
triton
|
392843cf9b
|
Instead of failing to generate methods with not found symbols, use a fallback "SymbolNotFound" symbol which at least makes the generated wrappers compile.
|
13 years ago |
triton
|
3da1199e3d
|
Fixed generation of static methods by processing it right in the parser and generator.
|
13 years ago |
triton
|
ffb1725538
|
Use a fully-qualified name when generating class bases to fix name conflicts.
|
13 years ago |
triton
|
6c2e73372e
|
Process classes as declaration contexts too making sure we generate nested declarations like typedefs, enums and classes.
|
13 years ago |
triton
|
74404222c2
|
Unify the namespace and declaration context handling.
|
13 years ago |
triton
|
e57e22e3b8
|
Wrap the Instance identifier name into its own property and change the code to use it.
|
13 years ago |
triton
|
69cd09188f
|
Implement type printing for template parameter substitution types.
|
13 years ago |
triton
|
29baef2f82
|
Wrap pointer to primitives as IntPtr regardless of the type.
|
13 years ago |
triton
|
4025689211
|
Use GetNestedQualifiedName to properly deal with nested declaration type names.
|
13 years ago |
triton
|
afe90def84
|
Remove useless out variables null initialization.
|
13 years ago |
triton
|
1fd524e664
|
Remove unused using.
|
13 years ago |
triton
|
96674f2cc4
|
When checking for ignored declarations: check the complete version of the declaration if there is one, use the type map if one is found, or ignore the declaration if it is not generated.
|
13 years ago |
triton
|
8d281303b3
|
Fixed the IsGenerated and IsProcessed flags on declarations to actually do the correct thing instead of doing the opposite of what they should.
|
13 years ago |
triton
|
c063ca4ef7
|
Added very basic support for dependent array types.
|
13 years ago |
triton
|
e0a6181287
|
Make sure we skip ignored overloads when checking for ambiguous overloads.
|
13 years ago |
triton
|
31ce147308
|
Added a targets parameter to RemovePrefix to be able to only remove prefixes for some kinds of declarations.
|
13 years ago |
triton
|
41e21fc3ab
|
Since TranslationUnit is just a regular DeclarationContext we can now use VisitDeclarationContext instead of replicating the walking logic. This also makes sure we walk through every declaration, which we did not do before.
|
13 years ago |
triton
|
d3d7e1f2d6
|
Use the regular templates since classes are now regular declaration contexts and they do not have a separate container for FunctionTemplates.
|
13 years ago |
triton
|
4c45531cc0
|
Use the new keyword to tell the compiler we are hiding the GetFunctionOverloads overload.
|
13 years ago |
triton
|
4ffa945ce9
|
Added ASTVisitor option to not visit template specialization arguments.
|
13 years ago |
triton
|
9411268e0c
|
Added ASTVisitor option to not visit function parameters.
|
13 years ago |
triton
|
e1ac13601c
|
Added a new abstract class DeclarationContext that acts as a container for declarations and make Class and Namespace inherit from it.
|
13 years ago |
triton
|
c66d14d150
|
ASTVisitor type visitors now try to visit a common VisitType first.
|
13 years ago |
triton
|
80dd6b75c1
|
Fix whitespace inconsistency by needing a newline when generating functions.
|
13 years ago |
triton
|
0f223f2852
|
Convert the GetFunctionOverloads return to a list to use IndexOf.
|
13 years ago |