Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
cee00e2e
Commit
cee00e2e
authored
Dec 4, 2008
by
Oswald Buddenhagen
Browse files
Options
Downloads
Patches
Plain Diff
Fix some error messages (re expected argument counts)
(merge aa87b75910a99a26e7ec581aa38f8982fe231ad0 from qt)
parent
daeb83cd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/proparser/profileevaluator.cpp
+8
-8
8 additions, 8 deletions
shared/proparser/profileevaluator.cpp
with
8 additions
and
8 deletions
shared/proparser/profileevaluator.cpp
+
8
−
8
View file @
cee00e2e
...
@@ -1083,7 +1083,7 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
...
@@ -1083,7 +1083,7 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
if
(
func_t
==
E_SECTION
)
{
if
(
func_t
==
E_SECTION
)
{
if
(
args
.
count
()
!=
3
&&
args
.
count
()
!=
4
)
{
if
(
args
.
count
()
!=
3
&&
args
.
count
()
!=
4
)
{
q
->
logMessage
(
format
(
"%1(var) section(var, sep, begin, end) "
q
->
logMessage
(
format
(
"%1(var) section(var, sep, begin, end) "
"requires three arguments."
).
arg
(
func
));
"requires three
or four
arguments."
).
arg
(
func
));
}
else
{
}
else
{
var
=
args
[
0
];
var
=
args
[
0
];
sep
=
args
[
1
];
sep
=
args
[
1
];
...
@@ -1116,7 +1116,7 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
...
@@ -1116,7 +1116,7 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
}
}
case
E_JOIN
:
{
case
E_JOIN
:
{
if
(
args
.
count
()
<
1
||
args
.
count
()
>
4
)
{
if
(
args
.
count
()
<
1
||
args
.
count
()
>
4
)
{
q
->
logMessage
(
format
(
"join(var, glue, before, after) requires four arguments."
));
q
->
logMessage
(
format
(
"join(var, glue, before, after) requires
one to
four arguments."
));
}
else
{
}
else
{
QString
glue
,
before
,
after
;
QString
glue
,
before
,
after
;
if
(
args
.
count
()
>=
2
)
if
(
args
.
count
()
>=
2
)
...
@@ -1132,7 +1132,7 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
...
@@ -1132,7 +1132,7 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
break
;
break
;
}
}
case
E_SPLIT
:
{
case
E_SPLIT
:
{
if
(
args
.
count
()
<
2
||
args
.
count
()
>
2
)
{
if
(
args
.
count
()
!=
2
)
{
q
->
logMessage
(
format
(
"split(var, sep) requires two arguments"
));
q
->
logMessage
(
format
(
"split(var, sep) requires two arguments"
));
}
else
{
}
else
{
QString
sep
=
args
.
at
(
1
);
QString
sep
=
args
.
at
(
1
);
...
@@ -1144,7 +1144,7 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
...
@@ -1144,7 +1144,7 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
}
}
case
E_MEMBER
:
{
case
E_MEMBER
:
{
if
(
args
.
count
()
<
1
||
args
.
count
()
>
3
)
{
if
(
args
.
count
()
<
1
||
args
.
count
()
>
3
)
{
q
->
logMessage
(
format
(
"member(var, start, end) requires three arguments."
));
q
->
logMessage
(
format
(
"member(var, start, end) requires
one to
three arguments."
));
}
else
{
}
else
{
bool
ok
=
true
;
bool
ok
=
true
;
const
QStringList
var
=
values
(
args
.
first
());
const
QStringList
var
=
values
(
args
.
first
());
...
@@ -1301,7 +1301,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
...
@@ -1301,7 +1301,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
}
}
case
CF_CONTAINS
:
{
case
CF_CONTAINS
:
{
if
(
args
.
count
()
<
2
||
args
.
count
()
>
3
)
{
if
(
args
.
count
()
<
2
||
args
.
count
()
>
3
)
{
q
->
logMessage
(
format
(
"contains(var, val) requires
at least two
arguments."
));
q
->
logMessage
(
format
(
"contains(var, val) requires
two or three
arguments."
));
ok
=
false
;
ok
=
false
;
break
;
break
;
}
}
...
@@ -1333,7 +1333,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
...
@@ -1333,7 +1333,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
}
}
case
CF_COUNT
:
{
case
CF_COUNT
:
{
if
(
args
.
count
()
!=
2
&&
args
.
count
()
!=
3
)
{
if
(
args
.
count
()
!=
2
&&
args
.
count
()
!=
3
)
{
q
->
logMessage
(
format
(
"count(var, count) requires
at least two
arguments."
));
q
->
logMessage
(
format
(
"count(var, count) requires
two or three
arguments."
));
ok
=
false
;
ok
=
false
;
break
;
break
;
}
}
...
@@ -1363,7 +1363,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
...
@@ -1363,7 +1363,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
if
(
args
.
count
()
==
2
)
{
if
(
args
.
count
()
==
2
)
{
parseInto
=
args
[
1
];
parseInto
=
args
[
1
];
}
else
if
(
args
.
count
()
!=
1
)
{
}
else
if
(
args
.
count
()
!=
1
)
{
q
->
logMessage
(
format
(
"include(file) requires one argument."
));
q
->
logMessage
(
format
(
"include(file) requires one
or two
argument
s
."
));
ok
=
false
;
ok
=
false
;
break
;
break
;
}
}
...
@@ -1381,7 +1381,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
...
@@ -1381,7 +1381,7 @@ bool ProFileEvaluator::Private::evaluateConditionalFunction(const QString &funct
QString
sarg
=
args
[
1
];
QString
sarg
=
args
[
1
];
ignore_error
=
(
sarg
.
toLower
()
==
QLatin1String
(
"true"
)
||
sarg
.
toInt
());
ignore_error
=
(
sarg
.
toLower
()
==
QLatin1String
(
"true"
)
||
sarg
.
toInt
());
}
else
if
(
args
.
count
()
!=
1
)
{
}
else
if
(
args
.
count
()
!=
1
)
{
q
->
logMessage
(
format
(
"load(feature) requires one argument."
));
q
->
logMessage
(
format
(
"load(feature) requires one
or two
argument
s
."
));
ok
=
false
;
ok
=
false
;
break
;
break
;
}
}
...
...
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