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

Kuznetsov Artyom (Laboratory work №1 option №1) #5

Merged

Conversation

Kuznetsov-Artyom
Copy link

@Kuznetsov-Artyom Kuznetsov-Artyom commented Mar 11, 2024

A plugin has been implemented that outputs information about user-defined data types, as well as information about members.
Example:

struct Point3D {
  double m_x{};
  double m_y{};
  double m_z{};
};

template <typename T> struct NodeList {
  T data{};
  NodeList<T> *next{};
};

template <typename T> class CheckStaticConstTemplate {
  static const T m_member;
};

template <typename T> const T CheckStaticConstTemplate<T>::m_member{};

Result:

Point3D (struct)
|_ m_x (double|public)
|_ m_y (double|public)
|_ m_z (double|public)

NodeList (struct|template)
|_ data (T|public)
|_ next (NodeList<T> *|public)

CheckStaticConstTemplate (class|template)
|_ m_member (const T|private|static)

@Kuznetsov-Artyom
Copy link
Author

I have updated the description for the commit.

Added:

  1. Output of static class members
  2. The Human member in the User class
  3. Other tests

Other:

  1. Special output for a static class member (see the description)

Copy link

@m-ly4 m-ly4 left a comment

Choose a reason for hiding this comment

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

Thank you for applying suggestions.

@aobolensk aobolensk merged commit 84d74da into NN-complr-tech:course-spring-2024 Mar 15, 2024
arkostaa added a commit to arkostaa/llvm-nnsu-2024 that referenced this pull request Mar 18, 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