source: src/SynTree/TopLvalue.h @ 2aab69b

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 2aab69b was 4615ac8, checked in by Andrew Beach <ajbeach@…>, 5 years ago

Added asserts and clears to make sure lvalue is only used where we expect.

  • Property mode set to 100644
File size: 942 bytes
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// TopLvalue.h -- Check and force that lvalue is only at the top of types.
8//
9// Author           : Andrew Beach
10// Created On       : Wed Jul 31 16:04:00 2019
11// Last Modified By : Andrew Beach
12// Last Modified On : Wed Aug  7 15:26:00 2019
13// Update Count     : 0
14//
15
16#include <list>
17class Declaration;
18
19void assertTopLvalue( const std::list< Declaration * > & translationUnit );
20/* Assert that all lvalue qualifiers are set on the top level.
21 *
22 * Does not return if the test fails.
23 */
24
25void clearInnerLvalue( std::list< Declaration * > & translationUnit );
26/* Make all types that are not at the top level rvalues (not-lvalues).
27 */
28
29// Local Variables: //
30// tab-width: 4 //
31// mode: c++ //
32// compile-command: "make install" //
33// End: //
34
Note: See TracBrowser for help on using the repository browser.