source: src/Common/CodeLocationTools.hpp @ 48f6252

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 48f6252 was f57faf6f, checked in by Andrew Beach <ajbeach@…>, 3 years ago

Added a new-ast tools for code locations. The fill pass is being used the check pass is catching lots of missing locations when you enable it.

  • Property mode set to 100644
File size: 894 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// CodeLocationTools.hpp -- Additional tools for code locations.
8//
9// Author           : Andrew Beach
10// Created On       : Fri Dec  4 15:35:00 2020
11// Last Modified By : Andrew Beach
12// Last Modified On : Fri Dec  4 16:18:00 2020
13// Update Count     : 0
14//
15
16#pragma once
17
18// Additional tools for code locations.
19
20namespace ast {
21        struct TranslationUnit;
22}
23
24/// Search the translation unit for unset code locations and print information
25/// on them. Abort if any unset code locations are found.
26void checkAllCodeLocations( ast::TranslationUnit const & unit );
27
28// Assign a nearby code-location to any unset code locations in the forest.
29void forceFillCodeLocations( ast::TranslationUnit & unit );
Note: See TracBrowser for help on using the repository browser.