osrm-backend/data_structures
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
..
binary_heap.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
compressed_edge_container.cpp Rename GeometryCompressor and add unit tests 2015-07-01 18:07:29 +02:00
compressed_edge_container.hpp Rename GeometryCompressor and add unit tests 2015-07-01 18:07:29 +02:00
concurrent_queue.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
coordinate.cpp Move calculate_coordinate to algorithms/ 2015-08-12 13:02:18 +02:00
deallocating_vector.hpp Implement correct const iterator for DeallocatingVector 2015-08-06 11:13:25 +02:00
dynamic_graph.hpp Restructure the construction of the undirected graph 2015-07-01 18:07:29 +02:00
edge_based_node.hpp Remove unused memebers and rename to currrent style convention 2015-07-01 18:07:29 +02:00
external_memory_node.cpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
external_memory_node.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
fixed_point_number.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
hidden_markov_model.hpp Mark suspicious transitions 2015-04-13 22:39:55 +02:00
hilbert_value.cpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
hilbert_value.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
import_edge.cpp Remove unused memebers and rename to currrent style convention 2015-07-01 18:07:29 +02:00
import_edge.hpp Remove unused memebers and rename to currrent style convention 2015-07-01 18:07:29 +02:00
internal_route_result.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
lru_cache.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
node_based_graph.hpp Restructure the construction of the undirected graph 2015-07-01 18:07:29 +02:00
node_id.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
original_edge_data.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
percent.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
phantom_node.cpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
phantom_node.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
query_edge.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
query_node.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
range_table.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
rectangle.hpp Move calculate_coordinate to algorithms/ 2015-08-12 13:02:18 +02:00
restriction_map.cpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
restriction_map.hpp Move graph compression code outside of EBGF 2015-07-01 18:07:29 +02:00
restriction.hpp Add documentation to InputRestrictionContainer 2015-04-21 20:00:58 +02:00
route_parameters.cpp polyline string as parameter added 2015-06-02 12:09:46 +02:00
search_engine_data.cpp use CRTP instead of virtual functions in routing plugins 2015-03-02 11:55:55 +01:00
search_engine_data.hpp use CRTP instead of virtual functions in routing plugins 2015-03-02 11:55:55 +01:00
search_engine.hpp Initial version of core ch 2015-08-01 18:00:48 +02:00
segment_information.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
shared_memory_factory.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
shared_memory_vector_wrapper.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
static_graph.hpp Allow any input format for StaticGraph and check if edge list is sorted 2015-08-06 11:13:25 +02:00
static_kdtree.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
static_rtree.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
travel_mode.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
tribool.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
turn_instructions.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
upper_bound.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
xor_fast_hash_storage.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
xor_fast_hash.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00