diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-08-03 17:11:51 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-08-04 13:55:15 -0300 |
commit | 1e04343e905c35efd58f85c9ba7105d209522278 (patch) | |
tree | 51138c75a597ca06fa5c321f929c560e14b9c45c /main.cpp | |
parent | 127ad5d710b3b584666efd6d939bf068b0b9d202 (diff) |
Find the package name even when no classes were found.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -317,10 +317,8 @@ int main(int argc, char *argv[]) if (!extractor.run()) return EXIT_FAILURE; - if (!extractor.classCount()) { - std::cerr << "No C++ classes found!" << std::endl; - return EXIT_FAILURE; - } + if (!extractor.classCount()) + ReportHandler::warning("No C++ classes found!"); foreach (Generator* g, generators) { g->setOutputDirectory(outputDirectory); |