mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 15:19:44 +00:00
395e20f64c
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]; ^
19 lines
620 B
YAML
19 lines
620 B
YAML
Checks:
|
|
clang-analyzer-*,
|
|
clang-diagnostic-*,
|
|
cppcoreguidelines-*,
|
|
modernize-*,
|
|
-cppcoreguidelines-macro-usage,
|
|
-cppcoreguidelines-owning-memory,
|
|
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
|
|
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
|
|
-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,
|
|
-modernize-use-trailing-return-type,
|
|
HeaderFilterRegex: cxx\.h
|