osrm-backend/contractor
Daniel J. Hofmann 62b20769ee Modernize the code base to C++11 standards and beyond.
Apply `clang-modernize` (based on Clang 3.6) transformations to the
codebase while making sure to support Clang>=3.4 and GCC>=4.8.

We apply the transformations in parallel to speed up the quite
time consuming process, and use our `clang-format` style file
to automatically format the code respecting our coding conventions.

We use the following self-explanatory transformations:

* AddOverride
* LoopConvert
* PassByValue
* ReplaceAutoPtr
* UseAuto
* UseNullptr

This required a `compile_commands.json` compilation database, e.g.

    ccmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=1

for CMake or check Bear for a Makefile based solution (or even Ninja).

    git ls-files -x '*.cpp|*.h' | \
      xargs -I{} -P $(nproc) clang-modernize -p build -final-syntax-check -format -style=file -summary -for-compilers=clang-3.4,gcc-4.8 -include . -exclude third_party {}

Boom!

References:

* http://clang.llvm.org/extra/clang-modernize.html
* http://clang.llvm.org/extra/ModernizerUsage.html
2015-08-18 12:56:34 +02:00
..
contractor_options.cpp Initial version of core ch 2015-08-01 18:00:48 +02:00
contractor_options.hpp Initial version of core ch 2015-08-01 18:00:48 +02:00
contractor.hpp Initial version of core ch 2015-08-01 18:00:48 +02:00
edge_based_graph_factory.cpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
edge_based_graph_factory.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
processing_chain.cpp Rename tiny_components.hpp to tarjan_scc.hpp 2015-08-12 13:02:18 +02:00
processing_chain.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
speed_profile.hpp Move graph compression code outside of EBGF 2015-07-01 18:07:29 +02:00