mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
Add tracking for extension based warnings
Using '#extension foo: warn' instructs the compiler to generate a warning when some feature of the extension 'foo' is used. This patch adds some infrastructure needed to support that for variables. Similar changes will be needed for types and built-in functions.
This commit is contained in:
parent
1799a0cd41
commit
c178c74c27
1 changed files with 5 additions and 0 deletions
5
ir.h
5
ir.h
|
|
@ -156,6 +156,11 @@ public:
|
|||
*/
|
||||
unsigned array_lvalue:1;
|
||||
|
||||
/**
|
||||
* Emit a warning if this variable is accessed.
|
||||
*/
|
||||
const char *warn_extension;
|
||||
|
||||
/**
|
||||
* Value assigned in the initializer of a variable declared "const"
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue