-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run-clang-tidy -checks='-*,modernize-concat-nested-namespaces' -fix
- Loading branch information
1 parent
1e7f332
commit a95952c
Showing
103 changed files
with
398 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
int main(int, char **) { return 0; } | ||
int main(int, char **) { return 0; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
int main(int, char **) { | ||
std::cout << "Welcome to CMake Best Practices\n"; | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,4 @@ int main(void) { | |
} | ||
|
||
return component_1->do_other_stuff(1) + component_2->do_other_stuff(3); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
int main(int, char **) { | ||
std::cout << "Welcome to CMake Best Practices\n"; | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#pragma once | ||
#pragma once | ||
|
||
#include <string> | ||
#include "hello/export_hello.hpp" | ||
#include <string> | ||
|
||
namespace hello { | ||
/// Example class that is explicitly exported into a dll | ||
class CH3_HELLO_SHARED_EXPORT Hello { | ||
public: | ||
Hello(const std::string &name) : name_{name} {} | ||
|
||
namespace hello{ | ||
/// Example class that is explicitly exported into a dll | ||
class CH3_HELLO_SHARED_EXPORT Hello { | ||
public: | ||
Hello(const std::string& name) : name_{name} {} | ||
void greet() const; | ||
|
||
void greet() const; | ||
private: | ||
const std::string name_; | ||
}; | ||
} | ||
private: | ||
const std::string name_; | ||
}; | ||
} // namespace hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#pragma once | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
namespace hello::details{ | ||
namespace hello::details { | ||
|
||
void print_impl(const std::string& name); | ||
} | ||
void print_impl(const std::string &name); | ||
|
||
} |
25 changes: 13 additions & 12 deletions
25
chapter03/hello_simple_library_example/include/hello/hello.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
#pragma once | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
namespace hello{ | ||
/// Example class that is explicitly exported into a dll | ||
class Hello { | ||
public: | ||
Hello(const std::string& name) : name_{name} {} | ||
|
||
void greet() const; | ||
private: | ||
const std::string name_; | ||
}; | ||
} | ||
namespace hello { | ||
/// Example class that is explicitly exported into a dll | ||
class Hello { | ||
public: | ||
Hello(const std::string &name) : name_{name} {} | ||
|
||
void greet() const; | ||
|
||
private: | ||
const std::string name_; | ||
}; | ||
} // namespace hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#pragma once | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
namespace hello::details{ | ||
namespace hello::details { | ||
|
||
void print_impl(const std::string& name); | ||
} | ||
void print_impl(const std::string &name); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
#pragma once | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
namespace hello{ | ||
/// Example class that is explicitly exported into a dll | ||
class Hello { | ||
public: | ||
Hello(const std::string& name) : name_{name} {} | ||
|
||
void greet() const; | ||
private: | ||
const std::string name_; | ||
}; | ||
} | ||
namespace hello { | ||
/// Example class that is explicitly exported into a dll | ||
class Hello { | ||
public: | ||
Hello(const std::string &name) : name_{name} {} | ||
|
||
void greet() const; | ||
|
||
private: | ||
const std::string name_; | ||
}; | ||
} // namespace hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#pragma once | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
namespace hello::details{ | ||
namespace hello::details { | ||
|
||
void print_impl(const std::string& name); | ||
} | ||
void print_impl(const std::string &name); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#include <iostream> | ||
|
||
int main(int, char**) | ||
{ | ||
std::cout << "Welcome to chapter 3\n"; | ||
} | ||
int main(int, char **) { std::cout << "Welcome to chapter 3\n"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ int main(int, char **) { | |
hello::Hello hello("Jane Doe"); | ||
hello.greet(); | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.