-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate.bat
More file actions
33 lines (28 loc) · 936 Bytes
/
Copy pathvalidate.bat
File metadata and controls
33 lines (28 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
echo Validating C++ syntax...
REM Compile with syntax checking only (/Zs flag)
cl /EHsc /std:c++20 /permissive- /Zc:__cplusplus /Zs /W4 /I. /DUNICODE /D_UNICODE cli_args_debugger.cpp
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Syntax errors found in cli_args_debugger.cpp
exit /b 1
)
cl /EHsc /std:c++20 /permissive- /Zc:__cplusplus /Zs /W4 /I. /DUNICODE /D_UNICODE seh_wrapper.cpp
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Syntax errors found in seh_wrapper.cpp
exit /b 1
)
echo.
echo All syntax checks passed!
REM Optional: Check with clang-tidy if available
where clang-tidy >nul 2>nul
if %ERRORLEVEL% EQU 0 (
echo.
echo Running clang-tidy...
clang-tidy cli_args_debugger.cpp -- -std=c++20 -DUNICODE -D_UNICODE -I.
clang-tidy seh_wrapper.cpp -- -std=c++20 -DUNICODE -D_UNICODE -I.
) else (
echo.
echo clang-tidy not found. Install LLVM for additional checks.
)
echo.
echo Validation complete!