aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractor.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-08-25 14:14:24 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-08-25 14:14:24 -0300
commit7e815bfcc41d25b2d8c7c34d1bb6bd566e4b2816 (patch)
treeb8916d220ff80dcf51e3996e82daf7d1ff61191c /apiextractor.cpp
parent30738cc5ec15ab667bf7973a157c400250178331 (diff)
- Rewind the file pointer before runing the parser.
- Fixed some code style issues.
Diffstat (limited to 'apiextractor.cpp')
-rw-r--r--apiextractor.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp
index b81689ba..153d0da3 100644
--- a/apiextractor.cpp
+++ b/apiextractor.cpp
@@ -52,23 +52,23 @@ ApiExtractor::~ApiExtractor()
delete m_builder;
}
-void ApiExtractor::addTypesystemSearchPath ( const QString& path )
+void ApiExtractor::addTypesystemSearchPath (const QString& path)
{
TypeDatabase::instance()->addTypesystemPath(path);
}
-void ApiExtractor::addTypesystemSearchPath ( const QStringList& paths )
+void ApiExtractor::addTypesystemSearchPath(const QStringList& paths)
{
foreach (QString path, paths)
addTypesystemSearchPath(path);
}
-void ApiExtractor::addIncludePath ( const QString& path )
+void ApiExtractor::addIncludePath(const QString& path)
{
m_includePaths << path;
}
-void ApiExtractor::addIncludePath ( const QStringList& paths )
+void ApiExtractor::addIncludePath(const QStringList& paths)
{
m_includePaths << paths;
}
@@ -154,6 +154,7 @@ bool ApiExtractor::run()
std::cerr << "Preprocessor failed on file: " << qPrintable(m_cppFileName);
return 1;
}
+ ppFile.seek(0);
m_builder = new AbstractMetaBuilder;
m_builder->build(&ppFile);
return true;