source: src/SymTab/demangler.cc@ b70abaf

ADT ast-experimental pthread-emulation qualifiedEnum
Last change on this file since b70abaf was c0af102, checked in by Andrew Beach <ajbeach@…>, 3 years ago

Reorganization of some demangler code so header and code file match.

  • Property mode set to 100644
File size: 515 bytes
RevLine 
[c0af102]1#include "Demangle.h"
[d1e0979]2#include <iostream>
3#include <fstream>
4using namespace std;
5
6void f(const std::string & mangleName) {
[90cac45]7 char * demangleName = cforall_demangle(mangleName.c_str(), 0);
[f47d0ad]8 cout << mangleName << " => " << std::flush << demangleName << endl;
9 free(demangleName);
[d1e0979]10}
11
12int main() {
[f47d0ad]13 ifstream in("in-demangle.txt");
14 std::string line;
15 while (getline(in, line)) {
16 if (line.empty()) { cout << "=================================" << endl; continue; }
17 else if (line[0] == '#') continue;
18 f(line);
19 }
[d1e0979]20}
Note: See TracBrowser for help on using the repository browser.