diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-21 15:00:10 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-21 15:00:10 +0200 |
commit | 671a1874ba99e5e8b0910a11156372137b9f09dd (patch) | |
tree | 643dd89712cf56ca3f0bfc614f8659c122c9b9e4 /tests/manual/cplusplus/main.cpp | |
parent | f4b95586c534d2be2103f5e20d24e8a01b33b723 (diff) | |
download | qt-creator-671a1874ba99e5e8b0910a11156372137b9f09dd.tar.gz |
Fixed the output generated by CloneCG and VisitCG.
Removed CPLUSPLUS_BEGIN/END_NAMESPACE and replace CPLUSPLUS_USE_NAMESPACE with `using namespace CPlusPlus;'
Diffstat (limited to 'tests/manual/cplusplus/main.cpp')
-rw-r--r-- | tests/manual/cplusplus/main.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/manual/cplusplus/main.cpp b/tests/manual/cplusplus/main.cpp index 1fcf76ce18..63efc8b985 100644 --- a/tests/manual/cplusplus/main.cpp +++ b/tests/manual/cplusplus/main.cpp @@ -95,11 +95,9 @@ public: "#include \"AST.h\"\n" "#include \"ASTVisitor.h\"\n" "\n" - "CPLUSPLUS_BEGIN_NAMESPACE\n" << std::endl; + "using namespace CPlusPlus;\n" << std::endl; accept(ast); - - std::cout << "CPLUSPLUS_END_NAMESPACE" << std::endl; } protected: @@ -250,14 +248,12 @@ public: "\n" "#include \"AST.h\"\n" "\n" - "CPLUSPLUS_BEGIN_NAMESPACE\n" << std::endl; + "using namespace CPlusPlus;\n" << std::endl; SearchListNodes listNodes(control()); _listNodes = listNodes(ast); accept(ast); - - std::cout << "CPLUSPLUS_END_NAMESPACE" << std::endl; } protected: @@ -354,9 +350,7 @@ int main(int argc, char *argv[]) const QByteArray appFileName = QFile::encodeName(appInfo.fileName()); printf("Usage: %s [options]\n" - " --help Display this information\n" - " --test-rewriter Test the tree rewriter\n" - " --test-pretty-printer Test the pretty printer\n", + " --help Display this information\n", appFileName.constData()); return EXIT_SUCCESS; |