triton
678639acdc
Explicitly define ASTContext else the declaration will not export symbols.
12 years ago
triton
6f0b2f729e
Improved the comments parsing in the new parser with support for raw and full comments.
12 years ago
triton
ee3fbd8e03
Added support for anonymous C++11 inline namespaces to the AST and parsers.
12 years ago
triton
83be8a7153
Initialized some previously uninitialized memory fields on the parser.
12 years ago
triton
2248b565d3
Cleaned up AST.h.
...
* Added some regions make the code easier to work with.
* Moved related things together.
12 years ago
triton
28a7647ceb
Remove extra access field that conflicts with the one defined in its hierarchy.
12 years ago
Dimitar Dobrev
2605ac680d
Added stubbed support for pack expansions to the new parser as well.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
0e905dbd36
Clean up the file path when finding translation units since they might differ between calls.
12 years ago
Joao Matos
69dcac2903
Ignore some unused methods in the parser bindings.
12 years ago
Joao Matos
19376cc2c3
Added support for keeping track of extern "C" contexts in classes/structs.
12 years ago
triton
1afaad6847
Added missing definitions for the AST structures in the C++ parser.
12 years ago
triton
b11644de19
Converted the rest of the inline declarations to be defined outside the header.
12 years ago
triton
6edd10b514
Move CppParser method definitions out of the headers and into the source file.
...
This is a workaround for missing symbols when P/Invoking on the Mac for instance. There should be a working "-fkeep-inline-functions" switch available in Clang but upon reading the source code, it does not do anything besides consuming the option (not even a warning!).
12 years ago
triton
f931488f7e
Delete unused #ifdef directive.
12 years ago
triton
5b3d01af73
Fixes to the native AST declarations.
12 years ago
triton
afd626b93f
Added explicit kinds to declarations and kinds in the new parser.
...
This is needed for runtime polymorphism when converting the AST generated by the new parser.
12 years ago
triton
0954ad0c7e
Fixed destructors by keeping track when they are non-trivial.
12 years ago
triton
b23c1f97f2
Fixed binding problem with string vector in NativeLibrary.
...
Re-generated the bindings.
12 years ago
triton
64e75fb0a6
Reworked the C++ parser structures to use some helper macros to ease the bindings.
12 years ago
triton
a754b46438
Reworked function template parsing.
...
The previous version did not handle methods properly and lead to duplicate definitions since it did not check for existing templates with the same signature.
12 years ago
triton
6402c3ca55
Added support for C++ attributed types to the parser, AST ,generators and tests.
12 years ago
triton
a0c366df2b
Removed the arguments vector from FunctionType since we use parameters now.
12 years ago
triton
04a5956dd3
Updated the C++ parser to the latest template fixes.
12 years ago
Dimitar Dobrev
df99550a39
Fixed the parsing of function prototypes in cases where the Clang type locator is not available.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
f6e0453744
Revert "Fixed function types to provide qualified argument types in the AST."
...
This reverts commit 70122b0568 .
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
70122b0568
Fixed function types to provide qualified argument types in the AST.
...
We just parsed the function type "parameters" which does not even make sense from a type system point of view but it's useful in some instances in the generator when function types are "mappable" to function declarations.
12 years ago
triton
4d91312e87
Reworked type parsing with dependent information.
12 years ago
triton
05877ddcb5
Converted enum items to be declarations in the AST.
12 years ago
triton
b3bc8706a0
Changed CppParser to use macros to define the containers.
...
This way we can also define some helper methods to consume these from C#.
12 years ago
triton
42cca516b3
Added better parsing of C++ conversion operators.
12 years ago
triton
162ff9f14a
Added missing Declaration default constructor declaration.
12 years ago
triton
edc833e69f
Updated the C++ parser AST to the ASTContext class.
12 years ago
triton
b3f41256e3
Moved the native AST declarations to their own namespace.
12 years ago
triton
4e1d34b98b
Use fully qualified names in AST headers.
12 years ago
triton
1ecd2e138d
Updated CppParser to the latest Parser changes.
12 years ago
triton
bc33de5ddd
Added parser support for deleted functions.
12 years ago
triton
62839a3f0a
Added the new C++/CLI free parser.
...
I benchmarked it and it's about the same speed in Release mode (maybe a bit faster) but 3x slower in VS Debug mode due to all the STL usage.
12 years ago