Skip to content

Instantly share code, notes, and snippets.

View balintkissdev's full-sized avatar

Bálint Kiss balintkissdev

View GitHub Profile
@balintkissdev
balintkissdev / .clang-tidy
Created March 15, 2021 20:04
Using clang-tidy from CMake
Checks: "bugprone-*,clang-diagnostic-*,clang-analyzer-*,modernize-*,performance-*,readability-*"
WarningsAsErrors: ""
HeaderFilterRegex: ""
CheckOptions:
- key: readability-identifier-naming.PrivateMemberSuffix
value: "_"
/**
* DOS executable header reader
*
* This programs reads the binary header of a DOS executable file and prints its contents.
*
* Header specification sources:
* http://www.fysnet.net/exehdr.htm
* http://www.delorie.com/djgpp/doc/exe/
*
* 2016- 2017 Balint Kiss
#include <iostream>
#include <fstream>
#include <cstdint>
#include <vector>
#include <stack>
#include <iterator>
enum Instruction
{
LITERAL = 0x00,