[PATCH] D55916: [clang] Replace getOS() == llvm::Triple::*BSD with isOS*BSD() [NFCI]
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 20 00:34:56 PST 2018
mgorny created this revision.
mgorny added a reviewer: krytarowski.
Herald added subscribers: jsji, atanasyan, jrtc27, fedor.sergeev, kbarton, javed.absar, nemanjai, sdardis, emaste, jyknight.
Replace multiple comparisons of getOS() value with FreeBSD, NetBSD,
OpenBSD and DragonFly with matching isOS*BSD() methods. This should
improve the consistency of coding style without changing the behavior.
Direct getOS() comparisons were left whenever used in switch or switch-
like context.
Repository:
rC Clang
https://reviews.llvm.org/D55916
Files:
lib/Basic/Targets/AArch64.cpp
lib/Basic/Targets/ARM.cpp
lib/Basic/Targets/Mips.h
lib/Basic/Targets/PPC.cpp
lib/Basic/Targets/PPC.h
lib/Basic/Targets/Sparc.h
lib/Driver/ToolChains/Arch/Mips.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/CommonArgs.cpp
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/XRayArgs.cpp
lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55916.179020.patch
Type: text/x-patch
Size: 10970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181220/744231c6/attachment-0001.bin>
More information about the cfe-commits
mailing list