[clang] [AST] Fix a warning (PR #86690)
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/86690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [AST] Fix a warning (PR #86690)
kazutakahirata wrote: > I have already merged #86661 Thanks! I'll close this one then. https://github.com/llvm/llvm-project/pull/86690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [AST] Fix a warning (PR #86690)
zahiraam wrote: I have a PR ready for it. https://github.com/llvm/llvm-project/pull/86690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [AST] Fix a warning (PR #86690)
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes This patch fixes: clang/lib/AST/TypePrinter.cpp:2307:9: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] --- Full diff: https://github.com/llvm/llvm-project/pull/86690.diff 1 Files Affected: - (modified) clang/lib/AST/TypePrinter.cpp (+4-4) ``diff diff --git a/clang/lib/AST/TypePrinter.cpp b/clang/lib/AST/TypePrinter.cpp index d9504f9dcb3899..d0ba6066fa0180 100644 --- a/clang/lib/AST/TypePrinter.cpp +++ b/clang/lib/AST/TypePrinter.cpp @@ -2303,10 +2303,10 @@ printTo(raw_ostream , ArrayRef Args, const PrintingPolicy , } else { if (!FirstArg) OS << Comma; -// Tries to print the argument with location info if exists. -printArgument(Arg, Policy, ArgOS, - TemplateParameterList::shouldIncludeTypeForArgument( - Policy, TPL, ParmIndex)); + // Tries to print the argument with location info if exists. + printArgument(Arg, Policy, ArgOS, +TemplateParameterList::shouldIncludeTypeForArgument( +Policy, TPL, ParmIndex)); } StringRef ArgString = ArgOS.str(); `` https://github.com/llvm/llvm-project/pull/86690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [AST] Fix a warning (PR #86690)
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/86690 This patch fixes: clang/lib/AST/TypePrinter.cpp:2307:9: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] >From f9b781e803e79dd3395dbb796f327923449fa3b8 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 26 Mar 2024 09:15:45 -0700 Subject: [PATCH] [AST] Fix a warning This patch fixes: clang/lib/AST/TypePrinter.cpp:2307:9: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] --- clang/lib/AST/TypePrinter.cpp | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/lib/AST/TypePrinter.cpp b/clang/lib/AST/TypePrinter.cpp index d9504f9dcb3899..d0ba6066fa0180 100644 --- a/clang/lib/AST/TypePrinter.cpp +++ b/clang/lib/AST/TypePrinter.cpp @@ -2303,10 +2303,10 @@ printTo(raw_ostream , ArrayRef Args, const PrintingPolicy , } else { if (!FirstArg) OS << Comma; -// Tries to print the argument with location info if exists. -printArgument(Arg, Policy, ArgOS, - TemplateParameterList::shouldIncludeTypeForArgument( - Policy, TPL, ParmIndex)); + // Tries to print the argument with location info if exists. + printArgument(Arg, Policy, ArgOS, +TemplateParameterList::shouldIncludeTypeForArgument( +Policy, TPL, ParmIndex)); } StringRef ArgString = ArgOS.str(); ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits