Elias Holzer
1782715f93
Increased the initial capacity of the used SmallString when generating a USR.
11 years ago
Elias Holzer
e29e7eac7e
Removed redundant code.
11 years ago
Elias Holzer
3c914a0907
Applied "Improved template parsing error handling" to old parser.
11 years ago
Elias Holzer
933df5e65a
Improved support in parser for template classes and functions.
...
* Use clangIndex to identify declarations across translation units.
* Added new Find*ByUSR methods and removed unused Find*(IntPtr) methods.
* Added Depth/Index and IsParameterPack fields to TemplateParameterType.
* Fixed member initialization issues in C++ Method class.
* Added AST tests for function and class templates.
* All tests pass with new and old parser.
11 years ago
Elias Holzer
d3fb9289cf
Synced new and old parser.
...
* Implemented missing parts in regards to class templates.
* Fixed couple of class member initialization issues in C++ AST classes.
* Make code more look alike so it's easier to compare them.
* All tests pass now with old and new parser. Especially the nasty STL one with the ostream typedef.
11 years ago
Elias Holzer
3f813bc3ee
Fixed line endings.
11 years ago
triton
6edcb8dd44
Added support for decltype types.
11 years ago
Elias Holzer
23a0fc2339
Fixed a null pointer exception when parsing files with unnamed enums.
11 years ago
Elias Holzer
521845be81
Fixed parser to include enumerations which don't have an identifier set.
11 years ago
triton
dc6d975487
Ignore TypeAliasTemplate declarations to get rid of some parser warnings.
11 years ago
triton
8184de63dc
Added SetupLLVMIncludes in build files.
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
Vladimir Timofeev
8d9f581a33
Consolidate LLVM linking
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
Elias Holzer
2fac4d47b8
Introduced new property Method.IsExplicit in AST.
11 years ago
marcos henrich
a27fbd4286
Changed parser to when processing macro expansions of a translation unit declaration to add the macro expansion to header it is on instead of the translation unit top header.
11 years ago
triton
ee3fbd8e03
Added support for anonymous C++11 inline namespaces to the AST and parsers.
11 years ago
triton
fb70229e26
Updated to a recent LLVM and Clang revision.
11 years ago
triton
b6d4a246bd
Normalize line endings.
12 years ago
Øystein Krog
a268eb1875
Add new GetTargetInfo() method in parsers, that exposes information about type sizes and alignment.
12 years ago
Dimitar Dobrev
99849da1d1
Added preliminary support for char16 to avoid crashes because of null parameter types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
66363787b4
Stubbed support for pack expansions to avoid crashes in certain cases such as variadic templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
b89daa1d0a
Fixed parser warning in WalkTemplateSpecializationKind.
12 years ago
Øystein Krog
d6eaa6a7fd
Reorder code a bit such that new/old parser has same method order, easier to diff/compare.
12 years ago
triton
881cd21efa
Whitespace cleanup.
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
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
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
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.
12 years ago
Øystein Krog
5c4cf56af0
Fix Visual Studio lookup logic to handle Visual Studio 2012 and 2013 (11.0 and 12.0) environment variables
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
74368b2c3d
Fixed the parser to always fill the original pointer value in declarations.
12 years ago
triton
0954ad0c7e
Fixed destructors by keeping track when they are non-trivial.
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
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
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