github-actions[bot] wrote: <!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning: <details> <summary> You can test this locally with the following command: </summary> ``````````bash git-clang-format --diff HEAD~1 HEAD --extensions c,cpp -- clang/test/Sema/warn-jump-bypasses-init.c clang/lib/Sema/JumpDiagnostics.cpp clang/lib/Sema/SemaDecl.cpp clang/test/SemaOpenACC/no-branch-in-out.c `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Sema/JumpDiagnostics.cpp b/clang/lib/Sema/JumpDiagnostics.cpp index 8b124fa76..5017e4203 100644 --- a/clang/lib/Sema/JumpDiagnostics.cpp +++ b/clang/lib/Sema/JumpDiagnostics.cpp @@ -874,7 +874,7 @@ static bool IsCXX98CompatWarning(Sema &S, unsigned InDiagNote) { /// Returns true if a particular note should be a C++ compatibility warning in /// C mode with -Wc++-compat. -static bool IsCppCompatWarning(Sema& S, unsigned InDiagNote) { +static bool IsCppCompatWarning(Sema &S, unsigned InDiagNote) { return !S.getLangOpts().CPlusPlus && InDiagNote == diag::note_protected_by_variable_init; } `````````` </details> https://github.com/llvm/llvm-project/pull/138009 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits