Skip to content
Snippets Groups Projects
Commit f4a669d4 authored by Jakub Konvička's avatar Jakub Konvička
Browse files

feat: make std optional in vector

parent c0bf5422
Branches
1 merge request!15merge: develop into main
Pipeline #871 passed with warnings with stages
in 2 minutes and 57 seconds
...@@ -2,4 +2,5 @@ bin/ ...@@ -2,4 +2,5 @@ bin/
obj/ obj/
/packages/ /packages/
riderModule.iml riderModule.iml
/_ReSharper.Caches/ /_ReSharper.Caches/
\ No newline at end of file .idea
\ No newline at end of file
...@@ -112,8 +112,8 @@ public class CppClassDiagramVisitor : CPP14ParserBaseVisitor<object> ...@@ -112,8 +112,8 @@ public class CppClassDiagramVisitor : CPP14ParserBaseVisitor<object>
else else
{ {
// Regular expressions // Regular expressions
string aggregationPattern = @"^(std::vector<(\w*)\*>|(\w*)\*|(\w*)\* (\w*|\[\]))$"; string aggregationPattern = @"^((std::)?vector<(\w*)\*>|(\w*)\*|(\w*)\* (\w*|\[\]))$";
string compositionPattern = @"^(std::vector<(\w*)>|(\w*)|(\w*) (\w*|\[\]))$"; string compositionPattern = @"^((std::)?vector<(\w*)>|(\w*)|(\w*) (\w*|\[\]))$";
// Check if the property type matches aggregation or composition // Check if the property type matches aggregation or composition
Match aggregationMatch = Regex.Match(atribute.Type, aggregationPattern); Match aggregationMatch = Regex.Match(atribute.Type, aggregationPattern);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment