llvm-project:

Run:45017300499
Check:PR #244989: modernize-macro-to-enum
Status:ok
Time:8m33s
Warnings:142 (TP 88, FP 54, unclassified 0)
Source:llvm/llvm-project/blob/c04b00de750801238bc85f11874c66a41b61b2c5

New warnings, not in baseline (20):

VerdictLocationMessage
TPllvm/include/llvm-c/blake3.h:29:1replace macro with enum
TPllvm/include/llvm-c/blake3.h:29:9macro 'LLVM_BLAKE3_KEY_LEN' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/blake3.h:30:9macro 'LLVM_BLAKE3_OUT_LEN' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/blake3.h:31:9macro 'LLVM_BLAKE3_BLOCK_LEN' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/blake3.h:32:9macro 'LLVM_BLAKE3_CHUNK_LEN' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/blake3.h:33:9macro 'LLVM_BLAKE3_MAX_DEPTH' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Frontend/OpenMP/OMPConstants.h:75:1replace macro with enum
TPllvm/include/llvm/Frontend/OpenMP/OMPConstants.h:75:9macro 'OMP_KERNEL_ARG_VERSION' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Frontend/OpenMP/OMPConstants.h:78:1replace macro with enum
TPllvm/include/llvm/Frontend/OpenMP/OMPConstants.h:78:9macro 'OMP_KERNEL_ARG_MIN_VERSION_WITH_DYN_PTR' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Plugins/PassPlugin.h:36:1replace macro with enum
TPllvm/include/llvm/Plugins/PassPlugin.h:36:9macro 'LLVM_PLUGIN_API_VERSION' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Support/ConvertUTF.h:141:1replace macro with enum
TPllvm/include/llvm/Support/ConvertUTF.h:141:9macro 'UNI_MAX_UTF8_BYTES_PER_CODE_POINT' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Support/ConvertUTF.h:143:1replace macro with enum
TPllvm/include/llvm/Support/ConvertUTF.h:143:9macro 'UNI_UTF16_BYTE_ORDER_MARK_NATIVE' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Support/ConvertUTF.h:144:9macro 'UNI_UTF16_BYTE_ORDER_MARK_SWAPPED' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Support/ConvertUTF.h:146:1replace macro with enum
TPllvm/include/llvm/Support/ConvertUTF.h:146:9macro 'UNI_UTF32_BYTE_ORDER_MARK_NATIVE' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Support/ConvertUTF.h:147:9macro 'UNI_UTF32_BYTE_ORDER_MARK_SWAPPED' defines an integral constant; prefer an enum instead

Gone, only in baseline (18):

VerdictLocationMessage
-llvm/include/llvm/ProfileData/MemProfData.inc:43:1replace macro with enum
-llvm/include/llvm/ProfileData/MemProfData.inc:43:9macro 'MEMPROF_BUILDID_MAX_SIZE' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:76:1replace macro with enum
-llvm/include/llvm/TargetParser/PPCTargetParser.def:76:9macro 'BUILTIN_PPC_TRUE' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:77:9macro 'BUILTIN_PPC_FALSE' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:78:9macro 'USE_SYS_CONF' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:79:9macro 'SYS_CALL' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:80:9macro 'BUILTIN_PPC_UNSUPPORTED' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:82:1replace macro with enum
-llvm/include/llvm/TargetParser/PPCTargetParser.def:82:9macro 'AIX_SYSCON_IMPL_IDX' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:84:1replace macro with enum
-llvm/include/llvm/TargetParser/PPCTargetParser.def:84:9macro 'AIX_PPC7_VALUE' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:85:9macro 'AIX_PPC8_VALUE' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:86:9macro 'AIX_PPC9_VALUE' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:87:9macro 'AIX_PPC10_VALUE' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/PPCTargetParser.def:88:9macro 'AIX_PPC11_VALUE' defines an integral constant; prefer an enum instead
-llvm/include/llvm/TargetParser/X86TargetParser.def:280:1replace macro with enum
-llvm/include/llvm/TargetParser/X86TargetParser.def:280:9macro 'MAX_PRIORITY' defines an integral constant; prefer an enum instead

Unchanged, also in baseline (122):

VerdictLocationMessage
FPbuild/include/llvm/Config/abi-breaking.h:22:1replace macro with enum
FPbuild/include/llvm/Config/abi-breaking.h:22:9macro 'LLVM_ENABLE_REVERSE_ITERATION' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:28:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:28:9macro 'LLVM_HAS_ATOMICS' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:58:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:58:9macro 'LLVM_ON_UNIX' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:61:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:61:9macro 'LLVM_USE_INTEL_JITEVENTS' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:64:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:64:9macro 'LLVM_USE_OPROFILE' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:67:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:67:9macro 'LLVM_USE_PERF' defines an integral constant; prefer an enum instead
TPbuild/include/llvm/Config/llvm-config.h:70:1replace macro with enum
TPbuild/include/llvm/Config/llvm-config.h:70:9macro 'LLVM_VERSION_MAJOR' defines an integral constant; prefer an enum instead
TPbuild/include/llvm/Config/llvm-config.h:73:1replace macro with enum
TPbuild/include/llvm/Config/llvm-config.h:73:9macro 'LLVM_VERSION_MINOR' defines an integral constant; prefer an enum instead
TPbuild/include/llvm/Config/llvm-config.h:76:1replace macro with enum
TPbuild/include/llvm/Config/llvm-config.h:76:9macro 'LLVM_VERSION_PATCH' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:84:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:84:9macro 'LLVM_FORCE_ENABLE_STATS' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:96:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:96:9macro 'LLVM_ENABLE_ZLIB' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:99:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:99:9macro 'LLVM_ENABLE_ZSTD' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:108:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:108:9macro 'HAVE_SYSEXITS_H' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:127:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:127:9macro 'LLVM_UNREACHABLE_OPTIMIZE' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:130:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:130:9macro 'LLVM_ENABLE_IO_SANDBOX' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:133:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:133:9macro 'LLVM_ENABLE_DIA_SDK' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:142:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:142:9macro 'LLVM_ENABLE_TELEMETRY' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:146:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:146:9macro 'LLVM_ENABLE_DEBUGLOC_TRACKING_COVERAGE' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:150:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:150:9macro 'LLVM_ENABLE_DEBUGLOC_TRACKING_ORIGIN' defines an integral constant; prefer an enum instead
FPbuild/include/llvm/Config/llvm-config.h:153:1replace macro with enum
FPbuild/include/llvm/Config/llvm-config.h:153:9macro 'LLVM_ENABLE_ONDISK_CAS' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Basic/Version.inc:3:1replace macro with enum
FPbuild/tools/clang/include/clang/Basic/Version.inc:3:9macro 'CLANG_VERSION_MAJOR' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Basic/Version.inc:5:1replace macro with enum
FPbuild/tools/clang/include/clang/Basic/Version.inc:5:9macro 'CLANG_VERSION_MINOR' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Basic/Version.inc:6:9macro 'CLANG_VERSION_PATCHLEVEL' defines an integral constant; prefer an enum instead
TPbuild/tools/clang/include/clang/Basic/Version.inc:7:9macro 'MAX_CLANG_ABI_COMPAT_VERSION' defines an integral constant; prefer an enum instead
TPbuild/tools/clang/include/clang/Config/config.h:12:1replace macro with enum
TPbuild/tools/clang/include/clang/Config/config.h:12:9macro 'CLANG_DEFAULT_PIE_ON_LINUX' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Config/config.h:55:1replace macro with enum
FPbuild/tools/clang/include/clang/Config/config.h:55:9macro 'CLANG_HAVE_LIBXML' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Config/config.h:58:1replace macro with enum
FPbuild/tools/clang/include/clang/Config/config.h:58:9macro 'CLANG_HAVE_RLIMITS' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Config/config.h:61:1replace macro with enum
FPbuild/tools/clang/include/clang/Config/config.h:61:9macro 'CLANG_HAVE_DLFCN_H' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Config/config.h:64:1replace macro with enum
FPbuild/tools/clang/include/clang/Config/config.h:64:9macro 'CLANG_HAVE_DLADDR' defines an integral constant; prefer an enum instead
TPbuild/tools/clang/include/clang/Config/config.h:73:1replace macro with enum
TPbuild/tools/clang/include/clang/Config/config.h:73:9macro 'ENABLE_X86_RELAX_RELOCATIONS' defines an integral constant; prefer an enum instead
TPbuild/tools/clang/include/clang/Config/config.h:76:1replace macro with enum
TPbuild/tools/clang/include/clang/Config/config.h:76:9macro 'PPC_LINUX_DEFAULT_IEEELONGDOUBLE' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Config/config.h:79:1replace macro with enum
FPbuild/tools/clang/include/clang/Config/config.h:79:9macro 'CLANG_ENABLE_OBJC_REWRITER' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Config/config.h:80:9macro 'CLANG_ENABLE_STATIC_ANALYZER' defines an integral constant; prefer an enum instead
TPbuild/tools/clang/include/clang/Config/config.h:83:1replace macro with enum
TPbuild/tools/clang/include/clang/Config/config.h:83:9macro 'CLANG_SPAWN_CC1' defines an integral constant; prefer an enum instead
FPbuild/tools/clang/include/clang/Config/config.h:86:1replace macro with enum
FPbuild/tools/clang/include/clang/Config/config.h:86:9macro 'CLANG_ENABLE_CIR' defines an integral constant; prefer an enum instead
TPclang/include/clang-c/Index.h:36:1replace macro with enum
TPclang/include/clang-c/Index.h:36:9macro 'CINDEX_VERSION_MAJOR' defines an integral constant; prefer an enum instead
TPclang/include/clang-c/Index.h:37:9macro 'CINDEX_VERSION_MINOR' defines an integral constant; prefer an enum instead
FPclang/lib/AST/VTTBuilder.cpp:28:1replace macro with enum
FPclang/lib/AST/VTTBuilder.cpp:28:9macro 'DUMP_OVERRIDERS' defines an integral constant; prefer an enum instead
TPclang/lib/StaticAnalyzer/Checkers/VforkChecker.cpp:78:1replace macro with enum
TPclang/lib/StaticAnalyzer/Checkers/VforkChecker.cpp:78:9macro 'VFORK_RESULT_INVALID' defines an integral constant; prefer an enum instead
TPclang/tools/offload-arch/LevelZeroArch.cpp:19:1replace macro with enum
TPclang/tools/offload-arch/LevelZeroArch.cpp:19:9macro 'ZE_MAX_DEVICE_NAME' defines an integral constant; prefer an enum instead
TPclang/tools/offload-arch/LevelZeroArch.cpp:20:9macro 'ZE_MAX_DEVICE_UUID_SIZE' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:88:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:88:9macro 'LLVMDisassembler_VariantKind_None' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:93:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:93:9macro 'LLVMDisassembler_VariantKind_ARM_HI16' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:94:9macro 'LLVMDisassembler_VariantKind_ARM_LO16' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:99:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:99:9macro 'LLVMDisassembler_VariantKind_ARM64_PAGE' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:100:9macro 'LLVMDisassembler_VariantKind_ARM64_PAGEOFF' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:101:9macro 'LLVMDisassembler_VariantKind_ARM64_GOTPAGE' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:102:9macro 'LLVMDisassembler_VariantKind_ARM64_GOTPAGEOFF' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:103:9macro 'LLVMDisassembler_VariantKind_ARM64_TLVP' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:104:9macro 'LLVMDisassembler_VariantKind_ARM64_TLVOFF' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:127:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:127:9macro 'LLVMDisassembler_ReferenceType_InOut_None' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:130:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:130:9macro 'LLVMDisassembler_ReferenceType_In_Branch' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:132:9macro 'LLVMDisassembler_ReferenceType_In_PCrel_Load' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:135:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:135:9macro 'LLVMDisassembler_ReferenceType_In_ARM64_ADRP' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:137:9macro 'LLVMDisassembler_ReferenceType_In_ARM64_ADDXri' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:139:9macro 'LLVMDisassembler_ReferenceType_In_ARM64_LDRXui' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:141:9macro 'LLVMDisassembler_ReferenceType_In_ARM64_LDRXl' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:143:9macro 'LLVMDisassembler_ReferenceType_In_ARM64_ADR' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:146:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:146:9macro 'LLVMDisassembler_ReferenceType_Out_SymbolStub' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:148:9macro 'LLVMDisassembler_ReferenceType_Out_LitPool_SymAddr' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:150:9macro 'LLVMDisassembler_ReferenceType_Out_LitPool_CstrAddr' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:153:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:153:9macro 'LLVMDisassembler_ReferenceType_Out_Objc_CFString_Ref' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:155:9macro 'LLVMDisassembler_ReferenceType_Out_Objc_Message' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:157:9macro 'LLVMDisassembler_ReferenceType_Out_Objc_Message_Ref' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:159:9macro 'LLVMDisassembler_ReferenceType_Out_Objc_Selector_Ref' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:161:9macro 'LLVMDisassembler_ReferenceType_Out_Objc_Class_Ref' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/DisassemblerTypes.h:164:1replace macro with enum
TPllvm/include/llvm-c/DisassemblerTypes.h:164:9macro 'LLVMDisassembler_ReferenceType_DeMangled_Name' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/Error.h:29:1replace macro with enum
TPllvm/include/llvm-c/Error.h:29:9macro 'LLVMErrorSuccess' defines an integral constant; prefer an enum instead
TPllvm/include/llvm-c/Remarks.h:37:1replace macro with enum
TPllvm/include/llvm-c/Remarks.h:37:9macro 'REMARKS_API_VERSION' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/ProfileData/MemProfData.inc:36:1replace macro with enum
TPllvm/include/llvm/ProfileData/MemProfData.inc:36:9macro 'MEMPROF_RAW_VERSION' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Support/AutoConvert.h:26:1replace macro with enum
TPllvm/include/llvm/Support/AutoConvert.h:26:9macro 'CCSID_IBM_1047' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Support/AutoConvert.h:27:9macro 'CCSID_UTF_8' defines an integral constant; prefer an enum instead
TPllvm/include/llvm/Support/AutoConvert.h:28:9macro 'CCSID_ISO8859_1' defines an integral constant; prefer an enum instead

Generated from 3ddf6fa37f.