source: src/AST/ParseNode.hpp @ 36354b1

arm-ehcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-expr
Last change on this file since 36354b1 was 14cebb7a, checked in by Andrew Beach <ajbeach@…>, 3 years ago

Removed trailing white-space in AST.

  • Property mode set to 100644
File size: 1.0 KB
Line 
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// ParseNode.hpp --
8//
9// Author           : Aaron B. Moss
10// Created On       : Wed May 8 11:00:00 2019
11// Last Modified By : Aaron B. Moss
12// Last Modified On : Wed May 8 11:00:00 2019
13// Update Count     : 1
14//
15
16#pragma once
17
18#include "Node.hpp"
19
20#include "Common/CodeLocation.h"
21
22namespace ast {
23
24        /// AST node with an included source location
25        class ParseNode : public Node {
26        public:
27                CodeLocation location;
28
29                // Default constructor is deliberately omitted, all ParseNodes must have a location.
30                // Escape hatch if needed is to explicitly pass a default-constructed location, but
31                // this should be used sparingly.
32
33                ParseNode( const CodeLocation& loc ) : Node(), location(loc) {}
34
35                ParseNode( const ParseNode& o ) = default;
36        };
37
38}
39
40// Local Variables: //
41// tab-width: 4 //
42// mode: c++ //
43// compile-command: "make install" //
44// End: //
Note: See TracBrowser for help on using the repository browser.