Generates a md5 hash from the lexical tokens of a C++ ignoring directives and whitespace. More...
#include "cpp_lexer.hpp"
#include <iostream>
#include <vector>
#include <sstream>
#include <cstdio>
#include <cstring>
#include "md5.h"
Go to the source code of this file.
Functions | |
void | getTokenData (const char *fname, vector< char > &vdata) |
string | getmd5hash (const char *fname, const vector< char > &vbasedata) |
int | main (int argc, char *argv[]) |
Generates a md5 hash from the lexical tokens of a C++ ignoring directives and whitespace.
If only a filename is given, will output a 16 byte string. If both filename and define are given will output a file consisting of the hashes:
#define @define2@ "@md5hash@"
Definition in file cpp-gen-md5.cpp.
string getmd5hash | ( | const char * | fname, |
const vector< char > & | vbasedata | ||
) |
Definition at line 125 of file cpp-gen-md5.cpp.
void getTokenData | ( | const char * | fname, |
vector< char > & | vdata | ||
) |
Definition at line 68 of file cpp-gen-md5.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 32 of file cpp-gen-md5.cpp.