Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
0a04b4df
Commit
0a04b4df
authored
Aug 19, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Front-end/Non-functional: Add some const/auto, useful for upcoming changes.
parent
b9e39120
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+2
-2
SymbolTable.h
glslang/MachineIndependent/SymbolTable.h
+2
-2
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+2
-2
No files found.
glslang/MachineIndependent/ParseHelper.cpp
View file @
0a04b4df
...
...
@@ -4844,10 +4844,10 @@ const TFunction* TParseContext::findFunction120(const TSourceLoc& loc, const TFu
// more than one function."
const
TFunction
*
candidate
=
nullptr
;
TVector
<
TFunction
*>
candidateList
;
TVector
<
const
TFunction
*>
candidateList
;
symbolTable
.
findFunctionNameList
(
call
.
getMangledName
(),
candidateList
,
builtIn
);
for
(
TVector
<
TFunction
*>::
const_iterator
it
=
candidateList
.
begin
();
it
!=
candidateList
.
end
();
++
it
)
{
for
(
auto
it
=
candidateList
.
begin
();
it
!=
candidateList
.
end
();
++
it
)
{
const
TFunction
&
function
=
*
(
*
it
);
// to even be a potential match, number of arguments has to match
...
...
glslang/MachineIndependent/SymbolTable.h
View file @
0a04b4df
...
...
@@ -357,7 +357,7 @@ public:
return
(
*
it
).
second
;
}
void
findFunctionNameList
(
const
TString
&
name
,
TVector
<
TFunction
*>&
list
)
void
findFunctionNameList
(
const
TString
&
name
,
TVector
<
const
TFunction
*>&
list
)
{
size_t
parenAt
=
name
.
find_first_of
(
'('
);
TString
base
(
name
,
0
,
parenAt
+
1
);
...
...
@@ -624,7 +624,7 @@ public:
return
false
;
}
void
findFunctionNameList
(
const
TString
&
name
,
TVector
<
TFunction
*>&
list
,
bool
&
builtIn
)
void
findFunctionNameList
(
const
TString
&
name
,
TVector
<
const
TFunction
*>&
list
,
bool
&
builtIn
)
{
// For user levels, return the set found in the first scope with a match
builtIn
=
false
;
...
...
hlsl/hlslParseHelper.cpp
View file @
0a04b4df
...
...
@@ -3549,10 +3549,10 @@ const TFunction* HlslParseContext::findFunction(const TSourceLoc& loc, const TFu
// exact match not found, look through a list of overloaded functions of the same name
const
TFunction
*
candidate
=
nullptr
;
TVector
<
TFunction
*>
candidateList
;
TVector
<
const
TFunction
*>
candidateList
;
symbolTable
.
findFunctionNameList
(
call
.
getMangledName
(),
candidateList
,
builtIn
);
for
(
TVector
<
TFunction
*>::
const_iterator
it
=
candidateList
.
begin
();
it
!=
candidateList
.
end
();
++
it
)
{
for
(
auto
it
=
candidateList
.
begin
();
it
!=
candidateList
.
end
();
++
it
)
{
const
TFunction
&
function
=
*
(
*
it
);
// to even be a potential match, number of arguments has to match
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment