Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
6d8c3184
Commit
6d8c3184
authored
Feb 27, 2014
by
Adrian Negreanu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/patternMatch: break when pattern is found
Signed-off-by:
Adrian Negreanu
<
adrian.m.negreanu@intel.com
>
parent
d7f9bbed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
util.cpp
src/util.cpp
+2
-1
No files found.
src/util.cpp
View file @
6d8c3184
...
...
@@ -7445,7 +7445,7 @@ bool patternMatch(const QFileInfo &fi,const QStrList *patList)
QCString
pattern
;
for
(
it
.
toFirst
();(
pattern
=
it
.
current
());
++
it
)
{
if
(
!
pattern
.
isEmpty
()
&&
!
found
)
if
(
!
pattern
.
isEmpty
())
{
int
i
=
pattern
.
find
(
'='
);
if
(
i
!=-
1
)
pattern
=
pattern
.
left
(
i
);
// strip of the extension specific filter name
...
...
@@ -7458,6 +7458,7 @@ bool patternMatch(const QFileInfo &fi,const QStrList *patList)
found
=
found
||
re
.
match
(
fi
.
fileName
().
data
())
!=-
1
||
re
.
match
(
fi
.
filePath
().
data
())
!=-
1
||
re
.
match
(
fi
.
absFilePath
().
data
())
!=-
1
;
if
(
found
)
break
;
//printf("Matching `%s' against pattern `%s' found=%d\n",
// fi->fileName().data(),pattern.data(),found);
}
...
...
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