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
c4fdda5b
Commit
c4fdda5b
authored
Jun 29, 2009
by
Roberto Raggi
Browse files
Compile.
parent
341a843b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/preprocessor/main.cpp
View file @
c4fdda5b
...
...
@@ -39,10 +39,9 @@ public:
void
addInclude
(
const
QString
&
absoluteFilePath
)
{
included
.
append
(
absoluteFilePath
);
}
virtual
void
sourceNeeded
(
QString
&
fileName
,
IncludeType
mode
,
unsigned
line
)
virtual
void
sourceNeeded
(
QString
&
fileName
,
IncludeType
mode
,
unsigned
)
{
// ### cache
const
QString
currentFile
=
QFile
::
decodeName
(
env
->
currentFile
);
const
QString
currentFile
=
env
->
currentFile
;
if
(
mode
==
IncludeLocal
)
{
const
QFileInfo
currentFileInfo
(
currentFile
);
...
...
@@ -115,7 +114,7 @@ int main(int argc, char *argv[])
client
.
addSystemDir
(
qgetenv
(
"QTDIR"
)
+
"/include"
);
Preprocessor
preproc
(
&
client
,
&
env
);
preproc
.
preprocess
(
QFile
::
encodeName
(
fn
)
,
code
,
/*result = */
0
);
preproc
.
preprocess
(
fn
,
code
,
/*result = */
0
);
deps
=
client
.
includedFiles
();
todo
+=
deps
;
}
...
...
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