cppinsights:C ++见解-借助编译器查看源代码

时间:2021-01-30 15:00:10
【文件属性】:
文件名称:cppinsights:C ++见解-借助编译器查看源代码
文件大小:454KB
文件格式:ZIP
更新时间:2021-01-30 15:00:10
cplusplus cpp llvm cpp14 ast C ++见解-借助编译器查看源代码。 内容 什么 是基于的工具,可以进行源到源的转换。 其目标是使通常在后台有意发生的事情可见。 这是关于编译器为我们做的神奇的事情。 以这段代码为例: class Base { }; class Derived : public Base { }; int main () { Derived d; Base& b = d; } 没什么特别的,它当然可以编译。 这是它的编译器视图: class Base { /* public: inline constexpr Base() noexcept; */ /* public: inline ~Base(); */ /* public: inline constexpr Base(const Base &); */ /* public: inline constexpr Base(Base &&); */ }; class Derived : public Base { /* public: inline constexpr Derived() noexcept; */ /* public:

网友评论