aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2021-03-24 15:48:46 -0400
committerDavid Tolnay <dtolnay@gmail.com>2021-03-24 15:48:47 -0400
commit395e20f64c1846fc866c210a70c06e87031dc2ed (patch)
treed652463e33755ef648d21524a6dadb53cf8d41a9
parent35c6c4b25cdb861414cff3cd4b0fdadf749db99c (diff)
downloadcxx-395e20f64c1846fc866c210a70c06e87031dc2ed.tar.gz
Suppress cppcoreguidelines-pro-type-varargs lint from clang-tidy
I don't understand why this specific lint is triggering in the two cases below but the code seems fine. include/cxx.h:882:3: error: do not declare variables of type va_list; use variadic templates instead [cppcoreguidelines-pro-type-vararg,-warnings-as-errors] auto data = reinterpret_cast<char *>(this->data()); ^ src/cxx.cc:355:3: error: do not declare variables of type va_list; use variadic templates instead [cppcoreguidelines-pro-type-vararg,-warnings-as-errors] char *copy = new char[len]; ^
-rw-r--r--.clang-tidy1
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
index a1db8d34..b0a6da98 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -10,6 +10,7 @@ Checks:
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-pro-type-member-init,
-cppcoreguidelines-pro-type-reinterpret-cast,
+ -cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-special-member-functions,
-modernize-use-default-member-init,
-modernize-use-equals-default,