souffle
2.0.2-371-g6315b36
ast
transform
PragmaChecker.h
Go to the documentation of this file.
1
/*
2
* Souffle - A Datalog Compiler
3
* Copyright (c) 2017, The Souffle Developers. All rights reserved.
4
* Licensed under the Universal Permissive License v 1.0 as shown at:
5
* - https://opensource.org/licenses/UPL
6
* - <souffle root>/licenses/SOUFFLE-UPL.txt
7
*/
8
9
/************************************************************************
10
*
11
* @file PragmaChecker.h
12
*
13
* Defines a transformer that applies pragmas found in parsed input.
14
*
15
***********************************************************************/
16
17
#pragma once
18
19
#include "
ast/TranslationUnit.h
"
20
#include "
ast/transform/Transformer.h
"
21
#include <string>
22
23
namespace
souffle::ast::transform
{
24
25
class
PragmaChecker :
public
Transformer {
26
public
:
27
std::string
getName
()
const override
{
28
return
"PragmaChecker"
;
29
}
30
31
PragmaChecker
*
clone
()
const override
{
32
return
new
PragmaChecker
();
33
}
34
35
private
:
36
bool
transform
(
TranslationUnit
&)
override
;
37
};
38
39
}
// namespace souffle::ast::transform
souffle::ast::transform::PragmaChecker::getName
std::string getName() const override
Definition:
PragmaChecker.h:39
TranslationUnit.h
Transformer.h
souffle::ast::transform::PragmaChecker::clone
PragmaChecker * clone() const override
Definition:
PragmaChecker.h:43
souffle::ast::TranslationUnit
Translation unit class for the translation pipeline.
Definition:
TranslationUnit.h:51
souffle::ast::transform
Definition:
Program.h:45
souffle::ast::transform::PragmaChecker::transform
bool transform(TranslationUnit &) override
Definition:
PragmaChecker.cpp:33
souffle::ast::transform::PragmaChecker
Definition:
PragmaChecker.h:31
Generated by
1.8.17