add .err file for eof_missing test
authorqining <qining@google.com>
Wed, 27 Apr 2016 14:17:30 +0000 (10:17 -0400)
committerqining <qining@google.com>
Wed, 27 Apr 2016 14:22:22 +0000 (10:22 -0400)
Test/baseResults/preprocessor.eof_missing.vert.err [new file with mode: 0644]
glslang/MachineIndependent/Scan.h

diff --git a/Test/baseResults/preprocessor.eof_missing.vert.err b/Test/baseResults/preprocessor.eof_missing.vert.err
new file mode 100644 (file)
index 0000000..e69de29
index 5532fc3..1cc437c 100644 (file)
@@ -122,7 +122,7 @@ public:
     // go back one character
     void unget()
     {
-        // Do not roll back if we reached the end of the file.
+        // Do not roll back once we've reached the end of the file.
         if (endOfFileReached) return;
 
         if (currentChar > 0) {
@@ -255,7 +255,9 @@ protected:
     bool singleLogical; // treats the strings as a single logical string.
                         // locations will be reported from the first string.
 
-    bool endOfFileReached; // set to true once peak() returns EndOfFile.
+    // set to true once peak() returns EndOfFile, so that we won't roll back
+    // once we've reached EndOfFile.
+    bool endOfFileReached;
 };
 
 } // end namespace glslang