Skip to content

Instantly share code, notes, and snippets.

View SanyaNya's full-sized avatar

SanyaNya

  • 22:58 (UTC +03:00)
View GitHub Profile
@SanyaNya
SanyaNya / cflags.cmake
Last active October 31, 2024 09:13
My GCC/Clang/MSVC flags
# C/C++ flags for GCC/Clang/MSVC
# Debug: disabled optimization, warnings, sanitizers
# Release: max optimization and LTO, warnings disabled
if(MSVC)
add_compile_options(
$<$<CONFIG:Debug>:/Od>
$<$<CONFIG:Debug>:/Zi>
$<$<CONFIG:Debug>:/fsanitize=address>
$<$<CONFIG:Release>:/w>
@SanyaNya
SanyaNya / WindowsContainersGuide.md
Created June 13, 2024 08:21
Windows containers guide with cmd
@SanyaNya
SanyaNya / .clang-format
Last active May 21, 2024 18:14
My clang-format config
---
Language: Cpp
# BasedOnStyle: Mozilla
AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false