Commit c94aa406a65ca8f6b9c6c8c97ed2f7dd4e0e105e

Authored by Henry Fredrick Schreiner
1 parent 44f43bd6

Fixing namespace endings

.clang-tidy
1 1 #Checks: '*,-clang-analyzer-alpha.*'
2   -Checks: '-*,google-readability-casting,llvm-namespace-comment,performance-unnecessary-value-param,llvm-include-order,misc-throw-by-value-catch-by-reference,readability-container-size-empty,google-runtime-references,modernize*'
  2 +#Checks: '-*,google-readability-casting,llvm-namespace-comment,performance-unnecessary-value-param,llvm-include-order,misc-throw-by-value-catch-by-reference,readability-container-size-empty,google-runtime-references,modernize*'
  3 +Checks: '-*,llvm-namespace-comment'
3 4 HeaderFilterRegex: '.*hpp'
4 5 CheckOptions:
5 6 - key: readability-braces-around-statements.ShortStatementLines
... ...
examples/try2.cpp
1 1 #include "CLI/CLI.hpp"
  2 +#include "CLI/Timer.hpp"
2 3  
3 4  
4 5 int main (int argc, char** argv) {
  6 + CLI::AutoTimer("This is a timer");
5 7  
6 8 CLI::App app("K3Pi goofit fitter");
7 9  
... ...
include/CLI/App.hpp
... ... @@ -29,7 +29,7 @@ namespace CLI {
29 29 namespace detail {
30 30 enum class Classifer {NONE, POSITIONAL_MARK, SHORT, LONG, SUBCOMMAND};
31 31 struct AppFriend;
32   -}
  32 +} // namespace detail
33 33  
34 34 class App;
35 35  
... ... @@ -1178,7 +1178,7 @@ struct AppFriend {
1178 1178 }
1179 1179  
1180 1180 };
1181   -}
  1181 +} // namespace detail
1182 1182  
1183   -}
  1183 +} // namespace CLI
1184 1184  
... ...
include/CLI/Error.hpp
... ... @@ -166,4 +166,4 @@ struct OptionNotFound : public Error {
166 166  
167 167 /// @}
168 168  
169   -}
  169 +} // namespace CLI
... ...
include/CLI/Ini.hpp
... ... @@ -113,5 +113,5 @@ inline std::vector<ini_ret_t> parse_ini(const std::string &name) {
113 113 }
114 114  
115 115  
116   -}
117   -}
  116 +} // namespace detail
  117 +} // namespace CLI
... ...
include/CLI/Option.hpp
... ... @@ -493,4 +493,4 @@ public:
493 493  
494 494  
495 495  
496   -}
  496 +} // namespace CLI
... ...
include/CLI/Split.hpp
... ... @@ -89,5 +89,5 @@ inline std::tuple<std::vector<std::string>,std::vector<std::string>, std::string
89 89 }
90 90  
91 91  
92   -}
93   -}
  92 +} // namespace detail
  93 +} // namespace CLI
... ...
include/CLI/StringTools.hpp
... ... @@ -197,5 +197,5 @@ inline std::vector<std::string> split_up(std::string str) {
197 197 return output;
198 198 }
199 199  
200   -}
201   -}
  200 +} // namespace detail
  201 +} // namespace CLI
... ...
include/CLI/Timer.hpp
... ... @@ -123,7 +123,7 @@ public:
123 123 }
124 124 };
125 125  
126   -}
  126 +} // namespace CLI
127 127  
128 128 /// This prints out the time if shifted into a std::cout like stream.
129 129 inline std::ostream & operator<< (std::ostream& in, const CLI::Timer& timer) {
... ...
include/CLI/TypeTools.hpp
... ... @@ -135,5 +135,5 @@ namespace detail {
135 135 }
136 136  
137 137  
138   -}
139   -}
  138 +} // namespace detail
  139 +} // namespace CLI
... ...
include/CLI/Validators.hpp
... ... @@ -86,4 +86,4 @@ std::function&lt;bool(std::string)&gt; Range(T max) {
86 86  
87 87 /// @}
88 88  
89   -}
  89 +} // namespace CLI
... ...