source: src/AST/Stmt.cpp @ d8938622

ADTarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since d8938622 was d8938622, checked in by Aaron Moss <a3moss@…>, 5 years ago

Broken GenericSubstitution? version

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[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// Stmt.cpp --
8//
9// Author           : Aaron B. Moss
[1e97287]10// Created On       : Wed May  8 13:00:00 2019
11// Last Modified By : Andrew Beach
12// Last Modified On : Wed May 15 15:53:00 2019
13// Update Count     : 2
[2bb4a01]14//
15
16#include "Stmt.hpp"
17
18#include "DeclReplacer.hpp"
19
[1e97287]20namespace ast {
21
[2bb4a01]22// --- CompoundStmt
[1e97287]23CompoundStmt::CompoundStmt( const CompoundStmt& o ) : Stmt(o), kids(o.kids) {
[d8938622]24#   warning unimplemented
[1e97287]25        assert(!"implemented");
26}
27
28// --- BranchStmt
[87701b6]29BranchStmt::BranchStmt( const CodeLocation& loc, Kind kind, Label target, std::vector<Label>&& labels )
[1e97287]30: Stmt(loc, std::move(labels)), originalTarget(target), target(target), kind(kind) {
31        // Make sure a syntax error hasn't slipped through.
32        assert( Goto != kind || !target.empty() );
33}
34
35const char * BranchStmt::kindNames[] = {
36    "Goto", "Break", "Continue", "FallThrough", "FallThroughDefault"
[87701b6]37};
[2bb4a01]38
39}
40
41// Local Variables: //
42// tab-width: 4 //
43// mode: c++ //
44// compile-command: "make install" //
45// End: //
Note: See TracBrowser for help on using the repository browser.