Hello and welcome to C++ weekly, I'm your host Jason Turner
I am available for on-site training at contracting and code reviews now in this episode
I am going to begin a series where I am going to show you how to learn modern
C++ and now the definition of what modern C++ is
Exactly is certainly open to debate
But let's say for the sake of these videos that it is what is considered to be the current best
practices for programming in C++
the current best practices are
Going to change as the language evolves and as we learn more about how to write better code for modern
Computers now the point of this particular video series is to give you the tools that you need to be able to be always writing
modernist C++ and learning on your own what the current best practices are so I'm
Going to be starting in Windows for this particular example, and this is a very
Recent install of Windows 10 the only changes that I have made to it is to scale the user interface so that it is
More visible when you are watching these videos later, and if you are a longtime viewer of this show
Then you are probably wondering why I am using Windows today instead of Linux, but I am going to be using
Visual Studio for these examples and specifically the Visual Studio
2017 community edition now I'm going to go ahead and download that now and like I said, I haven't installed anything at all yet
So I'm just using the web browser that comes with Windows
This is the download that we want is the first download here are the Visual Studio
2017 Community Edition, and that is free download from Microsoft
You
Now to actually do C++ development with Visual Studio
2017 community we need to choose a
Workload that gives us access to the C++ compilers, so we're going to use this
desktop development with C++
And I think that the set of things that it is installing is pretty good
It's got boost test Google test and CMake support and the latest version of the compiler
So we're just going to go ahead and hit install here and wait for it to download and install the components and this will take
a little bit longer than it will on your computer because
recording this
Screencast is actually slowing down the install process a fair bit
You okay, we have finished installing Visual Studio community
You
You
So installing Visual Studio
Just the first tool that we wanted to install for our demonstrations for the upcoming next few episodes
So to install more tools, we're going to go to the tools
extensions and updates'
Now there is a few tools that we want to install and we want to get them from online from the marketplace
The first tool that we want to install is clang power tools
And we just hit download here
And it will automatically be queued to
Install the next time we restart Visual Studio so while we're here we want to grab one other tool
And that is clang format
Now we're going to go ahead and shut down a visual studio and
Get another add-on from github. That's not in the market place
If
We search here for the github cppcheck visual studio extension
We can find this one from violet giraffe cppcheck Visual Studio add in
Now there are a couple of different versions of this, but this one will likely do what we need it to do
We can see here that we have our
Multiple installers going and we needed to allow this clang power tools and clang0format once to finish installing
So we have installed the plugins for cppcheck clang-format and clang power tools, so we need a couple more things
Specifically we need to get clang for Windows installed
and
That is easily available from the clang website
And we're just going to go with the defaults here
And finally we need to install the latest version of cppcheck
And for future reference if you are installing cppcheck yourself later with the visual studio plug-in you can see that
There is a link to it here from the clients and plugins list on cppcheck's website
Okay, so we have clang we have
clang power tools we have the clang-format extension
And we've got the cppcheck extension with cppcheck installed so now for
The conclusion for this episode all we're going to do is launch Visual Studio and make sure that those
Tools are installed like we think they should be
So we can see that we have cppcheck installed here clang format here and
Hopefully we also have
Clang power tools installed correctly
But that is not something that we'll be able to see until we create our first project
Be sure to subscribe follow me on Twitter and check out any of the links below
