Skip to content

Commit

Permalink
[NFC] Remove unneeded semicolon after function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tclin914 committed Jun 7, 2023
1 parent 8c64923 commit d4c5b45
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Tooling/Transformer/Stencil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class SelectBoundStencil : public clang::transformer::StencilInterface {
assert(containsNoNullStencils(CaseStencils) &&
"cases of selectBound may not be null");
}
~SelectBoundStencil() override{};
~SelectBoundStencil() override {}

llvm::Error eval(const MatchFinder::MatchResult &match,
std::string *result) const override {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ArchitectureAArch64 : public Architecture {

llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }

void OverrideStopInfo(Thread &thread) const override{};
void OverrideStopInfo(Thread &thread) const override {}

const MemoryTagManager *GetMemoryTagManager() const override {
return &m_memory_tag_manager;
Expand Down
8 changes: 4 additions & 4 deletions llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class GISelKnownBits : public GISelChangeObserver {
Align computeKnownAlignment(Register R, unsigned Depth = 0);

// Observer API. No-op for non-caching implementation.
void erasingInstr(MachineInstr &MI) override{};
void createdInstr(MachineInstr &MI) override{};
void changingInstr(MachineInstr &MI) override{};
void changedInstr(MachineInstr &MI) override{};
void erasingInstr(MachineInstr &MI) override {}
void createdInstr(MachineInstr &MI) override {}
void changingInstr(MachineInstr &MI) override {}
void changedInstr(MachineInstr &MI) override {}

protected:
unsigned getMaxDepth() const { return MaxDepth; }
Expand Down
6 changes: 3 additions & 3 deletions llvm/include/llvm/Object/GOFFObjectFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class GOFFObjectFile : public ObjectFile {
bool isSymbolIndirect(DataRefImpl Symb) const;

// SectionRef.
void moveSectionNext(DataRefImpl &Sec) const override{};
void moveSectionNext(DataRefImpl &Sec) const override {}
virtual Expected<StringRef> getSectionName(DataRefImpl Sec) const override {
return StringRef();
}
Expand Down Expand Up @@ -112,15 +112,15 @@ class GOFFObjectFile : public ObjectFile {
const uint8_t *getSectionPrEsdRecord(uint32_t SectionIndex) const;

// RelocationRef.
void moveRelocationNext(DataRefImpl &Rel) const override{};
void moveRelocationNext(DataRefImpl &Rel) const override {}
uint64_t getRelocationOffset(DataRefImpl Rel) const override { return 0; }
symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override {
DataRefImpl Temp;
return basic_symbol_iterator(SymbolRef(Temp, this));
}
uint64_t getRelocationType(DataRefImpl Rel) const override { return 0; }
void getRelocationTypeName(DataRefImpl Rel,
SmallVectorImpl<char> &Result) const override{};
SmallVectorImpl<char> &Result) const override {}
};

} // namespace object
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/CSKY/CSKYAsmPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class LLVM_LIBRARY_VISIBILITY CSKYAsmPrinter : public AsmPrinter {
bool runOnMachineFunction(MachineFunction &MF) override;

// we emit constant pools customly!
void emitConstantPool() override{};
void emitConstantPool() override {}

bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
const char *ExtraCode, raw_ostream &OS) override;
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVTargetStreamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SPIRVTargetStreamer : public MCTargetStreamer {
~SPIRVTargetStreamer() override;

void changeSection(const MCSection *CurSection, MCSection *Section,
const MCExpr *SubSection, raw_ostream &OS) override{};
const MCExpr *SubSection, raw_ostream &OS) override {}
};
} // namespace llvm

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/MCTargetDesc/X86MCExpr.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class X86MCExpr : public MCTargetExpr {
return getRegNo() == E->getRegNo();
return false;
}
void visitUsedExpr(MCStreamer &Streamer) const override{};
void visitUsedExpr(MCStreamer &Streamer) const override {}
MCFragment *findAssociatedFragment() const override { return nullptr; }

// There are no TLS X86MCExprs at the moment.
Expand Down
2 changes: 1 addition & 1 deletion llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ struct VPDoubleValueDef : public VPRecipeBase {
new VPValue(nullptr, this);
}

void execute(struct VPTransformState &State) override{};
void execute(struct VPTransformState &State) override {}
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void print(raw_ostream &O, const Twine &Indent,
VPSlotTracker &SlotTracker) const override {}
Expand Down

0 comments on commit d4c5b45

Please sign in to comment.