Applied cppcoreguidelines-pro-type-member-init,hicpp-explicit-conversionsm,modernize-use-default-member-init clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-20 22:53:20 +01:00
parent 1116c3ab67
commit 682c6648be
9 changed files with 20 additions and 37 deletions

View File

@@ -99,16 +99,16 @@ struct call_expression_context {
bool is_expr_in_current_control_statement_condition(
const clang::Stmt *stmt) const;
clang::CXXRecordDecl *current_class_decl_;
clang::ClassTemplateDecl *current_class_template_decl_;
clang::CXXRecordDecl *current_class_decl_{nullptr};
clang::ClassTemplateDecl *current_class_template_decl_{nullptr};
clang::ClassTemplateSpecializationDecl
*current_class_template_specialization_decl_;
clang::CXXMethodDecl *current_method_decl_;
clang::FunctionDecl *current_function_decl_;
clang::FunctionTemplateDecl *current_function_template_decl_;
*current_class_template_specialization_decl_{nullptr};
clang::CXXMethodDecl *current_method_decl_{nullptr};
clang::FunctionDecl *current_function_decl_{nullptr};
clang::FunctionTemplateDecl *current_function_template_decl_{nullptr};
private:
std::int64_t current_caller_id_;
std::int64_t current_caller_id_{0};
std::stack<std::int64_t> current_lambda_caller_id_;
std::stack<clang::CallExpr *> call_expr_stack_;