]> granicus.if.org Git - clang/commitdiff
Diagnostics: Clarify name of line-length-limiting constant in r173976.
authorJordan Rose <jordan_rose@apple.com>
Wed, 30 Jan 2013 22:14:15 +0000 (22:14 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 30 Jan 2013 22:14:15 +0000 (22:14 +0000)
Thanks, Sean.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173981 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/TextDiagnostic.cpp

index c2562eb5fc878c74ed8a9d34d762ece1e086448e..4fdc254b7ef5d56d25bf75664d0e7853acd31f43 100644 (file)
@@ -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.