mirror of
https://github.com/kuhyx/engineer-thesis-WUT.git
synced 2026-07-04 13:23:09 +02:00
feat: added script for clang
This commit is contained in:
parent
72951f8a8c
commit
b2e5e1a356
28
.clang-tidy
Normal file
28
.clang-tidy
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
Checks: 'clang-diagnostic-*,clang-analyzer-*'
|
||||||
|
WarningsAsErrors: ''
|
||||||
|
HeaderFilterRegex: ''
|
||||||
|
AnalyzeTemporaryDtors: false
|
||||||
|
FormatStyle: none
|
||||||
|
User: kuchy
|
||||||
|
CheckOptions:
|
||||||
|
llvm-else-after-return.WarnOnConditionVariables: 'false'
|
||||||
|
modernize-loop-convert.MinConfidence: reasonable
|
||||||
|
modernize-replace-auto-ptr.IncludeStyle: llvm
|
||||||
|
modernize-pass-by-value.IncludeStyle: llvm
|
||||||
|
google-readability-namespace-comments.ShortNamespaceLines: '10'
|
||||||
|
google-readability-namespace-comments.SpacesBeforeComments: '2'
|
||||||
|
cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: 'true'
|
||||||
|
google-readability-braces-around-statements.ShortStatementLines: '1'
|
||||||
|
cert-err33-c.CheckedFunctions: '::aligned_alloc;::asctime_s;::at_quick_exit;::atexit;::bsearch;::bsearch_s;::btowc;::c16rtomb;::c32rtomb;::calloc;::clock;::cnd_broadcast;::cnd_init;::cnd_signal;::cnd_timedwait;::cnd_wait;::ctime_s;::fclose;::fflush;::fgetc;::fgetpos;::fgets;::fgetwc;::fopen;::fopen_s;::fprintf;::fprintf_s;::fputc;::fputs;::fputwc;::fputws;::fread;::freopen;::freopen_s;::fscanf;::fscanf_s;::fseek;::fsetpos;::ftell;::fwprintf;::fwprintf_s;::fwrite;::fwscanf;::fwscanf_s;::getc;::getchar;::getenv;::getenv_s;::gets_s;::getwc;::getwchar;::gmtime;::gmtime_s;::localtime;::localtime_s;::malloc;::mbrtoc16;::mbrtoc32;::mbsrtowcs;::mbsrtowcs_s;::mbstowcs;::mbstowcs_s;::memchr;::mktime;::mtx_init;::mtx_lock;::mtx_timedlock;::mtx_trylock;::mtx_unlock;::printf_s;::putc;::putwc;::raise;::realloc;::remove;::rename;::scanf;::scanf_s;::setlocale;::setvbuf;::signal;::snprintf;::snprintf_s;::sprintf;::sprintf_s;::sscanf;::sscanf_s;::strchr;::strerror_s;::strftime;::strpbrk;::strrchr;::strstr;::strtod;::strtof;::strtoimax;::strtok;::strtok_s;::strtol;::strtold;::strtoll;::strtoul;::strtoull;::strtoumax;::strxfrm;::swprintf;::swprintf_s;::swscanf;::swscanf_s;::thrd_create;::thrd_detach;::thrd_join;::thrd_sleep;::time;::timespec_get;::tmpfile;::tmpfile_s;::tmpnam;::tmpnam_s;::tss_create;::tss_get;::tss_set;::ungetc;::ungetwc;::vfprintf;::vfprintf_s;::vfscanf;::vfscanf_s;::vfwprintf;::vfwprintf_s;::vfwscanf;::vfwscanf_s;::vprintf_s;::vscanf;::vscanf_s;::vsnprintf;::vsnprintf_s;::vsprintf;::vsprintf_s;::vsscanf;::vsscanf_s;::vswprintf;::vswprintf_s;::vswscanf;::vswscanf_s;::vwprintf_s;::vwscanf;::vwscanf_s;::wcrtomb;::wcschr;::wcsftime;::wcspbrk;::wcsrchr;::wcsrtombs;::wcsrtombs_s;::wcsstr;::wcstod;::wcstof;::wcstoimax;::wcstok;::wcstok_s;::wcstol;::wcstold;::wcstoll;::wcstombs;::wcstombs_s;::wcstoul;::wcstoull;::wcstoumax;::wcsxfrm;::wctob;::wctrans;::wctype;::wmemchr;::wprintf_s;::wscanf;::wscanf_s;'
|
||||||
|
modernize-loop-convert.MaxCopySize: '16'
|
||||||
|
cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU'
|
||||||
|
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: 'false'
|
||||||
|
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: 'false'
|
||||||
|
modernize-use-nullptr.NullMacros: 'NULL'
|
||||||
|
llvm-qualified-auto.AddConstToQualified: 'false'
|
||||||
|
modernize-loop-convert.NamingStyle: CamelCase
|
||||||
|
llvm-else-after-return.WarnOnUnfixable: 'false'
|
||||||
|
google-readability-function-size.StatementThreshold: '800'
|
||||||
|
...
|
||||||
|
|
||||||
40
.gitignore
vendored
40
.gitignore
vendored
@ -257,3 +257,43 @@ dmypy.json
|
|||||||
cython_debug/
|
cython_debug/
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/python
|
# End of https://www.toptal.com/developers/gitignore/api/python
|
||||||
|
|
||||||
|
#==============================================================================#
|
||||||
|
# This file specifies intentionally untracked files that git should ignore.
|
||||||
|
# See: http://www.kernel.org/pub/software/scm/git/docs/gitignore.html
|
||||||
|
#==============================================================================#
|
||||||
|
|
||||||
|
#==============================================================================#
|
||||||
|
# File extensions to be ignored anywhere in the tree.
|
||||||
|
#==============================================================================#
|
||||||
|
# Temp files created by most text editors.
|
||||||
|
*~
|
||||||
|
# Merge files created by git.
|
||||||
|
*.orig
|
||||||
|
# Byte compiled python modules.
|
||||||
|
*.pyc
|
||||||
|
# vim swap files
|
||||||
|
.*.sw?
|
||||||
|
.sw?
|
||||||
|
|
||||||
|
#==============================================================================#
|
||||||
|
# Explicit files to ignore (only matches one).
|
||||||
|
#==============================================================================#
|
||||||
|
cscope.files
|
||||||
|
cscope.out
|
||||||
|
/tags
|
||||||
|
|
||||||
|
#==============================================================================#
|
||||||
|
# Directories to ignore (do not add trailing '/'s, they skip symlinks).
|
||||||
|
#==============================================================================#
|
||||||
|
# Clang extra user tools, which is tracked independently (clang-tools-extra).
|
||||||
|
tools/extra
|
||||||
|
# Sphinx build products
|
||||||
|
docs/_build
|
||||||
|
docs/analyzer/_build
|
||||||
|
# debug info testsuite
|
||||||
|
test/debuginfo-tests
|
||||||
|
|
||||||
|
# VS2017 and VSCode config files.
|
||||||
|
.vscode
|
||||||
|
.vs
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
2
clang_script.sh
Executable file
2
clang_script.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
clang-tidy --config-file=.clang-tidy --fix-errors --fix-notes -p ./build/compile_commands.json ./breakout/breakout.cpp ./breakout/game.cpp ./breakout/game.hpp ./breakout/resourceManager.cpp ./breakout/resourceManager.hpp ./breakout/shader.cpp ./breakout/shader.hpp ./breakout/texture.cpp ./breakout/texture.hpp
|
||||||
Loading…
Reference in New Issue
Block a user