aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorcsmoe <csmoe@msn.com>2023-05-30 21:43:11 -0700
committerJan Svoboda <jan_svoboda@apple.com>2023-05-30 21:44:10 -0700
commita5bf4860eaee23c5bb7bd945516cd4d9f1873d5d (patch)
tree4689594357afb9eaaece98d5405256e15f476184 /clang/lib/Frontend/CompilerInvocation.cpp
parent3473f728b36e21d322f141e576377c20a02c9aad (diff)
downloadllvm-a5bf4860eaee23c5bb7bd945516cd4d9f1873d5d.zip
llvm-a5bf4860eaee23c5bb7bd945516cd4d9f1873d5d.tar.gz
llvm-a5bf4860eaee23c5bb7bd945516cd4d9f1873d5d.tar.bz2
print user provide value in tabstop diagnostic
github issue: https://github.com/llvm/llvm-project/issues/62912 Reviewed By: jansvoboda11 Differential Revision: https://reviews.llvm.org/D151429
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index a1d836f..f74bca3 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2394,9 +2394,9 @@ bool clang::ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args,
DiagMask = DiagnosticLevelMask::All;
Opts.setVerifyIgnoreUnexpected(DiagMask);
if (Opts.TabStop == 0 || Opts.TabStop > DiagnosticOptions::MaxTabStop) {
- Opts.TabStop = DiagnosticOptions::DefaultTabStop;
Diags->Report(diag::warn_ignoring_ftabstop_value)
<< Opts.TabStop << DiagnosticOptions::DefaultTabStop;
+ Opts.TabStop = DiagnosticOptions::DefaultTabStop;
}
addDiagnosticArgs(Args, OPT_W_Group, OPT_W_value_Group, Opts.Warnings);