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

Shishkina Valeriya. Lab #1. Var #1. #18

Merged

Conversation

ShLera04
Copy link

@ShLera04 ShLera04 commented Mar 16, 2024

As a result of the laboratory work, a plugin was written that outputs the names of all classes and their fields.
For example:

struct test1
{
    int a;
    int b;
};

Input:

test1
  |_ a
  |_ b

#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendPluginRegistry.h"

class PrintClassesVisitor : public clang::RecursiveASTVisitor<PrintClassesVisitor> {
Copy link

Choose a reason for hiding this comment

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


protected:
bool ParseArgs(const clang::CompilerInstance &Compiler,
const std::vector<std::string> &args) override {
Copy link

Choose a reason for hiding this comment

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

};

// CHECK: Test4
struct Test4{};
Copy link

Choose a reason for hiding this comment

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

Please add a test for help argument.

@m-ly4
Copy link

m-ly4 commented Mar 19, 2024

@ShLera04 Arseniy have already approved the PR. But anyway could you please fix the test?

@aobolensk aobolensk merged commit ca90c8b into NN-complr-tech:course-spring-2024 Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants