P4C
The P4 Compiler
Loading...
Searching...
No Matches
deprecated.h
1
/*
2
* Copyright 2017 VMware, Inc.
3
* SPDX-FileCopyrightText: 2017 VMware, Inc.
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef FRONTENDS_P4_DEPRECATED_H_
9
#define FRONTENDS_P4_DEPRECATED_H_
10
11
#include "frontends/common/resolveReferences/resolveReferences.h"
12
#include "ir/ir.h"
13
14
namespace
P4
{
15
20
class
Deprecated :
public
Inspector
,
public
ResolutionContext {
21
public
:
22
Deprecated() { setName(
"Deprecated"
); }
23
24
void
warnIfDeprecated(
const
IR::IAnnotated *declaration,
const
IR::Node
*errorNode);
25
26
bool
preorder(
const
IR::PathExpression *path)
override
;
27
bool
preorder(
const
IR::Type_Name *name)
override
;
28
};
29
30
}
// namespace P4
31
32
#endif
/* FRONTENDS_P4_DEPRECATED_H_ */
P4::IR::Node
Definition
node.h:53
P4::Inspector
Definition
visitor.h:418
P4
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition
applyOptionsPragmas.cpp:13
frontends
p4
deprecated.h
Generated by
1.13.2