1

changed a lot of small clang-tidy warnings

This commit is contained in:
churl
2022-05-23 17:06:11 +02:00
parent b78faebdc5
commit 7927220247
30 changed files with 158 additions and 190 deletions

View File

@ -13,15 +13,15 @@
#define __ISR_include__
class ISR {
private:
ISR (const ISR &copy); // Verhindere Kopieren
ISR(const ISR& copy) = delete; // Verhindere Kopieren
public:
ISR () {}
ISR() {}
// Unterbrechungsbehandlungsroutine
virtual void trigger () = 0;
virtual void trigger() = 0;
};
#endif

View File

@ -94,7 +94,7 @@ int IntDispatcher::report(unsigned int vector) {
ISR* isr = this->map[vector];
if (isr == 0) {
if constexpr (DEBUG) kout << "No ISR registered for vector " << vector << endl;
if constexpr (DEBUG) { kout << "No ISR registered for vector " << vector << endl; }
return -1;
}

View File

@ -18,7 +18,7 @@
class IntDispatcher {
private:
IntDispatcher(const IntDispatcher& copy); // Verhindere Kopieren
IntDispatcher(const IntDispatcher& copy) = delete; // Verhindere Kopieren
enum { size = 256 };
ISR* map[size];

View File

@ -20,12 +20,11 @@
class PIC {
private:
PIC(const PIC& copy); // Verhindere Kopieren
PIC(const PIC& copy) = delete; // Verhindere Kopieren
public:
PIC() {}
public:
// IRQ-Nummern von Geraeten
enum {
timer = 0, // Programmable Interrupt Timer (PIT)