cpp style #line and diagnostics per-file per lint

This commit is contained in:
Noah Santschi-Cooney 2020-08-08 19:40:11 +01:00
parent c322abe9af
commit e56d182e3c
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
9 changed files with 278 additions and 138 deletions

View file

@ -1,22 +1,24 @@
#version 120
#extension GL_GOOGLE_cpp_style_line_directive : require
#line 2 "!!"
#line 1 !!
#line 1 "!!"
int sample() {
return 5;
}
#line 1 !!
#line 1 "!!"
void burger() {
// sample text
}
#line 6 !!
#line 6 "!!"
#line 1 !!
#line 1 "!!"
float test() {
return 3.0;
}
#line 8 !!
#line 4 !!
#line 8 "!!"
#line 4 "!!"
void main() {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);