diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-01-30 22:14:15 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-01-30 22:14:15 +0000 |
commit | 91165e74c8b480c1da3a719d764f4fa0e7b1b921 (patch) | |
tree | e88737701d07a5a9c20d3c9f516344db7b141635 | |
parent | 566f06311f315087a27e882aafc05cb505912c27 (diff) |
Diagnostics: Clarify name of line-length-limiting constant in r173976.
Thanks, Sean.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173981 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Frontend/TextDiagnostic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Frontend/TextDiagnostic.cpp b/lib/Frontend/TextDiagnostic.cpp index c2562eb5fc..4fdc254b7e 100644 --- a/lib/Frontend/TextDiagnostic.cpp +++ b/lib/Frontend/TextDiagnostic.cpp @@ -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. |