cpp: Use #pragma once instead of #ifndef guards
authorBen Gamari <bgamari.foss@gmail.com>
Sat, 22 Apr 2017 13:34:18 +0000 (09:34 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sun, 23 Apr 2017 15:05:48 +0000 (11:05 -0400)
commitf13eebcc9b1407e5aeaf010536fcb5e469dbfe71
tree99bb45d293b74ba0570a2555e07fed09f8c3f659
parent87fbf39a61d2535a172fbcecec098730eba1777f
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
183 files changed:
compiler/HsVersions.h
compiler/nativeGen/NCG.h
compiler/utils/md5.h
driver/utils/isMinTTY.h
includes/Cmm.h
includes/HsFFI.h
includes/MachDeps.h
includes/Rts.h
includes/RtsAPI.h
includes/Stg.h
includes/ghcconfig.h
includes/rts/Adjustor.h
includes/rts/BlockSignals.h
includes/rts/Config.h
includes/rts/Constants.h
includes/rts/EventLogFormat.h
includes/rts/EventLogWriter.h
includes/rts/FileLock.h
includes/rts/Flags.h
includes/rts/GetTime.h
includes/rts/Globals.h
includes/rts/Hpc.h
includes/rts/IOManager.h
includes/rts/Libdw.h
includes/rts/LibdwPool.h
includes/rts/Linker.h
includes/rts/Main.h
includes/rts/Messages.h
includes/rts/OSThreads.h
includes/rts/Parallel.h
includes/rts/PrimFloat.h
includes/rts/Signals.h
includes/rts/SpinLock.h
includes/rts/Stable.h
includes/rts/StaticPtrTable.h
includes/rts/TTY.h
includes/rts/Threads.h
includes/rts/Ticky.h
includes/rts/Time.h
includes/rts/Timer.h
includes/rts/Types.h
includes/rts/Utils.h
includes/rts/prof/CCS.h
includes/rts/prof/LDV.h
includes/rts/storage/Block.h
includes/rts/storage/ClosureMacros.h
includes/rts/storage/ClosureTypes.h
includes/rts/storage/Closures.h
includes/rts/storage/FunTypes.h
includes/rts/storage/GC.h
includes/rts/storage/InfoTables.h
includes/rts/storage/MBlock.h
includes/rts/storage/TSO.h
includes/stg/DLL.h
includes/stg/HaskellMachRegs.h
includes/stg/MachRegs.h
includes/stg/MiscClosures.h
includes/stg/Prim.h
includes/stg/Regs.h
includes/stg/RtsMachRegs.h
includes/stg/SMP.h
includes/stg/Ticky.h
includes/stg/Types.h
libraries/base/include/CTypes.h
libraries/base/include/HsBase.h
libraries/base/include/HsEvent.h
libraries/base/include/WCsubst.h
libraries/base/include/consUtils.h
libraries/base/include/md5.h
libraries/integer-gmp/include/HsIntegerGmp.h.in
rts/Apply.h
rts/Arena.h
rts/AutoApply.h
rts/AwaitEvent.h
rts/Capability.h
rts/CheckUnload.h
rts/Disassembler.h
rts/Excn.h
rts/FileLock.h
rts/GetEnv.h
rts/GetTime.h
rts/Globals.h
rts/Hash.h
rts/Interpreter.h
rts/LdvProfile.h
rts/Libdw.h
rts/LibdwPool.h
rts/LinkerInternals.h
rts/Messages.h
rts/PathUtils.h
rts/PosixSource.h
rts/Prelude.h
rts/Printer.h
rts/ProfHeap.h
rts/ProfilerReport.h
rts/ProfilerReportJson.h
rts/Profiling.h
rts/Proftimer.h
rts/RaiseAsync.h
rts/RetainerProfile.h
rts/RetainerSet.h
rts/RtsFlags.h
rts/RtsSignals.h
rts/RtsSymbolInfo.h
rts/RtsSymbols.h
rts/RtsUtils.h
rts/SMPClosureOps.h
rts/STM.h
rts/Schedule.h
rts/Sparks.h
rts/Stable.h
rts/StaticPtrTable.h
rts/Stats.h
rts/StgPrimFloat.h
rts/StgRun.h
rts/Task.h
rts/ThreadLabels.h
rts/ThreadPaused.h
rts/Threads.h
rts/Ticker.h
rts/Ticky.h
rts/Timer.h
rts/TopHandler.h
rts/Trace.h
rts/Updates.h
rts/WSDeque.h
rts/Weak.h
rts/eventlog/EventLog.h
rts/hooks/Hooks.h
rts/linker/CacheFlush.h
rts/linker/Elf.h
rts/linker/M32Alloc.h
rts/linker/MachO.h
rts/linker/MachOTypes.h
rts/linker/PEi386.h
rts/linker/SymbolExtras.h
rts/posix/Clock.h
rts/posix/Select.h
rts/posix/Signals.h
rts/posix/TTY.h
rts/sm/BlockAlloc.h
rts/sm/CNF.h
rts/sm/Compact.h
rts/sm/Evac.h
rts/sm/GC.h
rts/sm/GCTDecl.h
rts/sm/GCThread.h
rts/sm/GCUtils.h
rts/sm/HeapAlloc.h
rts/sm/MarkStack.h
rts/sm/MarkWeak.h
rts/sm/OSMem.h
rts/sm/Sanity.h
rts/sm/Scav.h
rts/sm/ShouldCompact.h
rts/sm/Storage.h
rts/sm/Sweep.h
rts/win32/AsyncIO.h
rts/win32/ConsoleHandler.h
rts/win32/IOManager.h
rts/win32/WorkQueue.h
rts/win32/veh_excn.h
utils/hp2ps/AreaBelow.h
utils/hp2ps/AuxFile.h
utils/hp2ps/Axes.h
utils/hp2ps/Curves.h
utils/hp2ps/Defines.h
utils/hp2ps/Deviation.h
utils/hp2ps/Dimensions.h
utils/hp2ps/Error.h
utils/hp2ps/HpFile.h
utils/hp2ps/Key.h
utils/hp2ps/Main.h
utils/hp2ps/Marks.h
utils/hp2ps/PsFile.h
utils/hp2ps/Reorder.h
utils/hp2ps/Scale.h
utils/hp2ps/Shade.h
utils/hp2ps/TopTwenty.h
utils/hp2ps/TraceElement.h
utils/hp2ps/Utilities.h
utils/lndir/lndir-Xos.h
utils/lndir/lndir-Xosdefs.h