Update clang-format config and apply

- Regroup and sort #include directives (like we used to, but automatic)
- Set AlwaysBreakTemplateDeclarations to true
This commit is contained in:
Geza Lore
2022-08-05 12:00:24 +01:00
parent fac8e76923
commit 96a4b3e5a5
241 changed files with 947 additions and 580 deletions
+10 -5
View File
@@ -48,12 +48,16 @@ struct V3OptionParser::Impl {
};
// Actual action classes
template <typename T> class ActionSet; // "-opt" for bool-ish, "-opt val" for int and string
template <typename BOOL> class ActionFOnOff; // "-fopt" and "-fno-opt" for bool-ish
template <typename BOOL> class ActionOnOff; // "-opt" and "-no-opt" for bool-ish
template <typename T>
class ActionSet; // "-opt" for bool-ish, "-opt val" for int and string
template <typename BOOL>
class ActionFOnOff; // "-fopt" and "-fno-opt" for bool-ish
template <typename BOOL>
class ActionOnOff; // "-opt" and "-no-opt" for bool-ish
class ActionCbCall; // Callback without argument for "-opt"
class ActionCbOnOff; // Callback for "-opt" and "-no-opt"
template <class T> class ActionCbVal; // Callback for "-opt val"
template <class T>
class ActionCbVal; // Callback for "-opt val"
class ActionCbPartialMatch; // Callback "-O3" for "-O"
class ActionCbPartialMatchVal; // Callback "-debugi-V3Options 3" for "-debugi-"
@@ -67,7 +71,8 @@ struct V3OptionParser::Impl {
// Action classes in V3OptionParser::Impl
#define V3OPTION_PARSER_DEF_ACT_CLASS(className, type, body, enType) \
template <> class V3OptionParser::Impl::className<type> final : public ActionBase<enType> { \
template <> \
class V3OptionParser::Impl::className<type> final : public ActionBase<enType> { \
type* const m_valp; /* Pointer to a option variable*/ \
\
public: \