summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/TextDiagnostic.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-01-30 22:14:15 +0000
committerJordan Rose <jordan_rose@apple.com>2013-01-30 22:14:15 +0000
commitc40b0fab068366daf35ac1507af01319783e9234 (patch)
tree8bf24e8bc2a787c3a69fa6c5b4a7935483d2bc42 /clang/lib/Frontend/TextDiagnostic.cpp
parented4a00c3ce4fa930b462c8b850dc17a540712792 (diff)
downloadbcm5719-llvm-c40b0fab068366daf35ac1507af01319783e9234.tar.gz
bcm5719-llvm-c40b0fab068366daf35ac1507af01319783e9234.zip
Diagnostics: Clarify name of line-length-limiting constant in r173976.
Thanks, Sean. llvm-svn: 173981
Diffstat (limited to 'clang/lib/Frontend/TextDiagnostic.cpp')
-rw-r--r--clang/lib/Frontend/TextDiagnostic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/TextDiagnostic.cpp b/clang/lib/Frontend/TextDiagnostic.cpp
index c2562eb5fc8..4fdc254b7ef 100644
--- a/clang/lib/Frontend/TextDiagnostic.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud