Warning, /sdk/clazy/tests/qfileinfo-exists/main.cpp.fixed.expected is written in an unsupported language. File is not indexed.

0001 #include <QtCore/QFileInfo>
0002 
0003 int test1()
0004 {
0005     if (QFileInfo::exists("foo")) // Warning
0006         return 0;
0007 
0008     if (QFileInfo::exists("foo")) // OK
0009         return 0;
0010 
0011     QFileInfo info;
0012     if (info.exists("foo")) // OK
0013         return 0;
0014 
0015     if (QFileInfo(QFile("foo")).exists()) // OK
0016         return 0;
0017 
0018     return 1;
0019 }