mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
Foundation classes - Formatting fixes for deprecated (#851)
- Removed empty lines following `Standard_DEPRECATED` macro declarations to improve code consistency - Removed `[[nodiscard]]` attributes from deprecated functions in Standard_Real, Standard_ShortReal, and Standard_Integer headers to resolve compiler compatibility issues - Updated the clang-format-check action's regex pattern to better handle `Standard_DEPRECATED` macro variations
This commit is contained in:
@@ -90,7 +90,7 @@ runs:
|
||||
$files = Get-Content "changed_files.txt" | Where-Object { Test-Path $_ }
|
||||
$files | ForEach-Object {
|
||||
$content = Get-Content $_ -Raw
|
||||
$pattern = '(Standard_DEPRECATED\("[a-z0-9\.,;\s\(\)_-]+"(?:[\s\n]+"[a-z0-9\.,;\s\(\)_-]+")?\)\n)\n+'
|
||||
$pattern = '(Standard_DEPRECATED\s*\(\s*"[^"]*"(?:\s*"[^"]*")*\s*\)\n)\n+'
|
||||
$newContent = $content -replace $pattern, '$1'
|
||||
if ($content -ne $newContent) {
|
||||
Set-Content -Path $_ -Value $newContent -NoNewline
|
||||
|
||||
Reference in New Issue
Block a user