Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Шпынов Никита. Лабораторная работа №1 - ClangAST. Вариант №2#252

Open
NShpNov wants to merge 1 commit into
NN-complr-tech:course-spring-2025from
NShpNov:ClangAST
Open

Шпынов Никита. Лабораторная работа №1 - ClangAST. Вариант №2#252
NShpNov wants to merge 1 commit into
NN-complr-tech:course-spring-2025from
NShpNov:ClangAST

Conversation

@NShpNov
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants