Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glslang
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
deqp-deps
glslang
Commits
9a931b39
Commit
9a931b39
authored
8 years ago
by
Henrik Rydgård
Browse files
Options
Downloads
Patches
Plain Diff
Fix a large number of warnings about inconsistent usage of 'override' produced by clang
parent
907aabb6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
glslang/MachineIndependent/preprocessor/PpContext.h
+18
-18
18 additions, 18 deletions
glslang/MachineIndependent/preprocessor/PpContext.h
hlsl/hlslParseHelper.h
+9
-9
9 additions, 9 deletions
hlsl/hlslParseHelper.h
with
27 additions
and
27 deletions
glslang/MachineIndependent/preprocessor/PpContext.h
+
18
−
18
View file @
9a931b39
...
...
@@ -245,9 +245,9 @@ protected:
delete
expandedArgs
[
i
];
}
virtual
int
scan
(
TPpToken
*
);
virtual
int
getch
()
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
{
assert
(
0
);
}
virtual
int
scan
(
TPpToken
*
)
override
;
virtual
int
getch
()
override
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
override
{
assert
(
0
);
}
bool
peekPasting
()
override
{
return
prepaste
;
}
bool
endOfReplacementList
()
override
{
return
mac
->
body
.
current
>=
mac
->
body
.
data
.
size
();
}
...
...
@@ -264,7 +264,7 @@ protected:
class
tMarkerInput
:
public
tInput
{
public:
tMarkerInput
(
TPpContext
*
pp
)
:
tInput
(
pp
)
{
}
virtual
int
scan
(
TPpToken
*
)
virtual
int
scan
(
TPpToken
*
)
override
{
if
(
done
)
return
EndOfInput
;
...
...
@@ -272,17 +272,17 @@ protected:
return
marker
;
}
virtual
int
getch
()
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
{
assert
(
0
);
}
virtual
int
getch
()
override
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
override
{
assert
(
0
);
}
static
const
int
marker
=
-
3
;
};
class
tZeroInput
:
public
tInput
{
public:
tZeroInput
(
TPpContext
*
pp
)
:
tInput
(
pp
)
{
}
virtual
int
scan
(
TPpToken
*
);
virtual
int
getch
()
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
{
assert
(
0
);
}
virtual
int
scan
(
TPpToken
*
)
override
;
virtual
int
getch
()
override
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
override
{
assert
(
0
);
}
};
std
::
vector
<
tInput
*>
inputStack
;
...
...
@@ -329,9 +329,9 @@ protected:
class
tTokenInput
:
public
tInput
{
public:
tTokenInput
(
TPpContext
*
pp
,
TokenStream
*
t
,
bool
prepasting
)
:
tInput
(
pp
),
tokens
(
t
),
lastTokenPastes
(
prepasting
)
{
}
virtual
int
scan
(
TPpToken
*
);
virtual
int
getch
()
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
{
assert
(
0
);
}
virtual
int
scan
(
TPpToken
*
)
override
;
virtual
int
getch
()
override
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
override
{
assert
(
0
);
}
virtual
bool
peekPasting
()
override
;
protected
:
TokenStream
*
tokens
;
...
...
@@ -341,9 +341,9 @@ protected:
class
tUngotTokenInput
:
public
tInput
{
public:
tUngotTokenInput
(
TPpContext
*
pp
,
int
t
,
TPpToken
*
p
)
:
tInput
(
pp
),
token
(
t
),
lval
(
*
p
)
{
}
virtual
int
scan
(
TPpToken
*
);
virtual
int
getch
()
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
{
assert
(
0
);
}
virtual
int
scan
(
TPpToken
*
)
override
;
virtual
int
getch
()
override
{
assert
(
0
);
return
EndOfInput
;
}
virtual
void
ungetch
()
override
{
assert
(
0
);
}
protected
:
int
token
;
TPpToken
lval
;
...
...
@@ -355,12 +355,12 @@ protected:
class
tStringInput
:
public
tInput
{
public:
tStringInput
(
TPpContext
*
pp
,
TInputScanner
&
i
)
:
tInput
(
pp
),
input
(
&
i
)
{
}
virtual
int
scan
(
TPpToken
*
);
virtual
int
scan
(
TPpToken
*
)
override
;
// Scanner used to get source stream characters.
// - Escaped newlines are handled here, invisibly to the caller.
// - All forms of newline are handled, and turned into just a '\n'.
int
getch
()
int
getch
()
override
{
int
ch
=
input
->
get
();
...
...
@@ -398,7 +398,7 @@ protected:
// handled here, invisibly to the caller, meaning have to undo exactly
// what getch() above does (e.g., don't leave things in the middle of a
// sequence of escaped newlines).
void
ungetch
()
void
ungetch
()
override
{
input
->
unget
();
...
...
This diff is collapsed.
Click to expand it.
hlsl/hlslParseHelper.h
+
9
−
9
View file @
9a931b39
...
...
@@ -50,18 +50,18 @@ public:
const
TString
sourceEntryPointName
,
bool
forwardCompatible
=
false
,
EShMessages
messages
=
EShMsgDefault
);
virtual
~
HlslParseContext
();
void
initializeExtensionBehavior
();
void
initializeExtensionBehavior
()
override
;
void
setLimits
(
const
TBuiltInResource
&
);
bool
parseShaderStrings
(
TPpContext
&
,
TInputScanner
&
input
,
bool
versionWillBeError
=
false
);
virtual
const
char
*
getGlobalUniformBlockName
()
{
return
"$Global"
;
}
void
setLimits
(
const
TBuiltInResource
&
)
override
;
bool
parseShaderStrings
(
TPpContext
&
,
TInputScanner
&
input
,
bool
versionWillBeError
=
false
)
override
;
virtual
const
char
*
getGlobalUniformBlockName
()
override
{
return
"$Global"
;
}
void
reservedPpErrorCheck
(
const
TSourceLoc
&
,
const
char
*
/*name*/
,
const
char
*
/*op*/
)
{
}
bool
lineContinuationCheck
(
const
TSourceLoc
&
,
bool
/*endOfComment*/
)
{
return
true
;
}
bool
lineDirectiveShouldSetNextLine
()
const
{
return
true
;
}
void
reservedPpErrorCheck
(
const
TSourceLoc
&
,
const
char
*
/*name*/
,
const
char
*
/*op*/
)
override
{
}
bool
lineContinuationCheck
(
const
TSourceLoc
&
,
bool
/*endOfComment*/
)
override
{
return
true
;
}
bool
lineDirectiveShouldSetNextLine
()
const
override
{
return
true
;
}
bool
builtInName
(
const
TString
&
);
void
handlePragma
(
const
TSourceLoc
&
,
const
TVector
<
TString
>&
);
void
handlePragma
(
const
TSourceLoc
&
,
const
TVector
<
TString
>&
)
override
;
TIntermTyped
*
handleVariable
(
const
TSourceLoc
&
,
TSymbol
*
symbol
,
const
TString
*
string
);
TIntermTyped
*
handleBracketDereference
(
const
TSourceLoc
&
,
TIntermTyped
*
base
,
TIntermTyped
*
index
);
TIntermTyped
*
handleBracketOperator
(
const
TSourceLoc
&
,
TIntermTyped
*
base
,
TIntermTyped
*
index
);
...
...
@@ -134,7 +134,7 @@ public:
TIntermTyped
*
constructAggregate
(
TIntermNode
*
,
const
TType
&
,
int
,
const
TSourceLoc
&
);
TIntermTyped
*
constructBuiltIn
(
const
TType
&
,
TOperator
,
TIntermTyped
*
,
const
TSourceLoc
&
,
bool
subset
);
void
declareBlock
(
const
TSourceLoc
&
,
TType
&
,
const
TString
*
instanceName
=
0
,
TArraySizes
*
arraySizes
=
0
);
void
finalizeGlobalUniformBlockLayout
(
TVariable
&
block
);
void
finalizeGlobalUniformBlockLayout
(
TVariable
&
block
)
override
;
void
fixBlockLocations
(
const
TSourceLoc
&
,
TQualifier
&
,
TTypeList
&
,
bool
memberWithLocation
,
bool
memberWithoutLocation
);
void
fixBlockXfbOffsets
(
TQualifier
&
,
TTypeList
&
);
void
fixBlockUniformOffsets
(
const
TQualifier
&
,
TTypeList
&
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment