Перменная | Сейчас используемый тип | Предлаемый тип 1 | Предлаемый тип 2 | Предлаемый тип 3 |
---|---|---|---|---|
Обычные числа | int | int | int/ptrdiff_t/size_t | int/ssize_t |
Индекс в контейнере | int | int | size_t | ssize_t |
Размер контейнера | DWORD/int/size_t | int | size_t | ssize_t |
Флаги | UINT | - | - | - |
Числа определенного размера | intN_t/uintN_t | - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://boxstarter.org/WebLauncher | |
Update-ExecutionPolicy RemoteSigned | |
cinst -y git -params '"/GitOnlyOnPath"' | |
cinst -y winmerge | |
cinst -y beyondcompare | |
cinst -y poshgit | |
cinst -y git-credential-winstore | |
cinst -y ethanbrown.conemuconfig #cinst -y conemu | |
cinst -y sublimetext3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?xml-stylesheet type="text/xsl" href="ivy-report.xsl"?> | |
<ivy-report version="1.0"> | |
<info | |
organisation="main" | |
module="legacy_lib" | |
revision="1.16.0.0" | |
branch="trunk" | |
extra-brand="DEFAULT_BRAND" | |
conf="build_sourceanalyzer" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set VS_VERSION=14 2015 | |
set TOOLSET_VERSION=-T "v140" | |
rem RelWithDebInfo configuration do many problems in solution, allow creating pdb for Release configuration | |
set CMAKE_PARAMS=-D CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release -D CMAKE_CXX_FLAGS_RELEASE:STRING="/MD /Zi /O2 /D NDEBUG" -D CMAKE_C_FLAGS_RELEASE:STRING="/MD /Zi /O2 /D NDEBUG" -D CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING="/DEBUG /INCREMENTAL:NO" -D CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING="/DEBUG /INCREMENTAL:NO" -D CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING="/DEBUG /INCREMENTAL:NO" | |
set CMAKE_OUTPUT_DIRS_WIN32=-D CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG:STRING=%~dp0\_result\Win32_Debug\lib\ -D CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG:STRING=%~dp0\_result\Win32_Debug\lib -D CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG:STRING=%~dp0\_result\Win32_Debug\bin^ | |
-D CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE:STRING=%~dp0\_result\Win32_Release\lib\ -D CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE:STRING=%~dp0\_result\Win32_Release\lib -D CMAKE_RUNTIME_OUTPUT_DIRECTORY_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug-v140\vld_main.exe'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug-v140\vld_x86.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug_StaticCrt-v140\vld_main.exe'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded. | |
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------- Block 102 at 0x0056A318: 4 bytes ---------- | |
Leak Hash: 0x834F747C, Count: 1, Total 4 bytes | |
Call Stack (TID 2420): | |
ntdll.dll!RtlAllocateHeap() | |
f:\dd\vctools\crt_bld\self_x86\crt\src\malloc.c (91): vld_main.exe!malloc() + 0x3B bytes | |
f:\dd\vctools\crt_bld\self_x86\crt\src\new.cpp (59): vld_main.exe!operator new() + 0x8 bytes | |
f:\dd\vctools\crt_bld\self_x86\crt\src\streambuf (26): vld_main.exe!std::basic_streambuf<char,std::char_traits<char> >::basic_streambuf<char,std::char_traits<char> >() + 0x11 bytes | |
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (227): vld_main.exe!__tmainCRTStartup() + 0x7 bytes | |
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes | |
ntdll.dll!RtlInitializeExceptionChain() + 0x8F bytes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (gRPC_USE_CONAN) | |
if(${CMAKE_GENERATOR} STREQUAL "Ninja") | |
if($ENV{VisualStudioVersion} MATCHES "12.") | |
set(_gRPC_CONAN_COMPILER -s "compiler=Visual Studio" -s compiler.version=12) | |
elseif($ENV{VisualStudioVersion} MATCHES "14.") | |
set(_gRPC_CONAN_COMPILER -s "compiler=Visual Studio" -s compiler.version=14) | |
endif() | |
if($ENV{Platform} STREQUAL "X64") | |
set(_gRPC_CONAN_ARCH -s arch=x86_64) | |
else() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cassert> | |
void dirty_stack() | |
{ | |
unsigned char array_on_stack[256]; | |
for (unsigned i = 0; i < sizeof(array_on_stack); ++i) | |
{ | |
array_on_stack[i] = 0x11; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/google/snappy/pull/29 | |
CMAKE_MINIMUM_REQUIRED(VERSION 3.4) | |
PROJECT(snappy VERSION 1.1.4 LANGUAGES C CXX) | |
option(SNAPPY_BUILD_TESTS "Build snappy tests" OFF) | |
SET(CMAKE_INCLUDE_CURRENT_DIR ON) | |
INCLUDE(CheckIncludeFiles) | |
INCLUDE(CheckLibraryExists) |