mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
added new and delete in lloc counter
This commit is contained in:
@@ -22,7 +22,7 @@ def is_logical_line(line, output_lines):
|
|||||||
r";",
|
r";",
|
||||||
r"\b(if|else|for|while|do|switch|case|return)\b", # Vadības kontroles konstrukcijas.
|
r"\b(if|else|for|while|do|switch|case|return)\b", # Vadības kontroles konstrukcijas.
|
||||||
r"\b(class|struct|template|enum)\b", # Datu struktūras.
|
r"\b(class|struct|template|enum)\b", # Datu struktūras.
|
||||||
r"\b(namespace|typedef|using)\b", # Papildus konstrukcijas.
|
r"\b(namespace|typedef|using|new|delete)\b", # Papildus konstrukcijas.
|
||||||
]
|
]
|
||||||
is_logical = any(re.search(pattern, stripped) for pattern in logical_patterns)
|
is_logical = any(re.search(pattern, stripped) for pattern in logical_patterns)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user