osrm-backend/server
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
..
data_structures Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
http Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
api_grammar.hpp gps_precision and matching_beta can be used as a float value 2015-08-11 11:06:11 +02:00
connection.cpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
connection.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
request_handler.cpp fix code-format regression 2015-02-24 09:08:59 +01:00
request_handler.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
request_parser.cpp Content Type validation added 2015-06-01 09:42:22 +02:00
request_parser.hpp Handle POST request when spanning multiple packets 2015-05-31 21:34:38 +02:00
server.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00