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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
ebc8e66a
Commit
ebc8e66a
authored
14 years ago
by
Friedemann Kleint
Browse files
Options
Downloads
Patches
Plain Diff
Re-enable plain-c++ test.
parent
ced7e3a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/manual/manual.pro
+1
-3
1 addition, 3 deletions
tests/manual/manual.pro
tests/manual/plain-cplusplus/Preprocessor.h
+3
-2
3 additions, 2 deletions
tests/manual/plain-cplusplus/Preprocessor.h
with
4 additions
and
5 deletions
tests/manual/manual.pro
+
1
−
3
View file @
ebc8e66a
...
...
@@ -17,12 +17,10 @@ win {
unix
{
#
Uses
popen
SUBDIRS
+=
\
plain
-
cplusplus
\
#
Profile
library
paths
issues
process
\
ssh
}
#
Not
compiling
,
popen
+
missing
includes
#
SUBDIRS
+=
plain
-
cplusplus
subdir_proparser
.
file
=
proparser
/
testreader
.
pro
This diff is collapsed.
Click to expand it.
tests/manual/plain-cplusplus/Preprocessor.h
+
3
−
2
View file @
ebc8e66a
...
...
@@ -33,6 +33,7 @@
#include
<iosfwd>
#include
<vector>
#include
<map>
#include
<cstring>
namespace
CPlusPlus
{
...
...
@@ -55,7 +56,7 @@ public:
:
_text
(
text
),
_size
(
size
)
{}
StringRef
(
const
char
*
text
)
:
_text
(
text
),
_size
(
strlen
(
text
))
{}
:
_text
(
text
),
_size
(
std
::
strlen
(
text
))
{}
inline
const
char
*
text
()
const
{
return
_text
;
}
inline
unsigned
size
()
const
{
return
_size
;
}
...
...
@@ -66,7 +67,7 @@ public:
bool
operator
==
(
const
StringRef
&
other
)
const
{
if
(
_size
==
other
.
_size
)
return
_text
==
other
.
_text
||
!
strncmp
(
_text
,
other
.
_text
,
_size
);
return
_text
==
other
.
_text
||
!
std
::
strncmp
(
_text
,
other
.
_text
,
_size
);
return
false
;
}
...
...
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