astyle fix

This commit is contained in:
Reijo Tomperi 2010-03-27 21:41:17 +02:00
parent e4bda66b28
commit a18c964efa
1 changed files with 23 additions and 23 deletions

View File

@ -100,7 +100,7 @@ private:
TEST_CASE(const11); // ticket #1529
TEST_CASE(const12); // ticket #1552
TEST_CASE(const13); // ticket #1519
TEST_CASE(const14);
TEST_CASE(const14);
TEST_CASE(constoperator); // operator< can often be const
TEST_CASE(constincdec); // increment/decrement => non-const
TEST_CASE(constReturnReference);
@ -2274,7 +2274,7 @@ private:
void const14()
{
// extends ticket 1519
// extends ticket 1519
checkConst("class A {\n"
"public:\n"
" A(){}\n"
@ -2304,7 +2304,7 @@ private:
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair<int ,double> GetPair() {return m_pair;}\n"
@ -2314,7 +2314,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" const pair<int ,double> & GetPair() {return m_pair;}\n"
@ -2324,7 +2324,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair<int ,double> & GetPair() {return m_pair;}\n"
@ -2363,7 +2363,7 @@ private:
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< int,vector<int> > GetPair() {return m_pair;}\n"
@ -2373,7 +2373,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" const pair< int,vector<int> >& GetPair() {return m_pair;}\n"
@ -2383,7 +2383,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< int,vector<int> >& GetPair() {return m_pair;}\n"
@ -2394,7 +2394,7 @@ private:
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< vector<int>, int > GetPair() {return m_pair;}\n"
@ -2404,7 +2404,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" const pair< vector<int>, int >& GetPair() {return m_pair;}\n"
@ -2414,7 +2414,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< vector<int>, int >& GetPair() {return m_pair;}\n"
@ -2452,7 +2452,7 @@ private:
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< vector<int>, vector<int> > GetPair() {return m_pair;}\n"
@ -2462,7 +2462,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" const pair< vector<int>, vector<int> >& GetPair() {return m_pair;}\n"
@ -2472,7 +2472,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< vector<int>, vector<int> >& GetPair() {return m_pair;}\n"
@ -2511,7 +2511,7 @@ private:
ASSERT_EQUALS("", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< pair < int, char > , int > GetPair() {return m_pair;}\n"
@ -2521,7 +2521,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" const pair< pair < int, char > , int > & GetPair() {return m_pair;}\n"
@ -2531,7 +2531,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< pair < int, char > , int > & GetPair() {return m_pair;}\n"
@ -2542,7 +2542,7 @@ private:
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< int , pair < int, char > > GetPair() {return m_pair;}\n"
@ -2552,7 +2552,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetPair' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" const pair< int , pair < int, char > > & GetPair() {return m_pair;}\n"
@ -2563,7 +2563,7 @@ private:
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" pair< int , pair < int, char > > & GetPair() {return m_pair;}\n"
@ -2601,7 +2601,7 @@ private:
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" vector<int> GetVec() {return m_Vec;}\n"
@ -2611,7 +2611,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetVec' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" const vector<int>& GetVec() {return m_Vec;}\n"
@ -2621,7 +2621,7 @@ private:
ASSERT_EQUALS("[test.cpp:4]: (style) The function 'A::GetVec' can be const\n", errout.str());
checkConst("using namespace std;"
"class A {\n"
"class A {\n"
"public:\n"
" A(){}\n"
" vector<int>& GetVec() {return m_Vec;}\n"