r173981 - Diagnostics: Clarify name of line-length-limiting constant in r173976.

Jordan Rose jordan_rose at apple.com
Wed Jan 30 14:14:15 PST 2013


Author: jrose
Date: Wed Jan 30 16:14:15 2013
New Revision: 173981

URL: http://llvm.org/viewvc/llvm-project?rev=173981&view=rev
Log:
Diagnostics: Clarify name of line-length-limiting constant in r173976.

Thanks, Sean.

Modified:
    cfe/trunk/lib/Frontend/TextDiagnostic.cpp

Modified: cfe/trunk/lib/Frontend/TextDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/TextDiagnostic.cpp?rev=173981&r1=173980&r2=173981&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/TextDiagnostic.cpp (original)
+++ cfe/trunk/lib/Frontend/TextDiagnostic.cpp Wed Jan 30 16:14:15 2013
@@ -1098,8 +1098,8 @@ void TextDiagnostic::emitSnippetAndCaret
   unsigned ColNo = SM.getColumnNumber(FID, FileOffset);
   
   // Arbitrarily stop showing snippets when the line is too long.
-  static const unsigned MaxLineLength = 4096;
-  if (ColNo > MaxLineLength)
+  static const unsigned MaxLineLengthToPrint = 4096;
+  if (ColNo > MaxLineLengthToPrint)
     return;
 
   // Rewind from the current position to the start of the line.
@@ -1113,7 +1113,7 @@ void TextDiagnostic::emitSnippetAndCaret
     ++LineEnd;
 
   // Arbitrarily stop showing snippets when the line is too long.
-  if (LineEnd - LineStart > MaxLineLength)
+  if (LineEnd - LineStart > MaxLineLengthToPrint)
     return;
 
   // Copy the line of code into an std::string for ease of manipulation.





More information about the cfe-commits mailing list