Fixed #588 (Preprocessor: Sort the configurations)
http://sourceforge.net/apps/trac/cppcheck/ticket/588
This commit is contained in:
parent
dfa8a2e67c
commit
19e5fdb087
|
@ -779,6 +779,8 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata)
|
|||
++it;
|
||||
}
|
||||
|
||||
ret.sort();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue