Jelle
9d1c484815
Feat/code formatting ( #1912 )
...
* Add resharper workspace shared settings
* Add formatting settings
- Added `RunClangFormat` shell script
- Added workflow to check if formatting was applied to PR's
* Remove include sorting
* Convert to shell script
* Fix failing tests
* Format all c++ files
* Create .git-blame-ignore-revs
* Update clang-format-check.yml
* Update namespace formatting to inner
4 months ago
deadlocklogic
9071cd2a59
Implement ClassTemplatePartialSpecialization::Parameters ( #1809 )
...
* Implement ClassTemplatePartialSpecialization::Parameters
* Template.cs: Implement ClassTemplatePartialSpecialization.Parameters
* GeneratorKind: fix bug introduced while migrating from enum to class
* Implement native ClassTemplatePartialSpecialization.Parameters + ASTConverter
* regenerated bindings (#1813 )
* regenerated bindings
* regenerated bindings after rebase
* Directory.Build.props: support C# 10.0
* Implement native ClassTemplatePartialSpecialization.Parameters + ASTConverter
* Regenerated bindings
* TestAST.cs: add TestASTClassTemplatePartialSpecialization
2 years ago
Joao Matos
17102021cc
Add Method.IsVolatile property.
...
Fixes https://github.com/mono/CppSharp/issues/1761
2 years ago
João Matos
4417dd987a
Code cleanups and improvements ( #1713 )
...
* Code cleanups.
* Run GetterSetterToPropertyPass for more generators.
* Fixed compile warning when compiling parser bindings.
* Cleanup driver code.
* Remove dead 32-bit code.
* Reduce verbosity when Options.Quiet is set.
* Remove test compile-time warnings.
* Move .NET tests to tests/dotnet.
* Remove unused AST viewer code and premake-qt submodule.
* Move tests2/ contents to tests/.
2 years ago
Dimitar Dobrev
8451cefc98
Change XML comments to be tested at run-time
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
cf29d26b8e
Revert "Add information about linkage to the AST"
...
This reverts commit e061edde76
.
We don't need it after all so let's keep the AST as simple as possible.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
e061edde76
Add information about linkage to the AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
6a007e6d60
Implement basic support for parsing function-like macros.
5 years ago
Dimitar Dobrev
7fc681a41d
Ensure complete template specializations in AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
c21ddcca1e
Implement parsing and AST processing of C++ deprecated attributes.
5 years ago
Dimitar Dobrev
c80986e04e
Always keep default constructors in the AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
40cd49ac37
Keep copy/move constructors and assignment in AST
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
4a4c919fb3
Extend printing and reading of exception types
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
291da4ece3
ed time and memory during generation by skipping methods of most STD classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
8958217314
Sped the test run up by moving the test for ignored system types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
0c78ba29f7
Fixed a crash when a comment contains regular text wrapped in <>.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
37bb60b3da
Rework handling of native record creation and add some tests.
8 years ago
Joao Matos
231e164a00
Fixed implicit class record walking in the parser.
8 years ago
DevSidious
07ea284431
[parser] Added LLVM target initialization and supporting libraries for parsing inline assembly.
...
Fixes #923
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
910304b702
Removed leftovers in the comments from unsupported custom xml tags. ( #912 )
8 years ago
Kimon Topouzidis
93f5b89b52
Printed the text from unsupported comment tags. ( #911 )
8 years ago
Kimon Topouzidis
e89f7a344e
Refactored the way comments are printed. ( #893 )
8 years ago
Kimon Topouzidis
052b2b3a86
Added support for the Doxygen tag for making bold text. ( #889 )
8 years ago
Dimitar Dobrev
9dbcc3cc2c
Completed the support for dependent type names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
71c14cdb2b
Fixed the C++ printing of qualified specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
6a43e82047
Fixed the C++ printing of classes nested in specializations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
0f0f6172f0
Fixed the finding of functions to work in name-spaces too.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
2531d631c6
Ensured template arguments of specialised functions are read.
9 years ago
Dimitar Dobrev
cef847825a
Exposed constant expressions, friendships and exception specifications of functions in our AST.
9 years ago
Dimitar Dobrev
50ee414799
Fixed the C++ type printer to handle const value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e57ea530e1
Avoided naming conflicts between methods of different specialisations of a template.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
cc2a283c7f
Fixed the completion of templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0e344b4b8a
Tested generation of C# comments at run-time.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
a2fd71cc74
Enabled getting of template specialisations when type locations are invalid.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Abhinav Tripathi
d753c8d637
Moved property IsImplicit to Declaration from Method.
10 years ago
Dimitar Dobrev
1471e6f2fb
Simplified and tested the reading of line numbers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
triton
7624635fa3
Added test for C11's atomic type support added in 54267b88a4
.
10 years ago
Dimitar Dobrev
a293984424
Fixed the signatures of const functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
1cb4b22788
Fixed the pass for ambiguity to correctly mark ambiguous functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
993cb82bb7
Revert "Fixed parsing of function signatures with const-qualified return types."
...
This reverts commit 7d5e53e1df
.
Conflicts:
tests/Native/AST.h
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
99c124eb53
Fixed the location of a friendly declaration.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
7d5e53e1df
Fixed parsing of function signatures with const-qualified return types.
10 years ago
Dimitar Dobrev
8505f82ff0
Fixed signatures to include the 'const', if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
4385ecac76
Fixed the finding of classes to also check name-spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
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
bd0ec409e9
Fixed adding of enum items in ASTConverter.
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