Elias Holzer
c2bfdcc1a6
Helper method FindEnumWithItem will look into namespaces and classes too now.
11 years ago
Elias Holzer
521845be81
Fixed parser to include enumerations which don't have an identifier set.
11 years ago
triton
44172d2239
Do not check for duplicates when handling preprocessed entities.
...
Even though they share the same original ptr to clang's PreprocessedEntity, they can still have different locations so we need to duplicate them when converting the AST.
11 years ago
triton
55f4b849c7
Explicitly construct the parser and keep it in ParserResult.
...
This fixes some non-deterministic behavior in the new parser but it means we are keeping around all the memory for parsing until the end of the process. This is a bit messy right now but at least we keep the API compatible between parsers. After all the new parser bugs are squashed, this will be reworked.
11 years ago
triton
5a449eaafb
Removed duplicate preprocessed entity add in the new parser.
11 years ago
triton
8eece168db
Added some better logging for macro ignored declarations.
11 years ago
triton
dc6d975487
Ignore TypeAliasTemplate declarations to get rid of some parser warnings.
11 years ago
triton
5c3ffc0e24
Fixed EnumModifiers to define proper power of two values.
11 years ago
triton
8184de63dc
Added SetupLLVMIncludes in build files.
11 years ago
triton
acef972a55
Added support for a "dry run" option that does not write anything to disk.
11 years ago
triton
012efc0948
Minor formatting fixes.
11 years ago
triton
8dbc5b96b8
Remove outdated documentation.
11 years ago
triton
06178f8499
Re-generated the OSX parser bindings.
11 years ago
João Matos
d79d5e7a2d
Merge pull request #237 from azeno/minor-improvements
...
Minor improvements
11 years ago
Elias Holzer
6145bf600b
Do not generate the destructor/finalizer pair if the destructor of the native class is protected.
...
Had to fix line endings (LF) in the CLI* files.
11 years ago
Elias Holzer
b432daab9b
Added missing Visit override to Method class.
11 years ago
Elias Holzer
61a5ceb5c3
Added copy constructors to Class, Parameter and DeclarationContext.
11 years ago
Elias Holzer
c670148493
The FindTypedef method supports full type names now.
11 years ago
Elias Holzer
487189ebad
Fixed the FindOperator method for classes.
...
Added AST test case and fixed line endings (LF).
11 years ago
Elias Holzer
749e5a399e
Added new property Parameter.Index.
...
Also added test which checks whether both parsers assign the AST parameter properties properly.
11 years ago
João Matos
20bd612ced
Merge pull request #236 from azeno/stl-typemaps
...
STL type maps
11 years ago
João Matos
f95e0197e1
Merge pull request #235 from vovkasm/fix_linking_with_clang_libs
...
Add libLLVMProfileData.a to list of libs for linking.
11 years ago
Elias Holzer
a72c43fd2f
Added marshaling code for std::ostream using a System.TextWriter to CLI backend.
11 years ago
Elias Holzer
911ce43e07
Use List<IntPtr> when mapping a std::vector<T*> where T is a primitive type.
...
Pointers are not allowed in generic arguments.
11 years ago
Vladimir Timofeev
cac09f703d
Link with LLVMProfileData only if it exists in libdirs.
...
This library exists only in recent llvm, so adding it to link, breaks windows builds...
Premake do not allow this, so implement StaticLinksOpt in Helpers.lua
11 years ago
Vladimir Timofeev
8d9f581a33
Consolidate LLVM linking
11 years ago
Vladimir Timofeev
6573e1d6b2
Merge remote-tracking branch 'origin/HEAD' into fix_linking_with_clang_libs
...
* origin/HEAD:
Fixed the duplicated names pass check for conversion operators.
Fix osx detection, we do not parse result of os.getversion() in premake (seems it return something strange). Instead use internal os detection in premake.
11 years ago
Elias Holzer
f88d59d9cf
Fixed the duplicated names pass check for conversion operators.
11 years ago
João Matos
c11be1e0f0
Merge pull request #234 from vovkasm/fix_osx_detection
...
Fix osx detection, we do not parse result of os.getversion() in premake ...
11 years ago
Vladimir Timofeev
cfc0eef43a
Add libLLVMProfileData.a to list of libs for linking. This fix compilation for me with fresh checkout of llvm and clang.
11 years ago
Vladimir Timofeev
2db8884c27
Fix osx detection, we do not parse result of os.getversion() in premake (seems it return something strange). Instead use internal os detection in premake.
11 years ago
triton
ac778cd593
Fixed whitespace in new test in TestDelegates.
11 years ago
triton
e85d8cd7eb
Fixed CDECL to actually attribute as `cdecl` and not `stdcall`.
11 years ago
Elias Holzer
cc3cc40fc4
When generating delegates attributed types need to be taken into account or proper calling convention won't get picked up.
11 years ago
Elias Holzer
2736088957
CSharp and CLI backend use same function to convert the calling convention.
11 years ago
Elias Holzer
dcbf34b8e2
Add special marshaling attribute to delegate declaration if calling convention differs.
11 years ago
triton
f5e66ba439
Added IsExplicit support to ASTConverter.
11 years ago
triton
baa08c8e8c
Re-generated the parser bindings with IsExplicit.
11 years ago
Elias Holzer
a0ee284d00
Removed the const restriction in the constructor to conversion operator pass.
11 years ago
Elias Holzer
fe6ac28c60
Constructor to conversion operator pass makes use of newly introduced Method.IsExplicit property.
11 years ago
Elias Holzer
2fac4d47b8
Introduced new property Method.IsExplicit in AST.
11 years ago
Elias Holzer
474f82b513
Added support for explicit conversion operators and added new pass which will create implicit and explicit conversion operators out of single argument constructors.
...
Conflicts:
src/Generator/Passes/CheckAmbiguousFunctions.cs
src/Generator/Passes/CheckOperatorsOverloads.cs
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
df7319d8bc
External declarations are now only marked as such when being generated.
11 years ago
marcos henrich
2a162489c2
TypeIgnoreChecker now ignores declarations when GenerationKind == GenerationKind.None.
11 years ago
marcos henrich
94eda74596
Removed non generated headers from includes collected.
11 years ago
marcos henrich
0416a35e8d
Added CheckIgnoreProperty to AST/Utils.cs. Changed CheckIgnoreField to handle value class fields declared in linked assemblies.
11 years ago
marcos henrich
d63ef03200
Changed Driver.Diagnostics setter to public. Replaced TextDiagnosticPrinter Verbose field by Level.
11 years ago
marcos henrich
951ba999b4
Added to macro pass CS_CONSTRAINT which can be use to constraint generic arguments.
11 years ago
marcos henrich
9af08fd551
Changed property fields generation kind to internal.
11 years ago