refactor(argparse): 将null替换为nullptr以提高C++兼容性
- 在argparse库中将所有null指针常量替换为nullptr - 更新头文件和源文件中的指针初始化和比较操作 - 修改测试文件中的相关断言检查 - 更新AST定义文件中的注释说明
This commit is contained in:
@@ -8,8 +8,8 @@ void scc_ir_type_init(scc_ir_type_t *in, scc_ir_type_tag_t tag);
|
||||
void scc_ir_bblock_init(scc_ir_bblock_t *in, const char *label);
|
||||
void scc_ir_func_init(scc_ir_func_t *in, const char *name);
|
||||
|
||||
// node name can be null ptr
|
||||
void scc_ir_node_init(scc_ir_value_t *in, const char *name,
|
||||
scc_ir_value_tag_t tag);
|
||||
// node name can be nullptr ptr
|
||||
void scc_ir_value_init(scc_ir_value_t *in, const char *name,
|
||||
scc_ir_value_tag_t tag);
|
||||
|
||||
#endif /* __SCC_IR_H__ */
|
||||
|
||||
Reference in New Issue
Block a user