astyle formatting
This commit is contained in:
parent
a381581a8b
commit
8579270582
|
@ -68,13 +68,10 @@ static void AddInclPathsToList(const std::string& FileList, std::list<std::strin
|
|||
// to keep things initially simple, if the file can't be opened, just be
|
||||
// silent and move on
|
||||
std::ifstream Files(FileList.c_str());
|
||||
if (Files)
|
||||
{
|
||||
if (Files) {
|
||||
std::string PathName;
|
||||
while (std::getline(Files, PathName)) // next line
|
||||
{
|
||||
if (!PathName.empty())
|
||||
{
|
||||
while (std::getline(Files, PathName)) { // next line
|
||||
if (!PathName.empty()) {
|
||||
PathName = Path::fromNativeSeparators(PathName);
|
||||
PathName = Path::removeQuotationMarks(PathName);
|
||||
PathNames.push_back(PathName);
|
||||
|
@ -349,9 +346,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
|||
path += '/';
|
||||
|
||||
_settings->_includePaths.push_back(path);
|
||||
}
|
||||
else if (strncmp(argv[i], "--includes-file=", 16) == 0)
|
||||
{
|
||||
} else if (strncmp(argv[i], "--includes-file=", 16) == 0) {
|
||||
// open this file and read every input file (1 file name per line)
|
||||
AddInclPathsToList(16 + argv[i], _settings->_includePaths);
|
||||
}
|
||||
|
|
|
@ -366,8 +366,7 @@ private:
|
|||
ASSERT_EQUALS("framework/", settings._includePaths.front());
|
||||
}
|
||||
|
||||
void includesFile()
|
||||
{
|
||||
void includesFile() {
|
||||
// TODO: Fails since cannot open the file
|
||||
REDIRECT;
|
||||
const char *argv[] = {"cppcheck", "--includes-file=inclpaths.txt", "file.cpp"};
|
||||
|
|
Loading…
Reference in New Issue