summaryrefslogtreecommitdiffstats
path: root/include/clang/Frontend/DiagnosticOptions.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-13 03:06:50 +0000
committerChris Lattner <sabre@nondot.org>2010-01-13 03:06:50 +0000
commit52388f9aefba585475a38081272ce582d033c883 (patch)
tree61f3c2fc801a585d48dfa03342b10f6700bd56c1 /include/clang/Frontend/DiagnosticOptions.h
parentfa6ef180c0d3609124217387618fbb51bbdd2e48 (diff)
diagnose invalid values of -ftabstop, patch by Christian Adaker!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/DiagnosticOptions.h')
-rw-r--r--include/clang/Frontend/DiagnosticOptions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Frontend/DiagnosticOptions.h b/include/clang/Frontend/DiagnosticOptions.h
index 0220e6416e..13039bb506 100644
--- a/include/clang/Frontend/DiagnosticOptions.h
+++ b/include/clang/Frontend/DiagnosticOptions.h
@@ -37,6 +37,7 @@ public:
/// The distance between tab stops.
unsigned TabStop;
+ enum { DefaultTabStop = 8, MaxTabStop = 100 };
/// Column limit for formatting message diagnostics, or 0 if unused.
unsigned MessageLength;
@@ -52,7 +53,7 @@ public:
public:
DiagnosticOptions() {
IgnoreWarnings = 0;
- TabStop = 8;
+ TabStop = DefaultTabStop;
MessageLength = 0;
NoRewriteMacros = 0;
Pedantic = 0;