-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ac0589
commit 7652f47
Showing
7 changed files
with
85 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Class | ||
|
||
## 成员 / 字段 | ||
|
||
成员和字段的初始值应该在构造函数中完成,默认以成员/字段的显式定义中的值为准,否则以构造函数中的复制函数为准 | ||
|
||
成员/字段的名称为原本名称 | ||
|
||
成员/字段在内存中的存储顺序为定义的顺序 | ||
|
||
## 函数 | ||
|
||
函数不为 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// | ||
// Created by wangz on 24-8-7. | ||
// | ||
|
||
#include "Class.h" | ||
|
||
namespace Riddle{ | ||
|
||
} // Riddle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Created by wangz on 24-8-7. | ||
// | ||
|
||
#ifndef CLASS_H | ||
#define CLASS_H | ||
|
||
#include <llvm/IR/DerivedTypes.h> | ||
|
||
namespace Riddle{ | ||
|
||
class Class { | ||
public: | ||
llvm::StructType *types = nullptr; | ||
}; | ||
|
||
} // Riddle | ||
|
||
#endif //CLASS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters