[clang] a5bf486 - print user provide value in tabstop diagnostic
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Tue May 30 21:45:27 PDT 2023
Author: csmoe
Date: 2023-05-30T21:44:10-07:00
New Revision: a5bf4860eaee23c5bb7bd945516cd4d9f1873d5d
URL: https://github.com/llvm/llvm-project/commit/a5bf4860eaee23c5bb7bd945516cd4d9f1873d5d
DIFF: https://github.com/llvm/llvm-project/commit/a5bf4860eaee23c5bb7bd945516cd4d9f1873d5d.diff
LOG: 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
Added:
Modified:
clang/lib/Frontend/CompilerInvocation.cpp
Removed:
################################################################################
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index a1d836feea9d..f74bca3b33b1 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);
More information about the cfe-commits
mailing list