mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-28 18:26:54 +01:00
Change clang-format settings
This commit is contained in:
parent
38838c9a9d
commit
73595f4588
27 changed files with 356 additions and 320 deletions
16
src/op.cpp
16
src/op.cpp
|
|
@ -26,7 +26,9 @@ void Op::Fetch(Stream& stream) const {
|
|||
stream.Write(id.value());
|
||||
}
|
||||
|
||||
u16 Op::GetWordCount() const { return 1; }
|
||||
u16 Op::GetWordCount() const {
|
||||
return 1;
|
||||
}
|
||||
|
||||
bool Op::operator==(const Operand& other) const {
|
||||
if (operand_type != other.GetType()) {
|
||||
|
|
@ -100,11 +102,17 @@ void Op::Add(const std::vector<Literal>& literals) {
|
|||
}
|
||||
}
|
||||
|
||||
void Op::Add(const Operand* operand) { operands.push_back(operand); }
|
||||
void Op::Add(const Operand* operand) {
|
||||
operands.push_back(operand);
|
||||
}
|
||||
|
||||
void Op::Add(u32 integer) { Sink(LiteralNumber::Create<u32>(integer)); }
|
||||
void Op::Add(u32 integer) {
|
||||
Sink(LiteralNumber::Create<u32>(integer));
|
||||
}
|
||||
|
||||
void Op::Add(const std::string& string) { Sink(new LiteralString(string)); }
|
||||
void Op::Add(const std::string& string) {
|
||||
Sink(new LiteralString(string));
|
||||
}
|
||||
|
||||
void Op::Add(const std::vector<Id>& ids) {
|
||||
for (Id op : ids) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue