root = true [*] charset = utf-8 indent_style = tab indent_size = 8 tab_width = 8 end_of_line = lf insert_final_newline = true [*.{c,cc,cpp,h,hpp}] # Unbraced single-statement blocks cpp_remove_braces_for_single_line_control_statements = true resharper_cpp_remove_braces_for_single_statements = true resharper_cpp_add_braces_for_single_line_if = false # Enforce BSD KNF for function bracess cpp_new_line_before_open_brace_function = new_line resharper_cpp_brace_style = next_line resharper_cpp_function_definition_braces = next_line # Enforce K&R for everything else cpp_new_line_before_open_brace_namespace = same_line cpp_new_line_before_open_brace_type = same_line cpp_new_line_before_open_brace_block = same_line cpp_new_line_before_open_brace_lambda = same_line cpp_new_line_before_else = false cpp_new_line_before_catch = false resharper_cpp_namespace_declaration_braces = end_of_line resharper_cpp_type_declaration_braces = end_of_line resharper_cpp_control_transfer_braces = end_of_line