Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
63c012a2
Commit
63c012a2
authored
Mar 03, 2009
by
Roberto Raggi
Browse files
Fixed: token separators.
parent
4c7e3ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/pp-engine.cpp
View file @
63c012a2
...
...
@@ -699,9 +699,16 @@ void Preprocessor::preprocess(const QByteArray &fileName, const QByteArray &sour
const
unsigned
endOfPreviousToken
=
(
_dot
-
1
)
->
end
();
const
unsigned
beginOfToken
=
_dot
->
begin
();
const
char
*
i
t
=
_source
.
constBegin
()
+
endOfPreviousToken
;
const
char
*
star
t
=
_source
.
constBegin
()
+
endOfPreviousToken
;
const
char
*
end
=
_source
.
constBegin
()
+
beginOfToken
;
const
char
*
it
=
end
-
1
;
for
(;
it
!=
start
-
1
;
--
it
)
{
if
(
*
it
==
'\n'
)
break
;
}
++
it
;
for
(;
it
!=
end
;
++
it
)
{
if
(
std
::
isspace
(
*
it
))
_result
->
append
(
*
it
);
...
...
Write
Preview
Supports
Markdown
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