Skip to content

Commit

Permalink
consistent include guards
Browse files Browse the repository at this point in the history
  • Loading branch information
daixtrose committed Oct 16, 2024
1 parent 8cad8a1 commit ba67fbf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CONSUME_CLASS_THAT_ADHERES_TO_CONCEPT_HPP
#define CONSUME_CLASS_THAT_ADHERES_TO_CONCEPT_HPP
#ifndef POYMORPHISM_CONSUME_CLASS_THAT_ADHERES_TO_CONCEPT_HPP
#define POYMORPHISM_CONSUME_CLASS_THAT_ADHERES_TO_CONCEPT_HPP

#include <polymorphism/has_super_cool_features.hpp>

Expand All @@ -10,4 +10,4 @@ std::string consume(has_super_cool_features auto& s);

} // namespace modern

#endif // CONSUME_CLASS_THAT_ADHERES_TO_CONCEPT_HPP
#endif // POYMORPHISM_CONSUME_CLASS_THAT_ADHERES_TO_CONCEPT_HPP
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CONSUME_CLASS_WITH_INTERFACE_HPP
#define CONSUME_CLASS_WITH_INTERFACE_HPP
#ifndef POYMORPHISM_CONSUME_CLASS_WITH_INTERFACE_HPP
#define POYMORPHISM_CONSUME_CLASS_WITH_INTERFACE_HPP

#include <polymorphism/i_super_cool_features.hpp>

Expand All @@ -9,4 +9,4 @@ std::string consume(ISuperCoolFeatures& f);

} // namespace classic

#endif // CONSUME_CLASS_WITH_INTERFACE_HPP
#endif // POYMORPHISM_CONSUME_CLASS_WITH_INTERFACE_HPP
6 changes: 3 additions & 3 deletions polymorphism/include/polymorphism/has_super_cool_features.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef EXAMPLE_5_FEATURES_HPP
#define EXAMPLE_5_FEATURES_HPP
#ifndef POYMORPHISM_HAS_SUPER_COOL_FEATURES_HPP
#define POYMORPHISM_HAS_SUPER_COOL_FEATURES_HPP

#include <string>

Expand All @@ -14,4 +14,4 @@ concept has_super_cool_features = requires(T t, std::string s) {

} // namespace modern

#endif // EXAMPLE_5_FEATURES_HPP
#endif // POYMORPHISM_HAS_SUPER_COOL_FEATURES_HPP
6 changes: 3 additions & 3 deletions polymorphism/include/polymorphism/i_super_cool_features.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef ISUPERCOOLFEATURES_HPP
#define ISUPERCOOLFEATURES_HPP
#ifndef POLYMORPHISM_I_SUPER_COOL_FEATURES_HPP
#define POLYMORPHISM_I_SUPER_COOL_FEATURES_HPP

#include <string>

Expand All @@ -15,4 +15,4 @@ class ISuperCoolFeatures {

} // namespace classic

#endif // ISUPERCOOLFEATURES_HPP
#endif // POLYMORPHISM_I_SUPER_COOL_FEATURES_HPP
6 changes: 3 additions & 3 deletions polymorphism/include/polymorphism/impl_without_interface.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef IMPL_WITHOUT_INTERFACE_HPP
#define IMPL_WITHOUT_INTERFACE_HPP
#ifndef POYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP
#define POYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP

#include <polymorphism/has_super_cool_features.hpp>

Expand All @@ -24,4 +24,4 @@ static_assert(has_super_cool_features<Impl>);

} // namespace modern

#endif // IMPL_WITHOUT_INTERFACE_HPP
#endif // POYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP

0 comments on commit ba67fbf

Please sign in to comment.