diff --git a/.clang-tidy b/.clang-tidy index f6ce861..3acf30c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,6 @@ #Checks: '*,-clang-analyzer-alpha.*' -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*' +#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*' +Checks: '-*,llvm-namespace-comment' HeaderFilterRegex: '.*hpp' CheckOptions: - key: readability-braces-around-statements.ShortStatementLines diff --git a/examples/try2.cpp b/examples/try2.cpp index e085215..47e41da 100644 --- a/examples/try2.cpp +++ b/examples/try2.cpp @@ -1,7 +1,9 @@ #include "CLI/CLI.hpp" +#include "CLI/Timer.hpp" int main (int argc, char** argv) { + CLI::AutoTimer("This is a timer"); CLI::App app("K3Pi goofit fitter"); diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 8cf30a6..645b7e4 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -29,7 +29,7 @@ namespace CLI { namespace detail { enum class Classifer {NONE, POSITIONAL_MARK, SHORT, LONG, SUBCOMMAND}; struct AppFriend; -} +} // namespace detail class App; @@ -1178,7 +1178,7 @@ struct AppFriend { } }; -} +} // namespace detail -} +} // namespace CLI diff --git a/include/CLI/Error.hpp b/include/CLI/Error.hpp index f28fc07..897e53c 100644 --- a/include/CLI/Error.hpp +++ b/include/CLI/Error.hpp @@ -166,4 +166,4 @@ struct OptionNotFound : public Error { /// @} -} +} // namespace CLI diff --git a/include/CLI/Ini.hpp b/include/CLI/Ini.hpp index e29142c..e3c3208 100644 --- a/include/CLI/Ini.hpp +++ b/include/CLI/Ini.hpp @@ -113,5 +113,5 @@ inline std::vector parse_ini(const std::string &name) { } -} -} +} // namespace detail +} // namespace CLI diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index 98090b3..0b63300 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -493,4 +493,4 @@ public: -} +} // namespace CLI diff --git a/include/CLI/Split.hpp b/include/CLI/Split.hpp index f909495..d461ca9 100644 --- a/include/CLI/Split.hpp +++ b/include/CLI/Split.hpp @@ -89,5 +89,5 @@ inline std::tuple,std::vector, std::string } -} -} +} // namespace detail +} // namespace CLI diff --git a/include/CLI/StringTools.hpp b/include/CLI/StringTools.hpp index 834bee1..db86ac5 100644 --- a/include/CLI/StringTools.hpp +++ b/include/CLI/StringTools.hpp @@ -197,5 +197,5 @@ inline std::vector split_up(std::string str) { return output; } -} -} +} // namespace detail +} // namespace CLI diff --git a/include/CLI/Timer.hpp b/include/CLI/Timer.hpp index 7ff6594..60a3e00 100644 --- a/include/CLI/Timer.hpp +++ b/include/CLI/Timer.hpp @@ -123,7 +123,7 @@ public: } }; -} +} // namespace CLI /// This prints out the time if shifted into a std::cout like stream. inline std::ostream & operator<< (std::ostream& in, const CLI::Timer& timer) { diff --git a/include/CLI/TypeTools.hpp b/include/CLI/TypeTools.hpp index 6a49f0e..c1dab70 100644 --- a/include/CLI/TypeTools.hpp +++ b/include/CLI/TypeTools.hpp @@ -135,5 +135,5 @@ namespace detail { } -} -} +} // namespace detail +} // namespace CLI diff --git a/include/CLI/Validators.hpp b/include/CLI/Validators.hpp index 9da47ed..82b1e9c 100644 --- a/include/CLI/Validators.hpp +++ b/include/CLI/Validators.hpp @@ -86,4 +86,4 @@ std::function Range(T max) { /// @} -} +} // namespace CLI