This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See: EMC++, Item 4 | |
template<typename> | |
class CompileTimeType; | |
int main() { | |
int x; | |
CompileTimeType<decltype(x)> x_Type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <tuple> | |
// See: EMC++, Item 10 | |
namespace { | |
using Person = std::tuple<std::string, std::string, int>; | |
enum { FirstName, LastName, Age }; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <z3++.h> | |
int main() { | |
z3::config config; | |
z3::context context{config}; | |
z3::optimize optimizer{context}; | |
auto x = context.int_const("x"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool operator()(const InternalExtractorEdge &lhs, const InternalExtractorEdge &rhs) const | |
{ | |
return (lhs.result.source < rhs.result.source) || | |
((lhs.result.source == rhs.result.source) && | |
(lhs.result.target < rhs.result.target)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set disassembly-flavor intel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git ls-files '*.cpp' | \ | |
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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unexposed_decl: '^.*$' | |
struct_decl: '^.*$' | |
union_decl: '^.*$' | |
class_decl: '^.*$' | |
enum_decl: '^.*$' | |
field_decl: '^.*$' | |
enum_constant_decl: '^.*$' | |
function_decl: '^.*$' | |
var_decl: '^.*$' | |
parm_decl: '^.*$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <ostream> | |
#include <algorithm> | |
#include <iterator> | |
#include <functional> | |
#include <type_traits> | |
struct Person { | |
int age; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMake Warning (dev) in /tmp/osrm-backend/CMakeLists.txt: | |
unused variable (changing definition) 'CMAKE_CURRENT_SOURCE_DIR' | |
This warning is for project developers. Use -Wno-dev to suppress it. | |
CMake Warning (dev) in /tmp/osrm-backend/CMakeLists.txt: | |
unused variable (changing definition) 'CMAKE_CURRENT_BINARY_DIR' | |
This warning is for project developers. Use -Wno-dev to suppress it. | |
CMake Warning (dev) at /tmp/osrm-backend/CMakeLists.txt:9 (project): | |
unused variable (out of scope) 'CMAKE_BINARY_DIR' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <ostream> | |
#include <algorithm> | |
#include <iterator> | |
#include <functional> | |
#include <type_traits> | |
struct Person { | |
int id; | |
int age; |