[PATCH] D151429: print user provide value in tabstop diagnostic
csmoe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 25 05:02:13 PDT 2023
csmoe created this revision.
csmoe added a reviewer: clang.
csmoe added a project: clang.
Herald added a project: All.
csmoe requested review of this revision.
Herald added a subscriber: cfe-commits.
github issue: https://github.com/llvm/llvm-project/issues/62912
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151429
Files:
clang/lib/Frontend/CompilerInvocation.cpp
Index: clang/lib/Frontend/CompilerInvocation.cpp
===================================================================
--- clang/lib/Frontend/CompilerInvocation.cpp
+++ clang/lib/Frontend/CompilerInvocation.cpp
@@ -2394,9 +2394,9 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151429.525548.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230525/f20ae3a2/attachment.bin>
More information about the cfe-commits
mailing list