I like C++ and would like to use it with MyNewt, so I've written a very
hacky tool in Go to detect C++ header guards:

https://github.com/Timmmm/GuardChecker

Here is the result of running it on apache-mynewt-core:

https://github.com/Timmmm/incubator-mynewt-core/commit/fec88d1c8b3f36e14eef700ab37b18ef78cd2418

It's not perfect but it seems to work ok. Check the commit message and the
GuardChecker Readme for some more details.

What do you think?

Tim


On 10 September 2016 at 01:25, Christopher Collins <[email protected]>
wrote:

> Only public headers (files in a "/include" directory) need the guards.
> Private headers (files in a "src/" directory) are only intended to be
> included by C files, and don't require them.  Not that it hurts to add
> guards to the private headers as well.
>
> Chris
>
> On Fri, Sep 09, 2016 at 04:46:44PM -0700, Peter Snyder wrote:
> > Okay, I’ll take this.
> >
> > I'm including a quick list of the files I think don’t have the C++
> wrappers. I’d appreciate any input on if there are any directories or
> specific files that should not have wrappers added (like for example,
> imported source that shouldn't be altered).
> >
> > Thanks,
> >
> > - peter
> >
>
> > ./repos/apache-mynewt-core/apps/blecent/src/blecent.h
> > ./repos/apache-mynewt-core/apps/bleprph/src/bleprph.h
> > ./repos/apache-mynewt-core/apps/bletest/src/bletest_priv.h
> > ./repos/apache-mynewt-core/apps/bletiny/src/bletiny.h
> > ./repos/apache-mynewt-core/drivers/uart_bitbang/include/
> uart_bitbang/uart_bitbang.h
> > ./repos/apache-mynewt-core/drivers/uart_bitbang/include/
> uart_bitbang/uart_bitbang_api.h
> > ./repos/apache-mynewt-core/fs/fs/include/fs/fs.h
> > ./repos/apache-mynewt-core/fs/fs/include/fs/fs_if.h
> > ./repos/apache-mynewt-core/fs/fs/include/fs/fsutil.h
> > ./repos/apache-mynewt-core/fs/fs/src/fs_priv.h
> > ./repos/apache-mynewt-core/fs/nffs/include/nffs/nffs.h
> > ./repos/apache-mynewt-core/fs/nffs/include/nffs/nffs_test.h
> > ./repos/apache-mynewt-core/fs/nffs/src/nffs_priv.h
> > ./repos/apache-mynewt-core/fs/nffs/src/test/arch/sim/nffs_test_priv.h
> >
> > ./repos/apache-mynewt-core/hw/bsp/native/include/bsp/bsp_sysid.h
> > ./repos/apache-mynewt-core/hw/hal/include/hal/hal_watchdog.h
> > ./repos/apache-mynewt-core/hw/mcu/native/include/mcu/hal_dac.h
> > ./repos/apache-mynewt-core/hw/mcu/native/include/mcu/mcu_sim.h
> > ./repos/apache-mynewt-core/hw/mcu/native/include/mcu/native_bsp.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf51xxx/include/
> mcu/compiler_abstraction.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf51xxx/include/
> mcu/cortex_m0.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf51xxx/include/mcu/nrf.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf51xxx/include/
> mcu/nrf51422_peripherals.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf51xxx/include/
> mcu/nrf51822_peripherals.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf51xxx/include/
> mcu/nrf51_bitfields.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf51xxx/include/
> mcu/nrf51_deprecated.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf52xxx/include/
> mcu/compiler_abstraction.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf52xxx/include/
> mcu/cortex_m4.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf52xxx/include/mcu/nrf.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf52xxx/include/
> mcu/nrf51_to_nrf52.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf52xxx/include/
> mcu/nrf52832_peripherals.h
> > ./repos/apache-mynewt-core/hw/mcu/nordic/nrf52xxx/include/
> mcu/nrf52_bitfields.h
> > ./repos/apache-mynewt-core/hw/mcu/stm/stm32f4xx/include/mcu/cortex_m4.h
> > ./repos/apache-mynewt-core/hw/mcu/stm/stm32f4xx/include/mcu/
> stm32f4_bsp.h
> > ./repos/apache-mynewt-core/libs/baselibc/include/assert.h
> > ./repos/apache-mynewt-core/libs/baselibc/include/ctype.h
> > ./repos/apache-mynewt-core/libs/baselibc/include/klibc/inline.h
> > ./repos/apache-mynewt-core/libs/baselibc/include/stdio.h
> > ./repos/apache-mynewt-core/libs/baselibc/include/stdlib.h
> > ./repos/apache-mynewt-core/libs/baselibc/include/string.h
> > ./repos/apache-mynewt-core/libs/baselibc/src/baselibc_test/unittests.h
> > ./repos/apache-mynewt-core/libs/baselibc/src/malloc.h
> > ./repos/apache-mynewt-core/libs/bleuart/include/bleuart/bleuart.h
> > ./repos/apache-mynewt-core/libs/boot_serial/include/boot_
> serial/boot_serial.h
> > ./repos/apache-mynewt-core/libs/boot_serial/src/boot_serial_priv.h
> > ./repos/apache-mynewt-core/libs/bootutil/include/
> bootutil/bootutil_misc.h
> > ./repos/apache-mynewt-core/libs/bootutil/include/
> bootutil/bootutil_test.h
> > ./repos/apache-mynewt-core/libs/bootutil/include/bootutil/image.h
> > ./repos/apache-mynewt-core/libs/bootutil/include/bootutil/loader.h
> > ./repos/apache-mynewt-core/libs/bootutil/include/bootutil/sign_key.h
> > ./repos/apache-mynewt-core/libs/bootutil/src/bootutil_priv.h
> > ./repos/apache-mynewt-core/libs/cmsis-core/include/cmsis-
> core/core_caFunc.h
> > ./repos/apache-mynewt-core/libs/cmsis-core/include/cmsis-
> core/core_caInstr.h
> > ./repos/apache-mynewt-core/libs/cmsis-core/include/cmsis-
> core/core_cmFunc.h
> > ./repos/apache-mynewt-core/libs/cmsis-core/include/cmsis-
> core/core_cmInstr.h
> > ./repos/apache-mynewt-core/libs/console/full/include/console/console.h
> > ./repos/apache-mynewt-core/libs/console/full/include/console/prompt.h
> > ./repos/apache-mynewt-core/libs/console/stub/include/console/console.h
> > ./repos/apache-mynewt-core/libs/console/stub/include/
> console/console_prompt.h
> > ./repos/apache-mynewt-core/libs/crash_test/include/crash_
> test/crash_test.h
> > ./repos/apache-mynewt-core/libs/crash_test/src/crash_test_priv.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/include/elua_base/elua.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lapi.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lauxlib.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lcode.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/ldebug.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/ldo.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/legc.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lfunc.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lgc.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/llex.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/llimits.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lmem.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lobject.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lopcodes.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lparser.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lrodefs.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lrotable.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lstate.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lstring.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/ltable.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/ltm.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lua.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lualib.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lundump.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lvm.h
> > ./repos/apache-mynewt-core/libs/elua/elua_base/src/lzio.h
> > ./repos/apache-mynewt-core/libs/flash_test/include/flash_
> test/flash_test.h
> > ./repos/apache-mynewt-core/libs/imgmgr/include/imgmgr/imgmgr.h
> > ./repos/apache-mynewt-core/libs/imgmgr/src/imgmgr_priv.h
> > ./repos/apache-mynewt-core/libs/inet_def_service/include/
> inet_def_service/inet_def_service.h
> > ./repos/apache-mynewt-core/libs/json/include/json/json.h
> > ./repos/apache-mynewt-core/libs/json/src/test/test_json.h
> > ./repos/apache-mynewt-core/libs/mbedtls/include/mbedtls/bn_mul.h
> > ./repos/apache-mynewt-core/libs/mbedtls/include/mbedtls/check_config.h
> > ./repos/apache-mynewt-core/libs/mbedtls/include/mbedtls/compat-1.3.h
> > ./repos/apache-mynewt-core/libs/mbedtls/include/mbedtls/config.h
> > ./repos/apache-mynewt-core/libs/mbedtls/include/mbedtls/config_mynewt.h
> > ./repos/apache-mynewt-core/libs/mbedtls/include/mbedtls/mbedtls_test.h
> > ./repos/apache-mynewt-core/libs/mbedtls/include/mbedtls/pk_internal.h
> > ./repos/apache-mynewt-core/libs/newtmgr/include/newtmgr/newtmgr.h
> > ./repos/apache-mynewt-core/libs/newtmgr/src/newtmgr_priv.h
> > ./repos/apache-mynewt-core/libs/newtmgr/transport/ble/
> include/nmgrble/newtmgr_ble.h
> > ./repos/apache-mynewt-core/libs/os/include/os/arch/
> cortex_m0/os/os_arch.h
> > ./repos/apache-mynewt-core/libs/os/include/os/arch/
> cortex_m4/os/os_arch.h
> > ./repos/apache-mynewt-core/libs/os/include/os/arch/sim/os/os_arch.h
> > ./repos/apache-mynewt-core/libs/os/include/os/endian.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_callout.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_cfg.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_eventq.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_heap.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_malloc.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_mbuf.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_mempool.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_mutex.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_sanity.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_sched.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_sem.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_task.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_test.h
> > ./repos/apache-mynewt-core/libs/os/include/os/os_time.h
> > ./repos/apache-mynewt-core/libs/os/include/os/queue.h
> > ./repos/apache-mynewt-core/libs/os/src/os_priv.h
> > ./repos/apache-mynewt-core/libs/os/src/test/os_test_priv.h
> > ./repos/apache-mynewt-core/libs/shell/include/shell/shell.h
> > ./repos/apache-mynewt-core/libs/shell/include/shell/shell_prompt.h
> > ./repos/apache-mynewt-core/libs/shell/src/shell_priv.h
> > ./repos/apache-mynewt-core/libs/split/include/split/split.h
> > ./repos/apache-mynewt-core/libs/split/include/split/split_priv.h
> > ./repos/apache-mynewt-core/libs/testreport/include/
> testreport/testreport.h
> > ./repos/apache-mynewt-core/libs/testreport/src/testreport_priv.h
> > ./repos/apache-mynewt-core/libs/testutil/include/testutil/testutil.h
> > ./repos/apache-mynewt-core/libs/testutil/src/testutil_priv.h
> > ./repos/apache-mynewt-core/libs/util/include/util/base64.h
> > ./repos/apache-mynewt-core/libs/util/include/util/cbmem.h
> > ./repos/apache-mynewt-core/libs/util/include/util/crc16.h
> > ./repos/apache-mynewt-core/libs/util/include/util/crc8.h
> > ./repos/apache-mynewt-core/libs/util/include/util/datetime.h
> > ./repos/apache-mynewt-core/libs/util/include/util/hex.h
> > ./repos/apache-mynewt-core/libs/util/include/util/mem.h
> > ./repos/apache-mynewt-core/libs/util/include/util/tpq.h
> > ./repos/apache-mynewt-core/libs/util/include/util/util.h
> > ./repos/apache-mynewt-core/libs/util/src/test/util_test_priv.h
> > ./repos/apache-mynewt-core/libs/wifi_mgmt/include/wifi_mgmt/wifi_mgmt.h
> > ./repos/apache-mynewt-core/libs/wifi_mgmt/include/wifi_
> mgmt/wifi_mgmt_if.h
> > ./repos/apache-mynewt-core/libs/wifi_mgmt/src/wifi_priv.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_hw.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll_adv.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll_conn.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll_ctrl.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll_hci.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll_resolv.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll_scan.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll_sched.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_ll_whitelist.h
> > ./repos/apache-mynewt-core/net/nimble/controller/include/
> controller/ble_phy.h
> > ./repos/apache-mynewt-core/net/nimble/controller/src/ble_ll_conn_priv.h
> > ./repos/apache-mynewt-core/net/nimble/drivers/native/include/ble/xcvr.h
> > ./repos/apache-mynewt-core/net/nimble/drivers/nrf51/include/ble/xcvr.h
> > ./repos/apache-mynewt-core/net/nimble/drivers/nrf52/include/ble/xcvr.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_att.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_eddystone.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_gap.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_gatt.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_hs.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_hs_adv.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_hs_id.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_hs_log.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_hs_mbuf.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_hs_test.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_ibeacon.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_l2cap.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_sm.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_store.h
> > ./repos/apache-mynewt-core/net/nimble/host/include/host/ble_uuid.h
> > ./repos/apache-mynewt-core/net/nimble/host/services/gap/
> include/services/gap/ble_svc_gap.h
> > ./repos/apache-mynewt-core/net/nimble/host/services/gatt/
> include/services/gatt/ble_svc_gatt.h
> > ./repos/apache-mynewt-core/net/nimble/host/services/lls/
> include/services/lls/ble_svc_lls.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_att_cmd_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_att_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_gap_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_gatt_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_adv_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_atomic_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_conn_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_dbg_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_endian_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_hci_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_id_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_mbuf_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_pvcy_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_hs_startup_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_l2cap_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_l2cap_sig_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_sm_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/ble_uuid_priv.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/test/ble_hs_test_util.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/test/ble_
> hs_test_util_store.h
> > ./repos/apache-mynewt-core/net/nimble/host/src/test/ble_sm_test_util.h
> > ./repos/apache-mynewt-core/net/nimble/host/store/ram/
> include/store/ram/ble_store_ram.h
> > ./repos/apache-mynewt-core/net/nimble/include/nimble/ble.h
> > ./repos/apache-mynewt-core/net/nimble/include/nimble/ble_hci_trans.h
> > ./repos/apache-mynewt-core/net/nimble/include/nimble/hci_common.h
> > ./repos/apache-mynewt-core/net/nimble/include/nimble/nimble_opt.h
> > ./repos/apache-mynewt-core/net/nimble/include/nimble/nimble_opt_auto.h
> > ./repos/apache-mynewt-core/net/nimble/transport/ram/
> include/transport/ram/ble_hci_ram.h
> > ./repos/apache-mynewt-core/net/nimble/transport/uart/
> include/transport/uart/ble_hci_uart.h
> > ./repos/apache-mynewt-core/sys/config/include/config/config.h
> > ./repos/apache-mynewt-core/sys/config/include/config/config_fcb.h
> > ./repos/apache-mynewt-core/sys/config/include/config/config_file.h
> > ./repos/apache-mynewt-core/sys/config/src/config_priv.h
> > ./repos/apache-mynewt-core/sys/config/src/test/conf_test.h
> > ./repos/apache-mynewt-core/sys/config/src/test/config_test.h
> > ./repos/apache-mynewt-core/sys/fcb/include/fcb/fcb.h
> > ./repos/apache-mynewt-core/sys/fcb/src/fcb_priv.h
> > ./repos/apache-mynewt-core/sys/id/include/id/id.h
> > ./repos/apache-mynewt-core/sys/log/include/log/ignore.h
> > ./repos/apache-mynewt-core/sys/log/include/log/log.h
> > ./repos/apache-mynewt-core/sys/mn_socket/include/mn_socket/mn_socket.h
> > ./repos/apache-mynewt-core/sys/mn_socket/include/mn_
> socket/mn_socket_ops.h
> > ./repos/apache-mynewt-core/sys/reboot/include/reboot/log_reboot.h
> > ./repos/apache-mynewt-core/sys/stats/include/stats/stats.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/include/
> mcu/cortex_m0.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/include/mcu/hal_adc.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/include/mcu/hal_i2c.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/include/mcu/hal_pwm.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/include/mcu/hal_spi.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> common/utils/interrupt.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> common/utils/parts.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/bod/bod.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/dma/module_config/conf_dma.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/extint/module_config/conf_extint.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/rtc/rtc_tamper.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/sercom/sercom_pinout.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/sercom/spi/module_config/conf_spi.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/sercom/spi_master_vec/module-config/conf_spi.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/sercom/spi_master_vec/module-config/conf_spi_master_vec.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/system/clock/clock.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/system/clock/clock_samd21_r21_da/clock_config_check.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/system/clock/clock_samd21_r21_da/module_config/conf_clocks.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/system/interrupt/system_interrupt_samd21/
> system_interrupt_features.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/drivers/system/interrupt/system_interrupt_samda/system_
> interrupt_features.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/ac.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/adc.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/dac.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/dmac.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/dsu.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/eic.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/evsys.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/gclk.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/hmatrixb.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/i2s.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/mtb.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/nvmctrl.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/pac.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/pm.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/port.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/rtc.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/sercom.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/sysctrl.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/tc.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/tcc.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/tcc_lighting.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/usb.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/component/wdt.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/ac.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/ac1.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/adc.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/dac.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/dmac.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/dsu.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/eic.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/evsys.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/gclk.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/i2s.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/mtb.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/nvmctrl.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/pac0.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/pac1.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/pac2.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/pm.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/port.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/rtc.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/sbmatrix.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/sercom0.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/sercom1.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/sercom2.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/sercom3.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/sercom4.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/sercom5.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/sysctrl.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/tc3.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/tc4.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/tc5.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/tc6.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/tc7.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/tcc0.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/tcc1.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/tcc2.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/usb.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/instance/wdt.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e15a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e15b.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e15bu.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e15l.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e16a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e16b.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e16bu.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e16l.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e17a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21e18a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g15a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g15b.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g15l.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g16a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g16b.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g16l.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g17a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g17au.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g18a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21g18au.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21j15a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21j15b.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21j16a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21j16b.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21j17a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/pio/samd21j18a.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/cmsis/samd21/include/samd21.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/header_files/io.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/preprocessor/mrecursion.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/preprocessor/mrepeat.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/preprocessor/preprocessor.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/preprocessor/stringz.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/preprocessor/tpaste.h
> > ./repos/mynewt_arduino_zero/hw/mcu/atmel/samd21xx/src/
> sam0/utils/status_codes.h
> > ./repos/mynewt_arduino_zero/libs/arduino_test/include/
> arduino_test/arduino_test.h
> > ./repos/mynewt_arduino_zero/libs/espduino/include/espduino/espduino.h
> > ./repos/mynewt_arduino_zero/libs/espduino/include/espduino/rest.h
> > ./repos/mynewt_arduino_zero/libs/winc1500/include/
> winc1500/common/nm_debug.h
> > ./repos/mynewt_arduino_zero/libs/winc1500/src/winc1500_priv.h
>
> >
> >
> >
> > > On Sep 9, 2016, at 10:09 AM, Sterling Hughes <[email protected]>
> wrote:
> > >
> > > PS: if anyone wants to volunteer to do this work, I’m more than happy
> to cede responsibility :-)
> > >
> > > On 9 Sep 2016, at 10:08, Sterling Hughes wrote:
> > >
> > >> Hey,
> > >>
> > >> In our coding style we’ve agreed to be C++ friendly:
> > >>
> > >> https://github.com/apache/incubator-mynewt-core/blob/
> master/CODING_STANDARDS.md
> > >>
> > >> But being that none of us really do C++ on a daily basis, we’ve been
> fairly lax in enforcing this.  I’m thinking we should make all our header
> files C++ friendly prior to beta 1 (and fix any remaining problems prior to
> rel.)  (*)
> > >>
> > >> As a part of that, I was wondering if some of the more C++ oriented
> folks on the list knew of a good tool that would automatically “C++-ify” C
> header files, to make the mundane work a little more, palatable.  Also, it
> would be great if there was a mode in coverity, or some static analysis
> tool that could automatically “C++ verify” our code on every commit.
> Otherwise, I assume we could auto generate a big file with all includes,
> and then try and include that in a C++ compile.
> > >>
> > >> Sterling
> > >>
> > >> (*) And we need to add / test C++ support in newt prior to rel.
> >
>
>

Reply via email to