Clean up C linkage specific to the C++ migration 83/4883/22
authorEvan Ramos <evan@hpccharm.com>
Fri, 4 Jan 2019 19:18:31 +0000 (13:18 -0600)
committerEvan Ramos <evan@hpccharm.com>
Fri, 26 Apr 2019 01:30:53 +0000 (20:30 -0500)
commitf5fd53dce7a34389dc1672b9edd66f1aedf1264f
tree283d15dcd8f34063be117580b8ded73e5b58c41f
parentbe1b742c031b2d9f294671148e9bd6b6c74ea8f0
Clean up C linkage specific to the C++ migration

These are the principles applied in this patch:

* Remove most instances of CMI_EXTERNC, since they were private to the
RTS and we no longer have a mix of C and C++ files.
* Replace remaining instances of CMI_EXTERNC with CLINKAGE
* Remove instances of extern "C" { } surrounding #includes
* Remove spurious instances of extern "C" at definition sites
* Ensure CLINKAGE/extern "C" is on the same line as what follows it,
whether it is a curly brace or a declaration, for improved greppability

extern "C" should always be attached to a declaration in a header in
order to avoid mismatches between definitions and callers elsewhere.

Change-Id: I4c6ef8351d53636e98cbc02e25048a851f05b790
120 files changed:
src/arch/gni/machine-persistent.C
src/arch/gni/machine-persistent.h
src/arch/gni/machine.C
src/arch/mpi/machine.C
src/arch/netlrts/machine-dgram.C
src/arch/netlrts/machine.C
src/arch/ofi/machine.C
src/arch/pami/machine.C
src/arch/pamilrts-bluegeneq/memalloc.C
src/arch/pamilrts/machine.C
src/arch/shmem/machine.C
src/arch/sim/machine.C
src/arch/template/machine.C
src/arch/uth/machine.C
src/arch/util/immediate.C
src/arch/util/machine-common-core.C
src/arch/util/machine-commthd-util.C
src/arch/util/machine-lrts.h
src/arch/util/machine-smp.C
src/arch/util/memalloc.C
src/arch/util/persist-comm.C
src/arch/verbs/machine-dgram.C
src/arch/verbs/machine-ibud.C
src/arch/verbs/machine-ibverbs.C
src/arch/verbs/machine.C
src/ck-core/ck.C
src/ck-core/ck.h
src/ck-core/ckmemcheckpoint.C
src/ck-core/debug-charm.C
src/ck-core/init.C
src/ck-core/init.h
src/ck-core/middle-conv.h
src/ck-core/mpi-interoperate.C
src/ck-ldb/AdaptiveLB.C
src/ck-ldb/BlockLB.C
src/ck-ldb/ComboCentLB.C
src/ck-ldb/CommAwareRefineLB.C
src/ck-ldb/CommLB.C
src/ck-ldb/DistributedLB.C
src/ck-ldb/DummyLB.C
src/ck-ldb/GraphBFTLB.C
src/ck-ldb/GraphPartLB.C
src/ck-ldb/GreedyAgentLB.C
src/ck-ldb/GreedyCommLB.C
src/ck-ldb/GreedyLB.C
src/ck-ldb/GreedyRefineLB.C
src/ck-ldb/GridCommLB.C
src/ck-ldb/GridCommRefineLB.C
src/ck-ldb/GridHybridLB.C
src/ck-ldb/GridHybridSeedLB.C
src/ck-ldb/GridMetisLB.C
src/ck-ldb/HybridBaseLB.C
src/ck-ldb/LBDatabase.h
src/ck-ldb/MetisLB.C
src/ck-ldb/NeighborLB.C
src/ck-ldb/NodeLevelLB.C
src/ck-ldb/NullLB.C
src/ck-ldb/OrbLB.C
src/ck-ldb/PhasebyArrayLB.C
src/ck-ldb/RandCentLB.C
src/ck-ldb/RecBipartLB.C
src/ck-ldb/RecBisectBfLB.C
src/ck-ldb/RefineCommLB.C
src/ck-ldb/RefineKLB.C
src/ck-ldb/RefineLB.C
src/ck-ldb/RefineSwapLB.C
src/ck-ldb/RefineTopoLB.C
src/ck-ldb/RotateLB.C
src/ck-ldb/ScotchLB.C
src/ck-ldb/ScotchRefineLB.C
src/ck-ldb/ScotchTopoLB.C
src/ck-ldb/TeamLB.C
src/ck-ldb/TempAwareCommLB.C
src/ck-ldb/TempAwareGreedyLB.C
src/ck-ldb/TempAwareRefineLB.C
src/ck-ldb/TopoCentLB.C
src/ck-ldb/TopoLB.C
src/ck-ldb/TreeMatchLB.C
src/ck-ldb/WSLB.C
src/ck-ldb/ZoltanLB.C
src/ck-perf/trace-common.C
src/ck-perf/trace-converse.C
src/ck-perf/trace-projections.C
src/conv-ccs/ccs-builtins.C
src/conv-ccs/conv-ccs.C
src/conv-ccs/middle-ccs.C
src/conv-core/cmipool.C
src/conv-core/cmipool.h
src/conv-core/conv-interoperate.C
src/conv-core/conv-trace.h
src/conv-core/convcore.C
src/conv-core/converse.h
src/conv-core/cpm.C
src/conv-core/cpthreads.C
src/conv-core/cpthreads.h
src/conv-core/cpuaffinity.C
src/conv-core/debug-conv.C
src/conv-core/futures.C
src/conv-core/global-elfgot.C
src/conv-core/isomalloc.C
src/conv-core/memory-charmdebug.C
src/conv-core/memory-os-wrapper.C
src/conv-core/memory.C
src/conv-core/memoryaffinity.C
src/conv-core/threads.C
src/conv-ldb/cldb.C
src/conv-ldb/cldb.neighbor.C
src/conv-ldb/cldb.prioritycentralized.C
src/conv-ldb/edgelist.C
src/conv-ldb/generate.C
src/conv-ldb/topology.C
src/conv-perf/charmProjections.C
src/langs/bluegene/bigsim_proc.C
src/langs/bluegene/blue.C
src/libs/ck-libs/ampi/ampi.C
src/libs/ck-libs/io/ckio.C
src/libs/ck-libs/io/fs_parameters.h
src/util/cmirdmautils.h
src/util/cmitls.C
src/util/topomanager/CrayNid.c