This file contains hidden or 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
<?php | |
/** | |
* This is the base class for all Json RPC Modules. | |
* | |
* @author Konrad Kleine (kwk) | |
*/ | |
abstract class JsonRpcModule { | |
/** | |
* Returns the methods available in the concrete RPC Module implementation. | |
* All final public methods are returned this way: |
This file contains hidden or 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
project(testlink) | |
add_executable(testlink main.cpp) | |
target_link_libraries(testlink) |
This file contains hidden or 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
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] Gerrit Code Review - Parent | |
[INFO] Gerrit Code Review - Utility - SSL | |
[INFO] Gerrit Code Review - Patch commons-net | |
[INFO] Gerrit Code Review - Patch JGit | |
[INFO] Gerrit Code Review - Utility - CLI | |
[INFO] Gerrit Code Review - ANTLR |
This file contains hidden or 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
kleine@mrburns:~/Kunden/GeneralPublic/gerrit (master %)$ mvn package | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] Gerrit Code Review - Parent | |
[INFO] Gerrit Code Review - Utility - SSL | |
[INFO] Gerrit Code Review - Patch commons-net | |
[INFO] Gerrit Code Review - Patch JGit | |
[INFO] Gerrit Code Review - Utility - CLI |
This file contains hidden or 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
project(inherited_attribute) | |
cmake_minimum_required(VERSION 2.8) | |
add_executable(inherited_attribute boost-spirit-inherited-attribute.cpp) |
This file contains hidden or 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
static const clang::FileEntry * getFileEntryForDecl(const clang::Decl * decl, clang::SourceManager * sourceManager) | |
{ | |
if (!decl || !sourceManager) { | |
return 0; | |
} | |
clang::SourceLocation sLoc = decl->getLocation(); | |
clang::FileID fileID = sourceManager->getFileID(sLoc); | |
return sourceManager->getFileEntryForID(fileID); | |
} | |
This file contains hidden or 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
// clang::VarDecl * varDecl; | |
// clang::ASTContext & ctx; | |
const clang::Expr * initializerExpr = varDecl->getInit(); | |
llvm::APSInt result; | |
if (initializerExpr->EvaluateAsInt(result, ctx)) { | |
std::cout << "Value as string: " << result.toString(10) << std::endl; | |
} |
This file contains hidden or 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_minimum_required(VERSION 2.8.8) | |
project(datetime) | |
find_package(Boost COMPONENTS date_time REQUIRED) | |
include_directories(${Boost_INCLUDE_DIRS}) | |
add_executable(datetime datetime.cpp) | |
target_link_libraries(datetime ${Boost_LIBRARIES}) |
This file contains hidden or 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_minimum_required(VERSION 2.8.8) | |
project(interface_class_printer) | |
option(BUILD_INTERFACE_CLASS_PRINTER "Build the tool that converts a C++ interface class into a C struct." ON) | |
mark_as_advanced(BUILD_INTERFACE_CLASS_PRINTER) | |
if (BUILD_INTERFACE_CLASS_PRINTER) | |
# Find boost | |
find_package(Boost COMPONENTS date_time REQUIRED) |
This file contains hidden or 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
.PHONY: using-gcc using-gcc-static using-clang | |
using-gcc: | |
g++-4.8 -o main-gcc -lasan -O -g -fsanitize=address -fno-omit-frame-pointer main.cpp && \ | |
ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) ./main-gcc | |
using-gcc-static: | |
g++-4.8 -o main-gcc-static -static-libstdc++ -static-libasan -O -g -fsanitize=address -fno-omit-frame-pointer main.cpp && \ | |
ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) ./main-gcc-static |