-
Notifications
You must be signed in to change notification settings - Fork 1.7k
run clang-tidy using a common config and reduced set of tests #1923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
f971106
c29812d
d1a7e5a
4871710
9b7e8da
312509b
2d9c7d2
90a0f4f
05d0264
f5e620b
eb18c8a
4bbe5bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,27 @@ | ||
| --- | ||
| Checks: 'clang-analyzer-*,readability-redundant-*,performance-*' | ||
| WarningsAsErrors: 'clang-analyzer-*,readability-redundant-*,performance-*' | ||
| HeaderFilterRegex: '.*' | ||
| Checks: 'abseil-*,bugprone-*,clang-analyzer-*,cppcoreguidelines-*,google-*,misc-*,performance-*,readability-*,-clang-analyzer-deadcode*,-clang-analyzer-optin*,-readability-identifier-length' | ||
| WarningsAsErrors: '' | ||
| HeaderFilterRegex: '' | ||
| AnalyzeTemporaryDtors: false | ||
| FormatStyle: none | ||
| User: user | ||
| CheckOptions: | ||
| llvm-else-after-return.WarnOnConditionVariables: 'false' | ||
| modernize-loop-convert.MinConfidence: reasonable | ||
| modernize-replace-auto-ptr.IncludeStyle: llvm | ||
| cert-str34-c.DiagnoseSignedUnsignedCharComparisons: 'false' | ||
| google-readability-namespace-comments.ShortNamespaceLines: '10' | ||
| 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;' | ||
| cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: 'false' | ||
| cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU' | ||
| google-readability-braces-around-statements.ShortStatementLines: '1' | ||
| cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: 'true' | ||
| google-readability-namespace-comments.SpacesBeforeComments: '2' | ||
| modernize-loop-convert.MaxCopySize: '16' | ||
| modernize-pass-by-value.IncludeStyle: llvm | ||
| 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' | ||
| ... | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,4 +35,4 @@ jobs: | |
| - name: run | ||
| shell: bash | ||
| working-directory: ${{ runner.workspace }}/_build | ||
| run: run-clang-tidy -checks=*,-clang-analyzer-deadcode*,-clang-analyzer-optin* | ||
| run: run-clang-tidy -config-file=${{ runner.workspace }}/.clang-tidy | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.