Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Refactoring with C++
  • Table Of Contents Toc
  • Feedback & Rating feedback
Refactoring with C++

Refactoring with C++

By : Dmitry Danilov
5 (2)
close
close
Refactoring with C++

Refactoring with C++

5 (2)
By: Dmitry Danilov

Overview of this book

Despite the prevalence of higher-level languages, C++ is still running the world, from bare-metal embedded systems to distributed cloud-native systems. C++ is on the frontline whenever there is a need for a performance-sensitive tool supporting complex data structures. The language has been actively evolving for the last two decades. This book is a comprehensive guide that shows you how to implement SOLID principles and refactor legacy code using the modern features and approaches of C++, the standard library, Boost library collection, and Guidelines Support Library by Microsoft. The book begins by describing the essential elements of writing clean code and discussing object-oriented programming in C++. You’ll explore the design principles of software testing with examples of using popular unit testing frameworks such as Google Test. The book also guides you through applying automated tools for static and dynamic code analysis using Clang Tools. By the end of this book, you’ll be proficient in applying industry-approved coding practices to design clean, sustainable, and readable real-world C++ code.
Table of Contents (18 chapters)
close
close
Free Chapter
2
Chapter 2: Main Software Development Principles
In Progress | 0 / 5 sections completed | 0%
4
Chapter 4: Identifying Ideal Candidates for Rewriting – Patterns and Anti-Patterns
In Progress | 0 / 6 sections completed | 0%
16
Index
In Progress | 0 / 2 sections completed | 0%

Clang-Format configuration – a deep dive into customizing your formatting rules

When it comes to configuring Clang-Format, the possibilities are almost endless, allowing you to tweak even the most minute details of your code’s appearance. However, for those who are new to this tool or those who wish to quickly adopt a widely accepted set of rules, Clang-Format allows you to derive configurations from existing presets. These presets serve as solid foundations upon which you can build a tailored formatting style that suits your project’s specific needs.

Leveraging existing presets

Clang-Format offers several built-in presets that adhere to popular coding standards. These include the following:

  • LLVM: Adheres to the LLVM coding standards
  • Google: Follows Google’s C++ style guide
  • Chromium: Based on Chromium’s style guide, a variant of Google’s style guide
  • Mozilla: Follows the Mozilla coding standards
  • WebKit: Adheres...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY