osrm-backend/algorithms
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
..
bayes_classifier.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
bfs_components.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
coordinate_calculation.cpp Move calculate_coordinate to algorithms/ 2015-08-12 13:02:18 +02:00
coordinate_calculation.hpp Move calculate_coordinate to algorithms/ 2015-08-12 13:02:18 +02:00
crc32_processor.hpp activate __get_cpuid on all non X64 platform, fixes #1193 2015-04-07 14:45:21 +02:00
douglas_peucker.cpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
douglas_peucker.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
graph_compressor.cpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
graph_compressor.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
object_encoder.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
polyline_compressor.cpp updated to 1E6 based polyline format 2015-06-02 13:15:31 +02:00
polyline_compressor.hpp made geometry_string a const reference 2015-06-02 13:06:06 +02:00
polyline_formatter.cpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
polyline_formatter.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
route_name_extraction.hpp - output only get escaped when actually output. Better seperation of functionality 2015-02-26 10:11:33 +01:00
tarjan_scc.hpp Rename tiny_components.hpp to tarjan_scc.hpp 2015-08-12 13:02:18 +02:00