CMake/Tests/DocTest/DocTest.cxx
Kitware Robot 7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code
Our Git commit hooks disallow modification or addition of lines with
trailing whitespace.  Wipe out all remnants of trailing whitespace
everywhere except third-party code.

Run the following shell code:

git ls-files -z -- \
 bootstrap doxygen.config '*.readme' \
 '*.c' '*.cmake' '*.cpp' '*.cxx' \
 '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
 '*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
2012-08-13 14:18:39 -04:00

34 lines
615 B
C++

#include <fstream>
#include <iostream>
#include <stdio.h>
int main ()
{
int result = 0;
// parse the dart test file
std::ifstream fin("UndefinedProperties.txt");
if(!fin)
{
fprintf(stderr,"failed to find undefined properties file");
return 1;
}
char buffer[1024];
while ( fin )
{
buffer[0] = 0;
fin.getline(buffer, 1023);
buffer[1023] = 0;
std::string line = buffer;
if(line.size() && line.find("with scope VARIABLE") == std::string::npos)
{
fprintf(stderr, "%s\n", line.c_str());
result = 1;
}
}
fin.close();
return result;
}