This file contains 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 !defined(_TRUNCATE) | |
#define _TRUNCATE ((size_t)-1) | |
#endif //_TRUNCATE | |
inline int portable_printf(char* const _Buffer, int const _BufferCount, char const* const _Format, ...) { | |
int ret = 0; | |
va_list args; | |
va_start(args, _Format); | |
#if _MSC_VER | |
ret = vsnprintf_s(_Buffer, _BufferCount, _TRUNCATE, _Format, args); |
This file contains 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
docker@af7507e2c034:/tmp/workspace/llvm-demo$ cat .clang-tidy | |
--- | |
Checks: '*-,modernize-*' | |
CheckOptions: [{key: modernize-use-auto.MinTypeNameLength, value: '5'}] | |
... | |
docker@af7507e2c034:/tmp/workspace/llvm-demo$ clang-tidy --dump-config | grep 5 | |
docker@af7507e2c034:/tmp/workspace/llvm-demo$ clang-tidy --dump-config | grep modernize-use-auto.MinTypeNameLength | |
docker@af7507e2c034:/tmp/workspace/llvm-demo$ clang-tidy --dump-config | grep modernize- | |
Checks: 'clang-diagnostic-*,clang-analyzer-*,*-,modernize-*' | |
- key: modernize-loop-convert.MaxCopySize |
This file contains 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
diff --git a/inc/aligned_buffer.h b/inc/aligned_buffer.h | |
index 22ce813..247ce97 100644 | |
--- a/inc/aligned_buffer.h | |
+++ b/inc/aligned_buffer.h | |
@@ -1,9 +1,7 @@ | |
#ifndef ALIGNED_BUFFER | |
#define ALIGNED_BUFFER | |
-#include <stdint.h> | |
-#include <stdlib.h> |
This file contains 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
target_compile_options(${name} | |
PRIVATE | |
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>: | |
$<$<CONFIG:Debug>:-O0 -Wall -Wextra>> | |
$<$<CXX_COMPILER_ID:MSVC>: | |
$<$<CONFIG:Debug>:/Od /W4 /Zi>> | |
) | |
find_program(CLANG_TIDY_BIN NAMES "clang-tidy" "clang-tidy-6.0") | |
if(USE_CLANG_TIDY) |
This file contains 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
brew doctor | |
Your system is raring to brew. |
This file contains 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
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> === | |
* | |
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org> | |
* | |
* Tomahawk is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* Tomahawk is distributed in the hope that it will be useful, |