marcos henrich
20b9f5df52
Replaced some IsGenerated by IsInternal.
11 years ago
João Matos
e95863c2ae
Merge pull request #241 from esdrubal/TryGetClass
...
Separated IsTagDecl into TryGetClass and TryGetEnum, added IsClass() and...
11 years ago
João Matos
02081e5952
Merge pull request #239 from vovkasm/fix_crash_with_va_list_tag
...
Fix crash with parsing stdarg.h (or around this on Mac).
11 years ago
marcos henrich
de764599fa
Separated IsTagDecl into TryGetClass and TryGetEnum, added IsClass() and IsEnum().
11 years ago
Vladimir Timofeev
1a458765ac
Fix crash with parsing stdarg.h (or around this on Mac). Simple skip fake va_list_tag_name declaration as in clang repo in lib/Sema/SemaLookup.cpp
11 years ago
Elias Holzer
bd0ec409e9
Fixed adding of enum items in ASTConverter.
11 years ago
Elias Holzer
d1a3141f5b
The unique name set by the CleanInvalidDeclNames pass will now truly be unique across translation units.
11 years ago
Elias Holzer
6fa7077dbd
Moved unnamed enums test to generator tests.
11 years ago
Elias Holzer
24cd3840b5
Added support for unnamed enums to new parser.
11 years ago
Elias Holzer
502b9e1637
Added test case for unnamed enums - should pass with old parser, but fail with new one.
11 years ago
Elias Holzer
23a0fc2339
Fixed a null pointer exception when parsing files with unnamed enums.
11 years ago
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
Elias Holzer
b83b5029b0
Added extension method SetPropertyAsReadOnly to ASTContext.
...
The Property.HasGetter and HasSetter method will take the GenerationKind flag of the field/method pair into account.
11 years ago
Elias Holzer
f9ef513d5f
Removed obsolete code.
11 years ago
Elias Holzer
755861492a
Fixed the getter/setter to property passes to not include synthesized methods.
11 years ago
Elias Holzer
0c260bd223
Improved support for indexed properties.
...
More types and types with different qualifiers are supported now - in both backends. See test cases for details.
11 years ago
Elias Holzer
7478c5329e
Cleaned up tests regarding indexed properties.
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