Fixed #588 (Preprocessor: Sort the configurations)

http://sourceforge.net/apps/trac/cppcheck/ticket/588
This commit is contained in:
Slava Semushin 2009-08-15 09:35:54 +07:00
parent dfa8a2e67c
commit 19e5fdb087
2 changed files with 4 additions and 1 deletions

View File

@ -779,6 +779,8 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata)
++it;
}
ret.sort();
return ret;
}

View File

@ -118,7 +118,8 @@ private:
static std::string removeSpaceNearNL(const std::string &str);
/**
* Get all possible configurations. By looking at the ifdefs and ifndefs in filedata
* Get all possible configurations sorted in alphabetical order.
* By looking at the ifdefs and ifndefs in filedata
*/
std::list<std::string> getcfgs(const std::string &filedata);