ADT
arm-eh
ast-experimental
cleanup-dtors
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since 9131e54 was 2bb4a01, checked in by Aaron Moss <a3moss@…>, 6 years ago |
Start on new AST
|
-
Property mode
set to
100644
|
File size:
988 bytes
|
Rev | Line | |
---|
[2bb4a01] | 1 | //
|
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
|
---|
| 3 | //
|
---|
| 4 | // The contents of this file are covered under the licence agreement in the
|
---|
| 5 | // file "LICENCE" distributed with Cforall.
|
---|
| 6 | //
|
---|
| 7 | // DeclReplacer.hpp --
|
---|
| 8 | //
|
---|
| 9 | // Author : Aaron B. Moss
|
---|
| 10 | // Created On : Wed May 8 13:00:00 2019
|
---|
| 11 | // Last Modified By : Aaron B. Moss
|
---|
| 12 | // Last Modified On : Wed May 8 13:00:00 2019
|
---|
| 13 | // Update Count : 1
|
---|
| 14 | //
|
---|
| 15 |
|
---|
| 16 | #pragma once
|
---|
| 17 |
|
---|
| 18 | #include <unordered_map>
|
---|
| 19 |
|
---|
| 20 | #include "Node.hpp"
|
---|
| 21 |
|
---|
| 22 | namespace ast {
|
---|
| 23 | class DeclWithType;
|
---|
| 24 | class TypeDecl;
|
---|
| 25 |
|
---|
| 26 | namespace DeclReplacer {
|
---|
| 27 | using DeclMap = std::unordered_map< DeclWithType*, DeclWithType* >;
|
---|
| 28 | using TypeMap = std::unordered_map< TypeDecl*, TypeDecl* >;
|
---|
| 29 |
|
---|
| 30 | void replace( Node* node, const DeclMap& declMap );
|
---|
| 31 | void replace( Node* node, const TypeMap& typeMap );
|
---|
| 32 | void replace( Node* node, const DeclMap& declMap, const TypeMap& typeMap );
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | // Local Variables: //
|
---|
| 37 | // tab-width: 4 //
|
---|
| 38 | // mode: c++ //
|
---|
| 39 | // compile-command: "make install" //
|
---|
| 40 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.