triton
b89daa1d0a
Fixed parser warning in WalkTemplateSpecializationKind.
13 years ago
Øystein Krog
d6eaa6a7fd
Reorder code a bit such that new/old parser has same method order, easier to diff/compare.
13 years ago
triton
881cd21efa
Whitespace cleanup.
13 years ago
triton
45b110e739
Added arguments options support to pass custom Clang options to the parser.
13 years ago
triton
5677c5aa9d
Remove hardcoded "-Wno-undefined-inline" option from the parsers.
13 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.
13 years ago
triton
ae52dd8963
Fixed parsing of preprocessed entities for implicit declarations.
13 years ago
Øystein Krog
e9f43c059e
Modify parser to set the Namespace in MacroDefinition
13 years ago
triton
df88729095
Updated to the latest LLVM/Clang revisions.
13 years ago
Joao Matos
19376cc2c3
Added support for keeping track of extern "C" contexts in classes/structs.
13 years ago
Joao Matos
4f2135eddf
Use the most recent (re)declaration when setting the MS inheritance model.
13 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.
13 years ago
Joao Matos
88e5d1cf3d
Updated the parsers to the latest Clang API changes.
13 years ago
triton
a112faef52
Fixed memory corruption bug by explicitly initializing the pointer to null.
13 years ago
triton
e9fd50983a
Reworked parsing of preprocessed entities.
...
Fixes macro expansions and translation units processing.
13 years ago
triton
59703cc08b
Removed early out in VS lookup code that made us prefer the first version found.
...
This was added to workaround VS 2013 type traits parsing problems, but since that's been fixed upstream this no longer makes sense.
Fixes PR159.
13 years ago
Øystein Krog
5c4cf56af0
Fix Visual Studio lookup logic to handle Visual Studio 2012 and 2013 (11.0 and 12.0) environment variables
13 years ago
Øystein Krog
c71b29aeb9
Update to latest LLVM
13 years ago
Michael Ciccotti
a15b40733b
Update to latest llvm/clang
13 years ago
triton
74368b2c3d
Fixed the parser to always fill the original pointer value in declarations.
13 years ago
triton
0954ad0c7e
Fixed destructors by keeping track when they are non-trivial.
13 years ago
triton
a40c043d19
Updated the C++ parsers to the latest Clang.
13 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.
13 years ago
triton
340b24b7f7
Fixed parsing of comments for enum declarations.
13 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.
13 years ago
triton
7b30906cd6
Added more robust parsing for type locs when parsing functions.
...
(last commit test should also trigger this)
13 years ago
triton
6402c3ca55
Added support for C++ attributed types to the parser, AST ,generators and tests.
13 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>
13 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>
13 years ago
triton
c8b0f515b3
Fixed parsing and marshaling of dependent declarations.
13 years ago
Dimitar Dobrev
3f6b1d33f8
Added names to all parameters in the header for the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 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.
13 years ago
triton
4d91312e87
Reworked type parsing with dependent information.
13 years ago
Dimitar Dobrev
a51983735f
Extended the look-up for Visual Studio to include VS 2013.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
triton
efc95d35aa
Fixed dependent information parsing for declaration contexts.
13 years ago
triton
55efc0c862
Updated declarations parsing in both parsers to use common declaration handling code.
13 years ago
triton
6b6ae7ba6c
Remove SymbolsContext from the options.
13 years ago
triton
e984fb7305
Removed unused SymbolsContext from parser.
13 years ago
triton
45b70f72b1
Fixed name parsing of class template specializations.
13 years ago
triton
6e03c27135
Fixed the build.
13 years ago
triton
6a119e4849
Added assertion for the ASTContext in the parser.
13 years ago
triton
a9f9a5e821
Fixed library parsing.
13 years ago
triton
eedb40f18f
Fixed namespace parsing of template declarations.
13 years ago
triton
f1755f6d46
Reworked template parsing with support for specializations and partial specializations.
...
Fixes #121 .
13 years ago
triton
42cca516b3
Added better parsing of C++ conversion operators.
13 years ago
triton
4a29db6bcd
Revert "Fixed bug caused by a type in the new parser."
...
This reverts commit f1f6c2e5e9 .
13 years ago
triton
c5f43c8d06
Updated to the latest LLVM/Clang revisions.
13 years ago
triton
f1f6c2e5e9
Fixed bug caused by a type in the new parser.
13 years ago
triton
6b9012b634
Ignore C++ using directives in the parser.
13 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.
13 years ago