source: src/SymTab/demangler.cc @ f47d0ad

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since f47d0ad was f47d0ad, checked in by Rob Schluntz <rschlunt@…>, 3 years ago

Change signature of cforall_demangle to be C-compatible

  • Property mode set to 100644
File size: 511 bytes
Line 
1#include "Mangler.h"
2#include <iostream>
3#include <fstream>
4using namespace std;
5
6void f(const std::string & mangleName) {
7        char * demangleName = cforall_demangle(mangleName.c_str());
8        cout << mangleName << " => " << std::flush << demangleName << endl;
9        free(demangleName);
10}
11
12int main() {
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        }
20}
Note: See TracBrowser for help on using the repository browser.