triton
2c624acb06
Fixed preprocessed declaration parsing for translation units in the new parser.
...
Fixes the failing TestPasses.TestCleanEnumItemNames test.
12 years ago
triton
b89daa1d0a
Fixed parser warning in WalkTemplateSpecializationKind.
12 years ago
triton
45b110e739
Added arguments options support to pass custom Clang options to the parser.
12 years ago
triton
5677c5aa9d
Remove hardcoded "-Wno-undefined-inline" option from the parsers.
12 years ago
triton
cb62d64d5e
Fixed the parser, it got broken in a recent pull request merge.
12 years ago
triton
82d6d609b4
Fixed parsing of preprocessed entities for parameter declarations.
...
Clang reports a wrong source range for function parameters and since we already process them specially we should not process them in HandleDeclaration too, else we get duplicated entities.
12 years ago
triton
ae52dd8963
Fixed parsing of preprocessed entities for implicit declarations.
12 years ago
Øystein Krog
e9f43c059e
Modify parser to set the Namespace in MacroDefinition
12 years ago
triton
df88729095
Updated to the latest LLVM/Clang revisions.
12 years ago
Joao Matos
19376cc2c3
Added support for keeping track of extern "C" contexts in classes/structs.
12 years ago
Joao Matos
4f2135eddf
Use the most recent (re)declaration when setting the MS inheritance model.
12 years ago
Joao Matos
9e14383e10
Fixed parser to work with recent Clang changes.
...
Basically we need to lock in the MS inheritance model in a record when it appears as part of a member pointer type else we get some fun Clang code gen internals assert.
12 years ago
Joao Matos
88e5d1cf3d
Updated the parsers to the latest Clang API changes.
12 years ago
triton
8c0adad5f1
Fixed parsing bug and subsequent failing test in GenerateEnumFromMacros.
...
It now uses preprocessed entities instead of the soon-to-be-removed macros.
12 years ago
triton
a112faef52
Fixed memory corruption bug by explicitly initializing the pointer to null.
12 years ago
triton
e9fd50983a
Reworked parsing of preprocessed entities.
...
Fixes macro expansions and translation units processing.
12 years ago
Øystein Krog
c71b29aeb9
Update to latest LLVM
12 years ago
Michael Ciccotti
a15b40733b
Update to latest llvm/clang
12 years ago
triton
391fe9d800
Fixed function type parameters parsing in the the new parser.
12 years ago
triton
5ce7213784
Added partial support for template specializations to the new parser.
12 years ago
triton
74368b2c3d
Fixed the parser to always fill the original pointer value in 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
786ea61a7b
Fixed the C++ parser to properly parser libraries.
12 years ago
triton
a40c043d19
Updated the C++ parsers to the latest Clang.
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
340b24b7f7
Fixed parsing of comments for enum declarations.
12 years ago
triton
6bd549c27d
GCC compilation fixes.
12 years ago
triton
677ca81154
Fixed regression in parsing of preprocessed entities.
...
Specifically we now store the pointer of the original declaration and check for duplicates.
12 years ago
triton
7b30906cd6
Added more robust parsing for type locs when parsing functions.
...
(last commit test should also trigger this)
12 years ago
triton
6402c3ca55
Added support for C++ attributed types to the parser, AST ,generators and tests.
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
734e03f134
Normalized class / function template parsing between parsers.
12 years ago
triton
e059f5e099
Fixed parsing of enum items to use normal declaration comments.
12 years ago
triton
efc95d35aa
Fixed dependent information parsing for declaration contexts.
12 years ago
triton
55efc0c862
Updated declarations parsing in both parsers to use common declaration handling code.
12 years ago
triton
6a119e4849
Added assertion for the ASTContext in the parser.
12 years ago
triton
6b6d18e5a6
Fixed bug caused by typo in the new parser.
12 years ago
triton
42cca516b3
Added better parsing of C++ conversion operators.
12 years ago
triton
4a29db6bcd
Revert "Fixed bug caused by a type in the new parser."
...
This reverts commit f1f6c2e5e9 .
12 years ago
triton
c5f43c8d06
Updated to the latest LLVM/Clang revisions.
12 years ago
triton
f1f6c2e5e9
Fixed bug caused by a type in the new parser.
12 years ago
triton
6b9012b634
Ignore C++ using directives in the parser.
12 years ago
triton
9bb39e92eb
Fixed a tricky bug that was breaking generation of vtables interop code.
...
The generation problem manifested as duplication of methods in the AST which was breaking the numbering logic and caused duplicated delegates.
The root problem was that in the parser we sometimes would walk through methods but forget to add them to their respective classes.
No test because it's tricky to trigger it.
12 years ago
Stephen Kennedy
9cfc8c23dc
Handle partial specializations like normal specializations (not at all!)
12 years ago
triton
2cc3e1cfa7
Updated to latest LLVM/Clang revisions.
12 years ago