Skip to content

Conversation

@NShpNov
Copy link

@NShpNov NShpNov commented Oct 2, 2025

Данный плагин проходит по всем объявлениям переменных и параметров функции. Для каждого проверяет, используется ли переменная, а также смотрит на наличие атрибута [[maybe_unused]]. Если оба условия не выполнены, то он помечает переменную этим атрибутом.

Comment on lines +63 to +66
bool ParseArgs(const CompilerInstance &CI,
const std::vector<std::string> &args) override {
return true;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add option --help

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test to the global scope extern int g_value;, but don't use its variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants