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 origin/main HEAD --extensions cpp,h -- 
clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h 
clang/lib/Basic/Targets/AVR.cpp clang/lib/Driver/Job.cpp 
clang/lib/Frontend/FrontendOptions.cpp clang/lib/InstallAPI/HeaderFile.cpp 
clang/lib/Lex/PPDirectives.cpp clang/lib/Sema/CheckExprLifetime.cpp 
clang/lib/Sema/SemaDeclAttr.cpp 
clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp 
lldb/source/Plugins/ABI/LoongArch/ABISysV_loongarch.cpp 
lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp 
lldb/source/Plugins/ABI/X86/ABISysV_x86_64.cpp 
lldb/source/Plugins/ABI/X86/ABIWindows_x86_64.cpp 
llvm/include/llvm/ADT/StringSwitch.h llvm/lib/BinaryFormat/XCOFF.cpp 
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp 
llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp 
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTypeUtilities.cpp 
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp 
llvm/lib/TargetParser/ARMTargetParserCommon.cpp 
llvm/lib/TargetParser/Triple.cpp llvm/utils/TableGen/FastISelEmitter.cpp 
--diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 55ec69995..4f6c26446 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -3633,7 +3633,8 @@ static FormatAttrKind getFormatAttrKind(StringRef Format) 
{
 
       // Otherwise, check for supported formats.
       .Cases({"gnu_scanf", "scanf", "gnu_printf", "printf", "printf0",
-             "gnu_strfmon", "strfmon"}, SupportedFormat)
+              "gnu_strfmon", "strfmon"},
+             SupportedFormat)
       .Cases({"cmn_err", "vcmn_err", "zcmn_err"}, SupportedFormat)
       .Cases({"kprintf", "syslog"}, SupportedFormat) // OpenBSD.
       .Case("freebsd_kprintf", SupportedFormat)      // FreeBSD.

``````````

</details>


https://github.com/llvm/llvm-project/pull/163405
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to