mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Add cppcoreguidelines-non-private-member-variables-in-classes clang-tidy lint
Fix the warnings it emits.
This commit is contained in:
+2
-1
@@ -503,7 +503,8 @@ if(RUN_CLANG_TIDY)
|
||||
|
||||
set(CLANG_TIDY_LIB_CHECKS
|
||||
${CLANG_TIDY_COMMON_CHECKS}
|
||||
"cppcoreguidelines-avoid-goto")
|
||||
"cppcoreguidelines-avoid-goto"
|
||||
"cppcoreguidelines-non-private-member-variables-in-classes")
|
||||
|
||||
# Skip some checks for tests because they're not worth the noise (e.g. GTest
|
||||
# happens to use goto).
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
// Eval plugin conditions.
|
||||
void EvalAllConditions(ConditionEvaluator& conditionEvaluator);
|
||||
|
||||
protected:
|
||||
private:
|
||||
std::vector<Group> groups_;
|
||||
std::vector<std::string> bashTags_;
|
||||
std::unordered_map<Filename, PluginMetadata> plugins_;
|
||||
|
||||
Reference in New Issue
Block a user