Skip to content
GitLab
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
4ffed7a1
Commit
4ffed7a1
authored
Feb 05, 2009
by
Roberto Raggi
Committed by
Roberto Raggi
Feb 05, 2009
Browse files
Fixes: Parsing of #import directives.
parent
c00e3018
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/pp-engine.cpp
View file @
4ffed7a1
...
...
@@ -727,6 +727,7 @@ void Preprocessor::processDirective(TokenIterator firstToken, TokenIterator last
case
PP_INCLUDE
:
case
PP_INCLUDE_NEXT
:
case
PP_IMPORT
:
if
(
!
skipping
())
processInclude
(
d
==
PP_INCLUDE_NEXT
,
firstToken
,
lastToken
);
break
;
...
...
@@ -1069,6 +1070,8 @@ Preprocessor::PP_DIRECTIVE_TYPE Preprocessor::classifyDirective (const QByteArra
case
6
:
if
(
__directive
[
0
]
==
'i'
&&
__directive
==
"ifndef"
)
return
PP_IFNDEF
;
else
if
(
__directive
[
0
]
==
'i'
&&
__directive
==
"import"
)
return
PP_IMPORT
;
else
if
(
__directive
[
0
]
==
'd'
&&
__directive
==
"define"
)
return
PP_DEFINE
;
break
;
...
...
src/libs/cplusplus/pp-engine.h
View file @
4ffed7a1
...
...
@@ -150,6 +150,7 @@ namespace CPlusPlus {
{
PP_UNKNOWN_DIRECTIVE
,
PP_DEFINE
,
PP_IMPORT
,
PP_INCLUDE
,
PP_INCLUDE_NEXT
,
PP_ELIF
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment