[commit: ghc] master: cpp: Use #pragma once instead of #ifndef guards (f13eebc)
git at git.haskell.org
git at git.haskell.org
Sun Apr 23 15:06:22 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f13eebcc9b1407e5aeaf010536fcb5e469dbfe71/ghc
>---------------------------------------------------------------
commit f13eebcc9b1407e5aeaf010536fcb5e469dbfe71
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Sat Apr 22 09:34:18 2017 -0400
cpp: Use #pragma once instead of #ifndef guards
This both says what we mean and silences a bunch of spurious CPP linting
warnings. This pragma is supported by all CPP implementations which we
support.
Reviewers: austin, erikd, simonmar, hvr
Reviewed By: simonmar
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3482
>---------------------------------------------------------------
f13eebcc9b1407e5aeaf010536fcb5e469dbfe71
compiler/HsVersions.h | 6 +-----
compiler/nativeGen/NCG.h | 5 +----
compiler/utils/md5.h | 8 +-------
driver/utils/isMinTTY.h | 5 +----
includes/Cmm.h | 5 +----
includes/HsFFI.h | 5 +----
includes/MachDeps.h | 5 +----
includes/Rts.h | 5 +----
includes/RtsAPI.h | 5 +----
includes/Stg.h | 5 +----
includes/ghcconfig.h | 5 +----
includes/rts/Adjustor.h | 5 +----
includes/rts/BlockSignals.h | 5 +----
includes/rts/Config.h | 5 +----
includes/rts/Constants.h | 5 +----
includes/rts/EventLogFormat.h | 5 +----
includes/rts/EventLogWriter.h | 5 +----
includes/rts/FileLock.h | 5 +----
includes/rts/Flags.h | 5 +----
includes/rts/GetTime.h | 5 +----
includes/rts/Globals.h | 5 +----
includes/rts/Hpc.h | 5 +----
includes/rts/IOManager.h | 5 +----
includes/rts/Libdw.h | 7 +------
includes/rts/LibdwPool.h | 5 +----
includes/rts/Linker.h | 5 +----
includes/rts/Main.h | 5 +----
includes/rts/Messages.h | 5 +----
includes/rts/OSThreads.h | 5 +----
includes/rts/Parallel.h | 5 +----
includes/rts/PrimFloat.h | 5 +----
includes/rts/Signals.h | 5 +----
includes/rts/SpinLock.h | 6 +-----
includes/rts/Stable.h | 5 +----
includes/rts/StaticPtrTable.h | 5 +----
includes/rts/TTY.h | 5 +----
includes/rts/Threads.h | 5 +----
includes/rts/Ticky.h | 5 +----
includes/rts/Time.h | 5 +----
includes/rts/Timer.h | 5 +----
includes/rts/Types.h | 5 +----
includes/rts/Utils.h | 5 +----
includes/rts/prof/CCS.h | 5 +----
includes/rts/prof/LDV.h | 5 +----
includes/rts/storage/Block.h | 4 +---
includes/rts/storage/ClosureMacros.h | 5 +----
includes/rts/storage/ClosureTypes.h | 5 +----
includes/rts/storage/Closures.h | 6 +-----
includes/rts/storage/FunTypes.h | 5 +----
includes/rts/storage/GC.h | 5 +----
includes/rts/storage/InfoTables.h | 5 +----
includes/rts/storage/MBlock.h | 5 +----
includes/rts/storage/TSO.h | 5 +----
includes/stg/DLL.h | 5 +----
includes/stg/HaskellMachRegs.h | 5 +----
includes/stg/MachRegs.h | 5 +----
includes/stg/MiscClosures.h | 5 +----
includes/stg/Prim.h | 5 +----
includes/stg/Regs.h | 5 +----
includes/stg/RtsMachRegs.h | 5 +----
includes/stg/SMP.h | 5 +----
includes/stg/Ticky.h | 6 +-----
includes/stg/Types.h | 5 +----
libraries/base/include/CTypes.h | 5 +----
libraries/base/include/HsBase.h | 6 +-----
libraries/base/include/HsEvent.h | 4 +---
libraries/base/include/WCsubst.h | 7 +------
libraries/base/include/consUtils.h | 5 ++---
libraries/base/include/md5.h | 8 +-------
libraries/integer-gmp/include/HsIntegerGmp.h.in | 5 +----
rts/Apply.h | 5 +----
rts/Arena.h | 5 +----
rts/AutoApply.h | 6 +-----
rts/AwaitEvent.h | 5 +----
rts/Capability.h | 5 +----
rts/CheckUnload.h | 5 +----
rts/Disassembler.h | 5 +----
rts/Excn.h | 6 +-----
rts/FileLock.h | 5 +----
rts/GetEnv.h | 5 +----
rts/GetTime.h | 5 +----
rts/Globals.h | 5 +----
rts/Hash.h | 5 +----
rts/Interpreter.h | 5 +----
rts/LdvProfile.h | 5 +----
rts/Libdw.h | 5 +----
rts/LibdwPool.h | 5 +----
rts/LinkerInternals.h | 4 +---
rts/Messages.h | 2 ++
rts/PathUtils.h | 5 +----
rts/PosixSource.h | 5 +----
rts/Prelude.h | 5 +----
rts/Printer.h | 6 +-----
rts/ProfHeap.h | 5 +----
rts/ProfilerReport.h | 5 +----
rts/ProfilerReportJson.h | 5 +----
rts/Profiling.h | 5 +----
rts/Proftimer.h | 5 +----
rts/RaiseAsync.h | 5 +----
rts/RetainerProfile.h | 5 +----
rts/RetainerSet.h | 4 +---
rts/RtsFlags.h | 5 +----
rts/RtsSignals.h | 5 +----
rts/RtsSymbolInfo.h | 5 +----
rts/RtsSymbols.h | 5 +----
rts/RtsUtils.h | 5 +----
rts/SMPClosureOps.h | 5 +----
rts/STM.h | 6 +-----
rts/Schedule.h | 5 +----
rts/Sparks.h | 5 +----
rts/Stable.h | 5 +----
rts/StaticPtrTable.h | 5 +----
rts/Stats.h | 5 +----
rts/StgPrimFloat.h | 5 +----
rts/StgRun.h | 5 +----
rts/Task.h | 5 +----
rts/ThreadLabels.h | 5 +----
rts/ThreadPaused.h | 5 +----
rts/Threads.h | 5 +----
rts/Ticker.h | 5 +----
rts/Ticky.h | 5 +----
rts/Timer.h | 5 +----
rts/TopHandler.h | 4 ++++
rts/Trace.h | 5 +----
rts/Updates.h | 5 +----
rts/WSDeque.h | 5 +----
rts/Weak.h | 6 +-----
rts/eventlog/EventLog.h | 5 +----
rts/hooks/Hooks.h | 5 +----
rts/linker/CacheFlush.h | 5 +----
rts/linker/Elf.h | 5 +----
rts/linker/M32Alloc.h | 5 +----
rts/linker/MachO.h | 5 +----
rts/linker/MachOTypes.h | 4 +---
rts/linker/PEi386.h | 5 +----
rts/linker/SymbolExtras.h | 5 +----
rts/posix/Clock.h | 5 +----
rts/posix/Select.h | 5 +----
rts/posix/Signals.h | 5 +----
rts/posix/TTY.h | 5 +----
rts/sm/BlockAlloc.h | 5 +----
rts/sm/CNF.h | 5 +----
rts/sm/Compact.h | 5 +----
rts/sm/Evac.h | 6 +-----
rts/sm/GC.h | 5 +----
rts/sm/GCTDecl.h | 5 +----
rts/sm/GCThread.h | 5 +----
rts/sm/GCUtils.h | 5 +----
rts/sm/HeapAlloc.h | 5 +----
rts/sm/MarkStack.h | 5 +----
rts/sm/MarkWeak.h | 5 +----
rts/sm/OSMem.h | 5 +----
rts/sm/Sanity.h | 5 +----
rts/sm/Scav.h | 6 +-----
rts/sm/ShouldCompact.h | 5 +----
rts/sm/Storage.h | 5 +----
rts/sm/Sweep.h | 5 +----
rts/win32/AsyncIO.h | 5 +----
rts/win32/ConsoleHandler.h | 6 ++----
rts/win32/IOManager.h | 5 +----
rts/win32/WorkQueue.h | 6 ++----
rts/win32/veh_excn.h | 6 +-----
utils/hp2ps/AreaBelow.h | 5 +----
utils/hp2ps/AuxFile.h | 5 +----
utils/hp2ps/Axes.h | 5 +----
utils/hp2ps/Curves.h | 5 +----
utils/hp2ps/Defines.h | 5 +----
utils/hp2ps/Deviation.h | 5 +----
utils/hp2ps/Dimensions.h | 5 +----
utils/hp2ps/Error.h | 5 +----
utils/hp2ps/HpFile.h | 5 +----
utils/hp2ps/Key.h | 5 +----
utils/hp2ps/Main.h | 5 +----
utils/hp2ps/Marks.h | 5 +----
utils/hp2ps/PsFile.h | 5 +----
utils/hp2ps/Reorder.h | 5 +----
utils/hp2ps/Scale.h | 5 +----
utils/hp2ps/Shade.h | 5 +----
utils/hp2ps/TopTwenty.h | 5 +----
utils/hp2ps/TraceElement.h | 5 +----
utils/hp2ps/Utilities.h | 5 +----
utils/lndir/lndir-Xos.h | 5 +----
utils/lndir/lndir-Xosdefs.h | 5 +----
183 files changed, 190 insertions(+), 741 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc f13eebcc9b1407e5aeaf010536fcb5e469dbfe71
More information about the ghc-commits
mailing list