Dimitar Dobrev
4f574845fa
Made interface impls contain the interface as their original name-space.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
563ef56af5
Minor code beauty fixes.
10 years ago
Dimitar Dobrev
b09d5a897e
Optimised the pass for fixing invalid names by skipping already visited decarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
062f8e26e0
Revert "Revert "Included ignored fields in the wrappers for better marshalling.""
...
This reverts commit 27d3f21a75
.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
83a556aa35
Made the method for constructing qualified names of declarations public.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
27d3f21a75
Revert "Included ignored fields in the wrappers for better marshalling."
...
This reverts commit 65cac93259
.
Conflicts:
src/Generator/Generators/CSharp/CSharpTextTemplate.cs
tests/Basic/Basic.h
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
f0d237d9c2
Added a new property for the line number of the end of a declaration.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Chris Spencer
0c535d361b
Generate delegates for non-typedef'd function pointers to prevent runtime exceptions during marshalling.
10 years ago
Dimitar Dobrev
49d3c85b7c
Copied the signature and the line number when cloning functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
3b4fce6f33
Added a property for the line at which a declaration is located in its header.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
ac7176f1b7
Added parsing and AST support for C++ friend declarations.
11 years ago
Dimitar Dobrev
e6223a1c4c
Fixed 4 bugs related to custom comparison operators.
...
1. Missing Equals to complement operator ==;
2. Endless recursion when having a == and comparing to null;
3. Crash when having a == and comparing a null pointer to sth else;
4. Incompilable code with a type derived from a struct with operators.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
65cac93259
Included ignored fields in the wrappers for better marshalling.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Tom Spilman
6b791ed752
Fixed comment.
11 years ago
Tom Spilman
17506c57d1
Added Declaration.IsExplicitlyGenerated.
11 years ago
triton
43dc88b5de
Added support for representing and parsing source locations.
11 years ago
Elias Holzer
933df5e65a
Improved support in parser for template classes and functions.
...
* Use clangIndex to identify declarations across translation units.
* Added new Find*ByUSR methods and removed unused Find*(IntPtr) methods.
* Added Depth/Index and IsParameterPack fields to TemplateParameterType.
* Fixed member initialization issues in C++ Method class.
* Added AST tests for function and class templates.
* All tests pass with new and old parser.
11 years ago
marcos henrich
3e3e605a26
Declaration.IsInternal is no longer true when Declaration.GenerationKind is Generate.
11 years ago
marcos henrich
7125109e3f
Deprecated ExplicityIgnored use ExplicitlyIgnore(). Getting ExplicityIgnored and setting ExplicityIgnored to false don't make much sense anymore.
...
Conflicts:
src/Generator/Passes/CheckOperatorsOverloads.cs
11 years ago
marcos henrich
3f96bdbfe3
Replaced declaration IgnoreFlags by GenerationKind. Added methods IsInternal and IsDeclared to declaration. Replaced IsGenerated = true by GeneratioKind = GeneratioKind.Internal. Deprecated Ignore, replace Ignore set by ExplicityIgnored, replace Ignore get by IsGenerated, IsInternal or IsDeclared.
...
Conflicts:
src/Generator/Passes/CheckOperatorsOverloads.cs
11 years ago
triton
440632896f
Added support for logical names to the declarations.
...
While at it, I also refactored the logic of Qualified name properties. Now instead of recursion it will gather all the used namespaces and filter them.
11 years ago
triton
76cf4e68d8
Simplify declaration ignores by removing IsProcessed and fixing ExplicitlyIgnored to be recursive like the others ignore properties.
12 years ago
triton
c979342ea6
Moved the TranslationUnit property from DeclarationContext to Declaration.
12 years ago
Dimitar Dobrev
6dcb8fa593
Added the option to have attributes generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
4a29db6bcd
Revert "Fixed bug caused by a type in the new parser."
...
This reverts commit f1f6c2e5e9
.
12 years ago
triton
f1f6c2e5e9
Fixed bug caused by a type in the new parser.
12 years ago
João Matos
7599ebd555
Changed the declaration default access specifier to be public.
...
This fixes some problems with CheckIgnoredDeclsPass that ignores declarations that are not public, which .
12 years ago
Dimitar Dobrev
1a293f8965
Added copy constructors to some of the AST classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
bb07a294f4
Ignored private types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
2b3a8f79e4
Fixed the documentation comments support in the generators to use the new comment APIs.
12 years ago
triton
751e0da4e3
Keep the original pointer that originated the AST declaration node and check if we have already processed the method in WalkMethodCXX (if so, just return the already existing declaration).
...
We depend on this to get the right method instance when walking through the vtable methods.
12 years ago
marcos henrich
fcb93169a2
Added OriginalNamespace to Declaration and now QualifiedOriginalName uses it.
12 years ago
triton
a6fa8af39d
Added full support for C++ documentation comments to the AST and parser.
12 years ago
marcos henrich
8e34a026b9
Changed property Declaration.Name to virtual. Now ClassTemplate shares Name with its TemplatedClass.
12 years ago
triton
68ddfbdd6f
Move the AST project to the CppSharp.AST namespace.
12 years ago
triton
c488dcbfde
Prefix all the libraries and project names with CppSharp.
12 years ago
triton
5d337b03c0
Fixed the IsProcessed property to deal more robustly with declarations that are missing namespaces.
12 years ago
triton
fae4ae8be2
Made the check for ignored declarations more robust.
12 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.
12 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.
12 years ago
triton
cfc4783420
Added an IMangledDecl interface to mangle-able declarations.
12 years ago
triton
d5bf0460c4
Keep track of dependent declarations and ignore them.
12 years ago
triton
9a2a0a5a5c
Added better support for properties.
12 years ago
triton
c93dabe0c2
Improved the support for preprocessed entities.
12 years ago
triton
cc8f7cd1db
Renamed Cxxi references to CppSharp.
12 years ago
triton
9f029047ad
Added parsing, AST and visitor stubs support for (class static) variables.
12 years ago
triton
bff470cba4
Added a property to get the qualified name of a declaration.
12 years ago
triton
cdc9c0be7d
Fixed the QualifiedOriginalName to actually use the original name of the namespace.
12 years ago
triton
d9801eb00b
Added an INamedDecl interface for named declarations.
12 years ago
triton
abcdd4361d
Added a way to exclude certain passes from being run over declarations.
12 years ago