commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
4a8384bcc3f397c03110d92c6f35d4d667e748c4
JEB/Test/MacroUtilities.cpp
JEB/Test/MacroUtilities.cpp
/* JEBTest: A C++ unit testing framework * Copyright 2013 Jan Erik Breimo * All rights reserved. * * This file is distributed under the BSD License. * License text is included with the source distribution. */ #include "MacroUtilities.hpp" #include "JEB/Sys/Path.hpp" #include "JEB/String/String.hpp" #undef JEB ...
/* JEBTest: A C++ unit testing framework * Copyright 2013 Jan Erik Breimo * All rights reserved. * * This file is distributed under the BSD License. * License text is included with the source distribution. */ #include "MacroUtilities.hpp" #include <algorithm> #include "JEB/Sys/Path.hpp" #include "JEB/String/Stri...
Remove white space characters from test names
Remove white space characters from test names
C++
bsd-3-clause
jebreimo/JEBTest
8a9cbc1beeb7fba439fc9f434a45dae85e27daaf
es-general/Registration.cpp
es-general/Registration.cpp
#include "Registration.hpp" #include "comp/StaticObjRefID.hpp" #include "comp/Transform.hpp" #include "comp/ConstantRotation.hpp" #include "comp/CameraSelect.hpp" #include "comp/ClickBox2D.hpp" #include "comp/StaticCamera.hpp" #include "comp/StaticOrthoCamera.hpp" #include "comp/StaticMouseInput.hpp" #include "comp/St...
#include "Registration.hpp" #include "comp/StaticObjRefID.hpp" #include "comp/Transform.hpp" #include "comp/ConstantRotation.hpp" #include "comp/CameraSelect.hpp" #include "comp/ClickBox2D.hpp" #include "comp/StaticCamera.hpp" #include "comp/StaticOrthoCamera.hpp" #include "comp/StaticMouseInput.hpp" #include "comp/St...
Add StaticRandom component to registration.
Add StaticRandom component to registration.
C++
mit
iauns/cpm-es-general,iauns/cpm-es-general
7f4815900ce602b92c5772174dc9aef009ffdba6
src/core/example_module.cpp
src/core/example_module.cpp
#include "core/example_module.hpp" using namespace core; int ExampleModule::getme(void){ return -value; } void ExampleModule::setme(int newvalue){ value = newvalue; }
#include "core/example_module.hpp" using namespace core; int ExampleModule::getme(void){ return value; } void ExampleModule::setme(int newvalue){ value = newvalue; }
Fix intentional bug in example module
Fix intentional bug in example module Fix the intentional bug added in the last commit to check that travis builds now complete successfully.
C++
mit
important-business/engine,important-business/engine
e5b6a115f0b447f89f51b521e98fb627ddb66210
leetcode/226_invert-binary-tree.cpp
leetcode/226_invert-binary-tree.cpp
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: TreeNode *invertTree(TreeNode *root) { if (!root || (!root->left && !root->right)) ...
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: TreeNode *invertTree(TreeNode *root) { if (!root || (!root->left && !root->right)) { ...
Update leetcode solution for problem 226
Update leetcode solution for problem 226
C++
mit
bolatov/contests,bolatov/contests,bolatov/contests,bolatov/contests
59725e0074541ae18868cc9a9922f8a2e1a8b8df
doc/src/snippets/code/src_gui_painting_qpen.cpp
doc/src/snippets/code/src_gui_painting_qpen.cpp
//! [0] QPainter painter(this); QPen pen(Qt::green, 3, Qt::DashDotLine, Qt::RoundCap, Qt::RoundJoin); painter.setPen(pen); //! [0] //! [1] QPainter painter(this); QPen pen(); // creates a default pen pen.setStyle(Qt::DashDotLine); pen.setWidth(3); pen.setBrush(Qt::green); pen.setCapStyle(Qt::RoundCap); pen.setJoinS...
//! [0] QPainter painter(this); QPen pen(Qt::green, 3, Qt::DashDotLine, Qt::RoundCap, Qt::RoundJoin); painter.setPen(pen); //! [0] //! [1] QPainter painter(this); QPen pen(); // creates a default pen pen.setStyle(Qt::DashDotLine); pen.setWidth(3); pen.setBrush(Qt::green); pen.setCapStyle(Qt::RoundCap); pen.setJoinS...
Fix the dash pattern examples in the documentation of QPen
Fix the dash pattern examples in the documentation of QPen The custom dash pattern must have an even number of entries. Our examples were using an odd number.
C++
lgpl-2.1
RLovelett/qt,RLovelett/qt,RLovelett/qt,igor-sfdc/qt-wk,RLovelett/qt,pruiz/wkhtmltopdf-qt,radekp/qt,KDE/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,radekp/qt,RLovelett/qt,igor-sfdc/qt-wk,radekp/qt,radekp/qt,RLovelett/qt,radekp/qt,KDE/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt,KDE/qt,radekp/qt,rad...
79bd6e4acb5bc72481ce2afb1a1b9686c4df7a5f
client/minicomm/client_main.cc
client/minicomm/client_main.cc
#include "client.h" DEFINE_string(config_filename, "", "Where to find the config file."); int main(int argc, char* argv[]) { InitGoogle(argv[0], &argc, &argv, true); grr::Client::StaticInit(); grr::Client client(FLAGS_config_filename); client.Run(); return 0; }
#include "client.h" int main(int argc, char* argv[]) { grr::Client::StaticInit(); if (argc != 2) { GOOGLE_LOG(FATAL) << "Usage is: client <config>"; } grr::Client client(argv[1]); client.Run(); return 0; }
Remove dependency on Google argument parsing.
Remove dependency on Google argument parsing.
C++
apache-2.0
shifter/grr,darrenbilby/grr,ksmaheshkumar/grr,statik/grr,statik/grr,google/grr,pchaigno/grr,bgalehouse/grr,ksmaheshkumar/grr,wandec/grr,statik/grr,dunkhong/grr,darrenbilby/grr,ahojjati/grr,shifter/grr,ksmaheshkumar/grr,shifter/grr,dunkhong/grr,shifter/grr,shifter/grr,pidydx/grr,destijl/grr,wandec/grr,destijl/grr,destij...
168b27d90f0d11cca7697de2c7450f536a75011e
3RVX/Slider/VolumeSlider.cpp
3RVX/Slider/VolumeSlider.cpp
#include "VolumeSlider.h" #include "..\Controllers\Volume\CoreAudio.h" #include "..\Error.h" #include "..\Settings.h" #include "..\Skin.h" #include "SliderKnob.h" VolumeSlider::VolumeSlider(CoreAudio &volumeCtrl) : SliderWnd(L"3RVX-VolumeSlider", L"3RVX Volume Slider"), _settings(*Settings::Instance()), _volumeCtrl(v...
#include "VolumeSlider.h" #include "..\Controllers\Volume\CoreAudio.h" #include "..\Error.h" #include "..\Settings.h" #include "..\Skin.h" #include "SliderKnob.h" VolumeSlider::VolumeSlider(CoreAudio &volumeCtrl) : SliderWnd(L"3RVX-VolumeSlider", L"3RVX Volume Slider"), _settings(*Settings::Instance()), _volumeCtrl(v...
Make slider the foreground window upon Show()
Make slider the foreground window upon Show() This helps us detect when the window loses focus
C++
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX
824da98a4281235babffad07cbe651ade8f2ea6e
lib/imul.tas.cpp
lib/imul.tas.cpp
#include "common.th" // c <- multiplicand // d <- multiplier // b -> product .global imul imul: pushall(h,i,j) b <- 0 i <- d == 0 i <- c == 0 + i i <- i <> 0 jnzrel(i, L_done) h <- 1 j <- d >> 31 // save sign bit in j j <- -j // convert sign to flag d <- d ^ j ...
#include "common.th" // c <- multiplicand // d <- multiplier // b -> product .global imul imul: pushall(h,i,j) b <- 0 #if IMUL_EARLY_EXITS i <- d == 0 i <- c == 0 + i i <- i <> 0 jnzrel(i, L_done) #endif h <- 1 j <- d >> 31 // save sign bit in j j <- -j // convert sign...
Make imul early exits optional, disabled
Make imul early exits optional, disabled
C++
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
8e6c6d0291cdeae0a79b007a802f72f17a89134b
Wangscape/noise/module/codecs/CurveWrapperCodec.cpp
Wangscape/noise/module/codecs/CurveWrapperCodec.cpp
#pragma once #include "CurveWrapperCodec.h" namespace spotify { namespace json { using CurveWrapper = noise::module::Wrapper<noise::module::Curve>; codec::object_t<CurveWrapper> default_codec_t<CurveWrapper>::codec() { auto codec = codec::object<CurveWrapper>(); codec.required("type", codec::eq<...
#pragma once #include "CurveWrapperCodec.h" namespace spotify { namespace json { using CurveWrapper = noise::module::Wrapper<noise::module::Curve>; codec::object_t<CurveWrapper> default_codec_t<CurveWrapper>::codec() { auto codec = codec::object<CurveWrapper>(); codec.required("type", codec::eq<...
Use std::transform in Curve codec
Use std::transform in Curve codec
C++
mit
Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape
9d034c720c332a901de795c1528f6fbf437531a2
test/Profile/cxx-virtual-destructor-calls.cpp
test/Profile/cxx-virtual-destructor-calls.cpp
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -main-file-name cxx-virtual-destructor-calls.cpp %s -o - -fprofile-instrument=clang | FileCheck %s struct Member { ~Member(); }; struct A { virtual ~A(); }; struct B : A { Member m; virtual ~B(); }; // Base dtor // CHECK: @__profn__ZN1BD2Ev = private...
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -main-file-name cxx-virtual-destructor-calls.cpp %s -o - -fprofile-instrument=clang | FileCheck %s struct Member { ~Member(); }; struct A { virtual ~A(); }; struct B : A { Member m; virtual ~B(); }; // Base dtor counters and profile data // CHECK: @_...
Update test case to deal with name variable change (NFC)
[profiling] Update test case to deal with name variable change (NFC) The 'profn' name variables shouldn't show up after we run the instrprof pass, see https://reviews.llvm.org/D29921 for more details. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@295085 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
4582b23c09c70109e5b29dd06ff4e4879717ed64
QML/CuteHMI/LockScreen/src/CuteHMILockScreenQMLPlugin.cpp
QML/CuteHMI/LockScreen/src/CuteHMILockScreenQMLPlugin.cpp
#include "CuteHMILockScreenQMLPlugin.hpp" #include "cutehmi/lock_screen/Auth.hpp" #include <QtQml> void CuteHMILockScreenQMLPlugin::registerTypes(const char * uri) { Q_ASSERT(uri == QLatin1String("CuteHMI.LockScreen")); qmlRegisterSingletonType<cutehmi::lockscreen::Auth>(uri, 1, 0, "Auth", AuthProvider); } Q...
#include "CuteHMILockScreenQMLPlugin.hpp" #include "cutehmi/lock_screen/Auth.hpp" #include <QtQml> #include <memory> void CuteHMILockScreenQMLPlugin::registerTypes(const char * uri) { Q_ASSERT(uri == QLatin1String("CuteHMI.LockScreen")); qmlRegisterSingletonType<cutehmi::lockscreen::Auth>(uri, 1, 0, "Auth", ...
Change AuthProvider to be handled by unique_ptr.
Change AuthProvider to be handled by unique_ptr.
C++
mit
michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI
6756326532be1e2cbbfbb10a53052c6e2a64eb9d
chrome/browser/ui/views/dropdown_bar_host_aura.cc
chrome/browser/ui/views/dropdown_bar_host_aura.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/dropdown_bar_host.h" #include "base/logging.h" #include "ui/aura/window.h" #include "ui/views/widget/widget.h" usi...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/dropdown_bar_host.h" #include "base/logging.h" #include "ui/aura/window.h" #include "ui/views/widget/widget.h" usi...
Fix findbar visibility when switching between tabs.
aura: Fix findbar visibility when switching between tabs. BUG=110936 TEST=manually Review URL: https://chromiumcodereview.appspot.com/9293031 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@119909 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
keishi/chromium,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,Just-D/chromium-1,robclark/chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,hujiajie/pa-chromium,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,...
dded742f1d9e0e923811ee45f238dcaaca6d6665
Wangscape/OptionsManager.cpp
Wangscape/OptionsManager.cpp
#include "OptionsManager.h" #include <fstream> #include <spotify/json.hpp> #include "codecs/OptionsCodec.h" OptionsManager::OptionsManager(std::string filename) { std::ifstream ifs(filename); if (!ifs.good()) { throw std::runtime_error("Could not open options file"); } std::string str{s...
#include "OptionsManager.h" #include <fstream> #include <boost/filesystem.hpp> #include <spotify/json.hpp> #include "codecs/OptionsCodec.h" OptionsManager::OptionsManager(std::string filename) { std::ifstream ifs(filename); if (!ifs.good()) { throw std::runtime_error("Could not open options fil...
Add missing output directory creation
Add missing output directory creation
C++
mit
Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape
d1cb6591ed94d3999a7c0d2d36e478ffc44350c6
tools/qdoc3/doc/examples/main.cpp
tools/qdoc3/doc/examples/main.cpp
#include <QApplication> #include <QPushButton> int main(int argc, char *argv[]) { QApplication app(argc, argv); QPushButton *hello("Hello world!"); hello.resize(100, 30); hello.show(); return app.exec(); }
/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the tools applications of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGP...
Add license header to this file
Add license header to this file
C++
lgpl-2.1
pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igo...
b51c5828afcba7839bc3bcf0bd0c9c7c2c1179c2
examples/echo/main.cc
examples/echo/main.cc
#include <evpp/exp.h> #include <evpp/tcp_server.h> #include <evpp/buffer.h> #include <evpp/tcp_conn.h> void OnMessage(const evpp::TCPConnPtr& conn, evpp::Buffer* msg, evpp::Timestamp ts) { std::string s = msg->NextAllString(); LOG_INFO << "Received a message [" << s << "]"; co...
#include <evpp/exp.h> #include <evpp/tcp_server.h> #include <evpp/buffer.h> #include <evpp/tcp_conn.h> #ifdef _WIN32 #include "winmain-inl.h" #endif void OnMessage(const evpp::TCPConnPtr& conn, evpp::Buffer* msg, evpp::Timestamp ts) { std::string s = msg->NextAllString(); LOG_INF...
Add OnConnection callback for echo tcp server
Add OnConnection callback for echo tcp server
C++
bsd-3-clause
Qihoo360/evpp,Qihoo360/evpp,Qihoo360/evpp,Qihoo360/evpp,Qihoo360/evpp
13d4feda1cb63a8a720b2e7dca4b27de01faeb17
test/cts/device_feature_test_cts.cc
test/cts/device_feature_test_cts.cc
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Increase core count for PerfettoDeviceFeatureTest
Increase core count for PerfettoDeviceFeatureTest Increase core count limit for CtsPerfettoTestCases PerfettoDeviceFeatureTest#TestMaxCpusForAtraceChmod to support future devices with more cores Bug: 203651019 Test: atest CtsPerfettoTestCases Change-Id: I2246d9ef10e553df3f9d12ccde78d8009f3fd7cd Merged-In: I2246d9ef1...
C++
apache-2.0
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto
eac5b4b6bfa91e9b9d048720400db095b7f1e540
plugins/tray/trayplugin.cpp
plugins/tray/trayplugin.cpp
/* * The MIT License (MIT) * * Copyright (c) 2017 Nathan Osman * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use,...
/* * The MIT License (MIT) * * Copyright (c) 2017 Nathan Osman * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use,...
Fix compilation error with Qt 5.4.
Fix compilation error with Qt 5.4.
C++
mit
nitroshare/nitroshare-desktop,nitroshare/nitroshare-desktop,nitroshare/nitroshare-desktop,nitroshare/nitroshare-desktop
87276aa0fdfec7282a3aba352b92aeedfcd351ff
packages/Python/lldbsuite/test/expression_command/top-level/test.cpp
packages/Python/lldbsuite/test/expression_command/top-level/test.cpp
class MyClass { public: int memberResult() { return 1; } static int staticResult() { return 1; } int externResult(); }; // -- int MyClass::externResult() { return 1; } // -- MyClass m; // -- enum MyEnum { myEnumOne = 1, myEnumTwo, myEnumThree }; // -- class AnotherClass { public: ...
class MyClass { public: int memberResult() { return 1; } static int staticResult() { return 1; } int externResult(); }; // -- int MyClass::externResult() { return 1; } // -- MyClass m; // -- enum MyEnum { myEnumOne = 1, myEnumTwo, myEnumThree }; // -- class AnotherClass { public: ...
Test diamond virtual inheritance in top-level expressions.
Test diamond virtual inheritance in top-level expressions. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@269698 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb
ebf1be596a933853865571cb9a872d3576d11a74
gfx/texture_atlas.cpp
gfx/texture_atlas.cpp
#include <string.h> #include "gfx/texture_atlas.h" const AtlasFont *Atlas::getFontByName(const char *name) const { for (int i = 0; i < num_fonts; i++) { if (!strcmp(name, fonts[i]->name)) return fonts[i]; } } const AtlasImage *Atlas::getImageByName(const char *name) const { for (int i = 0; i < num_images; i++...
#include <string.h> #include "gfx/texture_atlas.h" const AtlasFont *Atlas::getFontByName(const char *name) const { for (int i = 0; i < num_fonts; i++) { if (!strcmp(name, fonts[i]->name)) return fonts[i]; } return 0; } const AtlasImage *Atlas::getImageByName(const char *name) const { for (int i = 0; i < num...
Return 0 if resource missing
Return 0 if resource missing
C++
mit
zhykzhykzhyk/ppsspp-native,unknownbrackets/native,libretro/ppsspp-native,hrydgard/native,zhykzhykzhyk/ppsspp-native,hrydgard/native,unknownbrackets/native,unknownbrackets/native,zhykzhykzhyk/ppsspp-native,Ced2911/native,unknownbrackets/native,hrydgard/native,zhykzhykzhyk/ppsspp-native,libretro/ppsspp-native,libretro/pp...
8202d92e171472de103e44504b47220254becbfa
samples/EntityCreation/src/EntityCreationApp.cpp
samples/EntityCreation/src/EntityCreationApp.cpp
#include "cinder/app/App.h" #include "cinder/app/RendererGl.h" #include "cinder/gl/gl.h" using namespace ci; using namespace ci::app; using namespace std; class EntityCreationApp : public App { public: void setup() override; void mouseDown( MouseEvent event ) override; void update() override; void draw() overri...
#include "cinder/app/App.h" #include "cinder/app/RendererGl.h" #include "cinder/gl/gl.h" #include "entityx/System.h" using namespace ci; using namespace ci::app; using namespace std; class EntityCreationApp : public App { public: EntityCreationApp(); void setup() override; void mouseDown( MouseEvent event ) over...
Add stub entityx classes to sample.
Add stub entityx classes to sample.
C++
mit
sosolimited/Entity-Component-Samples
1456979029170f8a8b4c7f845336b925a6d86154
src/interface.cpp
src/interface.cpp
#include <stdio.h> #include "interface.h" void printHelp() { printf("Usage: yabs [options]\n\n" "yabs, a simple build system.\n" "Options:\n" "\t-new\tCreate a new yabs build file\n" "\t-help\tPrint this dialog\n"); }
#include <stdio.h> #include "interface.h" void printHelp() { printf("Usage: yabs [options]\n\n" "yabs, a simple build system.\n" "Options:\n" "\t-n\tCreate a new yabs build file\n" "\t-h\tPrint this dialog\n"); }
Fix help print to reflect parameter changes
Fix help print to reflect parameter changes Signed-off-by: Alberto Corona <c1a4158909d6c23f73df353c7cc0bbe963891a65@0x1a.us>
C++
bsd-3-clause
0X1A/yabs,0X1A/yabs,0X1A/yabs,0X1A/yabs
6851b01c38fe0c46a7a225eb2dcb4108e908d4be
Source/HeliumRain/UI/Style/FlareScalingRule.cpp
Source/HeliumRain/UI/Style/FlareScalingRule.cpp
#include "FlareScalingRule.h" float UFlareScalingRule::GetDPIScaleBasedOnSize(FIntPoint Size) const { float NominalAspectRatio = (16.0f / 9.0f); // Wide screen : scale 1 at 1920, scale 2 at 3840... if (Size.X / Size.Y > NominalAspectRatio) { return (Size.Y / 1080.0f); } // Square ratio : scale 1 at 1080p ...
#include "FlareScalingRule.h" float UFlareScalingRule::GetDPIScaleBasedOnSize(FIntPoint Size) const { float NominalAspectRatio = (16.0f / 9.0f); // Loading game if (Size.X == 0 || Size.Y == 0) { return 1; } // Wide screen : scale 1 at 1920, scale 2 at 3840... else if (Size.X / Size.Y > NominalAspectRatio)...
Fix crash when loading UE editor with custom UI scaling
Fix crash when loading UE editor with custom UI scaling
C++
bsd-3-clause
arbonagw/HeliumRain,arbonagw/HeliumRain,arbonagw/HeliumRain,arbonagw/HeliumRain,arbonagw/HeliumRain
4ecbb8f86691102f2a1162677ce091d3de8c5888
base/android/important_file_writer_android.cc
base/android/important_file_writer_android.cc
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/android/important_file_writer_android.h" #include <string> #include "base/android/jni_string.h" #include "base/files/important_file_write...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/android/important_file_writer_android.h" #include <string> #include "base/android/jni_string.h" #include "base/files/important_file_write...
Allow atomic file writes from Android on the UI thread.
Allow atomic file writes from Android on the UI thread. This is needed because Android writes its tab data during closedown or when the browser goes into the background. This has to be done on the UI thread to ensure timely completion. BUG=148011 Review URL: https://codereview.chromium.org/12457007 Patch from Anthon...
C++
bsd-3-clause
Jonekee/chromium.src,jaruba/chromium.src,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,jaruba/chromium.src,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Just-D...
65dd932d4b75b9d58220f1d7f93a9cc8940f6ef0
lib/sanitizer_common/sanitizer_common_nolibc.cc
lib/sanitizer_common/sanitizer_common_nolibc.cc
//===-- sanitizer_common_nolibc.cc ----------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- sanitizer_common_nolibc.cc ----------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix double definition of a function.
[sanitizer] Fix double definition of a function. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@243055 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
acf916b48b9f1dbe28392aa816a87cdd85157a63
alice4/software/touchscreen_tests/ts_test1.cpp
alice4/software/touchscreen_tests/ts_test1.cpp
#include <cstdio> #include <cstdlib> #include <fcntl.h> #include <unistd.h> #include "touchscreen.h" int main() { touchscreen_init(); while(1) { int x, y; float z; TouchscreenEvent e; while((e = touchscreen_read(&x, &y, &z)) != TOUCHSCREEN_IDLE) { switch(e) { case TOUCHSCREEN_START: p...
#include <cstdio> #include <cstdlib> #include <fcntl.h> #include <unistd.h> #include "touchscreen.h" int main() { touchscreen_init(); while(1) { static bool dragging = false; int x, y; float z; TouchscreenEvent e; while((e = touchscreen_read(&x, &y, &z)) != TOUCHSCREEN_IDLE) { switch(e) { ...
Add ERROR prints on unexpected conditions
Add ERROR prints on unexpected conditions
C++
apache-2.0
lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice
3b8546a1337770b4cfe7874a0fc3b50cc79b79c7
src/unit_VEHICLE/models/hmmwv_9body/ChWheel.cpp
src/unit_VEHICLE/models/hmmwv_9body/ChWheel.cpp
// ============================================================================= // Authors: Radu Serban, Justin Madsen // ============================================================================= // // Base class for a vehicle wheel. // A wheel subsystem does not own a body. Instead, when attached to a suspension ...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Add missing comment block at top of file.
Add missing comment block at top of file.
C++
bsd-3-clause
Milad-Rakhsha/chrono,Milad-Rakhsha/chrono,projectchrono/chrono,Bryan-Peterson/chrono,armanpazouki/chrono,armanpazouki/chrono,rserban/chrono,rserban/chrono,Bryan-Peterson/chrono,rserban/chrono,armanpazouki/chrono,armanpazouki/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono,Milad-Rakhsha/chrono,Bryan-Peterson/chrono,tjol...
1e4f7195a8e35ccf9edb72e1d90e06c203b99faa
tensorflow/core/platform/resource_loader_test.cc
tensorflow/core/platform/resource_loader_test.cc
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Use JoinPath over a fixed string for building paths.
Use JoinPath over a fixed string for building paths. The fixed path doesn't work well on Windows when the correct path separator is used. PiperOrigin-RevId: 296095586 Change-Id: I9fe0459ef58a310bf471cf2548b3f7e23b764502
C++
apache-2.0
Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,aam-at/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,petewarden/tensorflow,yongtang/tensorflow,xzturn/tensorflow,I...
cfa68bccf5b65ca4f2605dee5ffb371e3fc3af57
language.support/support.types/offsetof.pass.cpp
language.support/support.types/offsetof.pass.cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
Add noexcept test for offsetof macro per [support.types]/p4.
Add noexcept test for offsetof macro per [support.types]/p4. git-svn-id: 273b07cebdae5845b4a75aae04570b978db9eb50@159846 91177308-0d34-0410-b5e6-96231b3b80d8
C++
bsd-3-clause
lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx
ad503884e4b33493602e8376d8428c192e2de491
test/pp-trace/pp-trace-modules.cpp
test/pp-trace/pp-trace-modules.cpp
// RUN: rm -rf %t // RUN: pp-trace -ignore FileChanged,MacroDefined %s -x objective-c++ -undef -target x86_64 -std=c++11 -fmodules -fcxx-modules -fmodules-cache-path=%t -I%S -I%S/Input | FileCheck --strict-whitespace %s // REQUIRES: x86-registered-target // CHECK: --- @import Level1A; // CHECK-NEXT: - Callback: modul...
// RUN: rm -rf %t // RUN: pp-trace -ignore FileChanged,MacroDefined %s -x objective-c++ -undef -target x86_64 -std=c++11 -fmodules -fcxx-modules -fmodules-cache-path=%t -I%S -I%S/Input | FileCheck --strict-whitespace %s // CHECK: --- @import Level1A; // CHECK-NEXT: - Callback: moduleImport // CHECK-NEXT: ImportLoc...
Revert "Add a missing target requirement."
Revert "Add a missing target requirement." This reverts commit 230430. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@230455 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
c0e717c83367386d06ae527ff4b50099fad585ae
project/src/common/Input.cpp
project/src/common/Input.cpp
#include <Input.h> namespace nme { #if !defined(IPHONE) && !defined(WEBOS) && !defined(ANDROID) && !defined(BLACKBERRY) bool GetAcceleration(double &outX, double &outY, double &outZ) { return false; } #endif }
#include <Input.h> namespace nme { #if !defined(IPHONE) && !defined(WEBOS) && !defined(ANDROID) && !defined(BLACKBERRY) && !defined(TIZEN) bool GetAcceleration(double &outX, double &outY, double &outZ) { return false; } #endif }
Set define for Tizen accelerometer
Set define for Tizen accelerometer
C++
mit
madrazo/nme,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,haxenme/nme,madrazo/nme,haxenme/nme,haxenme/nme,madrazo/nme,madrazo/nme,haxenme/nme,thomasuster/NME,thomasuster/NME,haxenme/nme,thomasuster/NME,thomasuster/NME
2d19d1c5b8811877aaa08683265324a1a9db5e6e
test/asan/TestCases/Windows/intercept_strdup.cc
test/asan/TestCases/Windows/intercept_strdup.cc
// RUN: %clang_cl_asan -O0 %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> #include <string.h> #include <malloc.h> int main() { char *ptr = _strdup("Hello"); int subscript = 1; ptr[subscript] = '3'; printf("%s\n", ptr); fflush(0); // CHECK: H3llo subscript = -1; ptr[subscript] = 42;...
// RUN: %clang_cl_asan -O0 %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> #include <string.h> #include <malloc.h> int main() { char *ptr = _strdup("Hello"); int subscript = 1; ptr[subscript] = '3'; printf("%s\n", ptr); fflush(0); // CHECK: H3llo subscript = -1; ptr[subscript] = 42;...
Remove CHECK for strdup symbol that comes from the CRT
[windows] Remove CHECK for strdup symbol that comes from the CRT llvm-symbolizer isn't symbolizing it for some reason. I'll investigate. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@244629 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
861e0bcdd376bd2ad7101ad6c81c27a48c509675
test/SemaTemplate/instantiation-depth-default.cpp
test/SemaTemplate/instantiation-depth-default.cpp
// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-backtrace-limit 2 %s template<int N, typename T> struct X : X<N+1, T*> {}; // expected-error-re@3 {{recursive template instantiation exceeded maximum depth of 1024{{$}}}} // expected-note@3 {{instantiation of template class}} // expected-note@3 {{skipping 1023 contex...
// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-backtrace-limit 2 %s // // FIXME: Disable this test when Clang was built with ASan, because ASan // increases our per-frame stack usage enough that this test no longer fits // within our normal stack space allocation. // REQUIRES: not_asan template<int N, typename T>...
Disable test under asan: it uses a lot of stack, and asan increases the per-frame stack usage enough to cause it to hit our stack limit. This is not ideal; we should find a better way of dealing with this, such as increasing our stack allocation when built with ASan.
Disable test under asan: it uses a lot of stack, and asan increases the per-frame stack usage enough to cause it to hit our stack limit. This is not ideal; we should find a better way of dealing with this, such as increasing our stack allocation when built with ASan. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec...
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
c6c5fac8b0e5330a9d062ea3fd540ec37b283aec
Sources/voAnalysisFactory.cpp
Sources/voAnalysisFactory.cpp
// Qt includes #include <QDebug> // Visomics includes #include "voAnalysis.h" #include "voAnalysisFactory.h" #include "voQObjectFactory.h" #include "voPCAStatistics.h" //---------------------------------------------------------------------------- class voAnalysisFactoryPrivate { public: voQObjectFactory<voAnalysi...
// Qt includes #include <QDebug> // Visomics includes #include "voAnalysis.h" #include "voAnalysisFactory.h" #include "voQObjectFactory.h" #include "voPCAStatistics.h" //---------------------------------------------------------------------------- class voAnalysisFactoryPrivate { public: voQObjectFactory<voAnalysi...
Change analysis name from "pca" to "PCA"
Change analysis name from "pca" to "PCA"
C++
apache-2.0
Visomics/Visomics,arborworkflows/Visomics,Visomics/Visomics,Visomics/Visomics,arborworkflows/Visomics,arborworkflows/Visomics,Visomics/Visomics,arborworkflows/Visomics,Visomics/Visomics,Visomics/Visomics,arborworkflows/Visomics,arborworkflows/Visomics
b955b5e97154547b3d7ed9aab61a1145b2dca377
examples/org.opengoggles.example.NullTracker.cpp
examples/org.opengoggles.example.NullTracker.cpp
/** @file @brief Implementation @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtai...
/** @file @brief Implementation @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtai...
Use consistent symbols in example
Use consistent symbols in example
C++
apache-2.0
OSVR/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,feilen/OSVR-Core,leemichaelRazer/OSVR-Core,d235j/OSVR-Core,feilen/OSVR-Core,d235j/OSVR-Core,godbyk/OSVR-Core,feilen/OSVR-Core,d235j/OSVR-Core,leemichaelRazer/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,d235j/OSVR-Core,leemichaelRazer/OSVR-Core,Armada651/OSVR-Core,godbyk/OS...
d87d88ce5dc6ac226d834022277bfc24d9d57492
touch_switch/touch_switch.cpp
touch_switch/touch_switch.cpp
#include <signal.h> #include <unistd.h> #include "mraa.hpp" bool running = true; bool relay_state = false; int last_touch; void sig_handler(int signo) { if (signo == SIGINT) running = false; } int main(int argc, char* argv[]) { mraa::Gpio* touch_gpio = new mraa::Gpio(492); mraa:...
#include <signal.h> #include <unistd.h> #include "mraa.hpp" bool running = true; bool relay_state = false; int last_touch; void sig_handler(int signo) { if (signo == SIGINT) running = false; } int main(int argc, char* argv[]) { mraa::Gpio* touch_gpio = new mraa::Gpio(29); mraa::...
Fix GPIO pin numbers to match MRAA change
Fix GPIO pin numbers to match MRAA change The MRAA library has been modified to assign consistent pin numbering to 96Boards platforms. Change the example code to use the same pin numbers. Signed-off-by: Grant Likely <9069e6f5a2b566e2674a0ba1e2bf39c12c195fad@linaro.org>
C++
bsd-2-clause
96boards/Starter_Kit_for_96Boards,96boards/Sensor_Mezzanine_Getting_Started,96boards/Sensor_Mezzanine_Getting_Started,96boards/Starter_Kit_for_96Boards
d9fb2f56048d4f3bf2c73359ca66920283d5b81c
src/lib/geodata/scene/GeoSceneXmlDataSource.cpp
src/lib/geodata/scene/GeoSceneXmlDataSource.cpp
/* Copyright (C) 2008 Patrick Spendrin <ps_ml@gmx.de> This file is part of the KDE project This library is free software you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation either version 2 of the Licen...
/* Copyright (C) 2008 Patrick Spendrin <ps_ml@gmx.de> This file is part of the KDE project This library is free software you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation either version 2 of the Licen...
Check that file ends with a newline (1 issue)
krazy: Check that file ends with a newline (1 issue) svn path=/trunk/KDE/kdeedu/marble/; revision=901192
C++
lgpl-2.1
rku/marble,probonopd/marble,quannt24/marble,adraghici/marble,David-Gil/marble-dev,quannt24/marble,probonopd/marble,David-Gil/marble-dev,Earthwings/marble,tucnak/marble,probonopd/marble,tzapzoor/marble,quannt24/marble,tzapzoor/marble,AndreiDuma/marble,rku/marble,rku/marble,quannt24/marble,AndreiDuma/marble,tzapzoor/marb...
cace8f205deb02608c2f966aeb7e3e9b98067458
unitTestUtils/DummyClassTest/DummyClassTest.cpp
unitTestUtils/DummyClassTest/DummyClassTest.cpp
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE DummyClassTest #include <boost/test/unit_test.hpp> #include "../DummyClass/DummyClass.h" BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TEST_CASE( my_test1 ) { DummyClass obj; BOOST_REQUIRE_EQUAL(&obj, &obj); BOOST_REQUIRE_EQUAL(1, 1); } BOOST_AUTO_TEST_S...
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE DummyClassTest #include <boost/test/unit_test.hpp> #include "./DummyClass/DummyClass.h" BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TEST_CASE( my_test1 ) { DummyClass obj; BOOST_REQUIRE_EQUAL(&obj, &obj); BOOST_REQUIRE_EQUAL(1, 1); } BOOST_AUTO_TEST_SU...
Change ../ to ./ in includes
Change ../ to ./ in includes
C++
apache-2.0
wkrzemien/j-pet-framework,wkrzemien/j-pet-framework,wkrzemien/j-pet-framework,wkrzemien/j-pet-framework,wkrzemien/j-pet-framework
4978df43c7508b0f7e24c13fe5fc424991695b82
include/ccspec/matchers/eq.cc
include/ccspec/matchers/eq.cc
#include <sstream> #include <string> #include <ccspec/matcher.h> namespace ccspec { namespace matchers { // Public methods. template <typename U> template <typename V> bool Eq<U>::match(V actual_value) const { return actual_value == this->expected_value(); } template <typename U> std::string Eq<U>::desc() const...
#include <sstream> namespace ccspec { namespace matchers { // Public methods. template <typename U> template <typename V> bool Eq<U>::match(V actual_value) const { return actual_value == this->expected_value(); } template <typename U> std::string Eq<U>::desc() const { std::ostringstream s; s << "should ...
Remove unnecessary includes in template .cc
Remove unnecessary includes in template .cc
C++
mit
michaelachrisco/ccspec,zhangsu/ccspec,zhangsu/ccspec,tempbottle/ccspec,tempbottle/ccspec,tempbottle/ccspec,michaelachrisco/ccspec,michaelachrisco/ccspec,zhangsu/ccspec
f047ea14fa782e096675d0a63a25d53662060f21
_libwhisper.cpp
_libwhisper.cpp
#include "All.h" #include "Common.cpp" #include "WhisperPeer.cpp"
#ifdef _MSC_VER #include "All.h" #include "Common.cpp" #include "WhisperPeer.cpp" #endif
Disable SCUs on non MSVC builds.
Disable SCUs on non MSVC builds.
C++
mit
gluk256/webthree,LianaHus/webthree,LianaHus/webthree,gluk256/webthree,CJentzsch/webthree,CJentzsch/webthree
75d32f74b58cc4ffced4d468584c220b8e2d8808
test/integration_tests/src/main.cpp
test/integration_tests/src/main.cpp
/* Copyright (c) 2014-2015 DataStax Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
/* Copyright (c) 2014-2015 DataStax Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
Fix required for Boost v1.59.0; missing semicolon
Fix required for Boost v1.59.0; missing semicolon
C++
apache-2.0
datastax/cpp-driver,mikefero/cpp-driver,flightaware/cpp-driver,mikefero/cpp-driver,mpenick/cpp-driver,datastax/cpp-driver,mikefero/cpp-driver,hpcc-systems/cpp-driver,hpcc-systems/cpp-driver,flightaware/cpp-driver,hpcc-systems/cpp-driver,mikefero/cpp-driver,mpenick/cpp-driver,hpcc-systems/cpp-driver,datastax/cpp-driver,...
cc503bd09b78bc553bf577737f2c78bea84821ac
chrome/browser/extensions/extension_websocket_apitest.cc
chrome/browser/extensions/extension_websocket_apitest.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_paths.h" #include "chrome/test/ui_test_utils.h" #include "net/...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_paths.h" #include "chrome/test/ui_test_utils.h" #include "net/...
Disable this test on Linux, because it will fail as soon as WebKit's version is rolled forward.
Disable this test on Linux, because it will fail as soon as WebKit's version is rolled forward. TEST=none BUG=40976 Review URL: http://codereview.chromium.org/1610016 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@44127 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,markYoungH/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,axinging/chromium-crosswalk,Jonekee/chromium.src,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,chuan9/chromium-...
2a79d02dba3b13d4ba9ae1e287ffba71ba8adac8
xchainer/testing/numeric.cc
xchainer/testing/numeric.cc
#include "xchainer/testing/numeric.h" #include <cassert> #include "xchainer/dtype.h" #include "xchainer/error.h" #include "xchainer/scalar.h" namespace xchainer { namespace testing { bool AllClose(const Array& a, const Array& b, double rtol, double atol) { if (a.shape() != b.shape()) { throw DimensionEr...
#include "xchainer/testing/numeric.h" #include <cassert> #include "xchainer/dtype.h" #include "xchainer/error.h" #include "xchainer/scalar.h" namespace xchainer { namespace testing { bool AllClose(const Array& a, const Array& b, double rtol, double atol) { if (a.shape() != b.shape()) { throw DimensionEr...
Remove old and unnecessary cast
Remove old and unnecessary cast
C++
mit
niboshi/chainer,hvy/chainer,ktnyt/chainer,ktnyt/chainer,chainer/chainer,niboshi/chainer,jnishi/chainer,hvy/chainer,wkentaro/chainer,hvy/chainer,keisuke-umezawa/chainer,okuta/chainer,okuta/chainer,chainer/chainer,chainer/chainer,jnishi/chainer,pfnet/chainer,niboshi/chainer,wkentaro/chainer,keisuke-umezawa/chainer,wkenta...
43e722eb3e202f376305a57c90fcab0a43e1d891
src/time.cpp
src/time.cpp
// Copyright (c) Arduino. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <time.h> #include <sys/time.h> #include <RTCZero.h> RTCZero rtc; extern "C" { int _gettimeofday(struct timeval* tp, void* /*tzvp*/) { struct t...
// Copyright (c) Arduino. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <time.h> #include <sys/time.h> #include <RTCZero.h> RTCZero rtc; extern "C" { int _gettimeofday(struct timeval* tp, void* /*tzvp*/) { tp->tv_s...
Use new RTCZero epoch API's
Use new RTCZero epoch API's
C++
mit
sandeepmistry/AzureIoT,obsoleted/AzureIoT,stefangordon/AzureIoT,obsoleted/AzureIoT,arduino-libraries/AzureIoT,stefangordon/AzureIoT,sandeepmistry/AzureIoT,arduino-libraries/AzureIoT,arduino-libraries/AzureIoT
c099db178390bdff88a92ef42ad233d58aacf163
src/plugins/positionprovider/gpsd/GpsdConnection.cpp
src/plugins/positionprovider/gpsd/GpsdConnection.cpp
// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Eckhart Wörner <ewoerner@kde.org> // #include "GpsdConnection.h" #include "M...
// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Eckhart Wörner <ewoerner@kde.org> // #include "GpsdConnection.h" #include "M...
Make gpsd positionprovider plugin compile with gpsd API 3, as of gpsd 2.90+.
Make gpsd positionprovider plugin compile with gpsd API 3, as of gpsd 2.90+. svn path=/trunk/KDE/kdeedu/marble/; revision=1063585
C++
lgpl-2.1
adraghici/marble,quannt24/marble,quannt24/marble,rku/marble,utkuaydin/marble,tzapzoor/marble,adraghici/marble,utkuaydin/marble,utkuaydin/marble,rku/marble,rku/marble,David-Gil/marble-dev,Earthwings/marble,oberluz/marble,tzapzoor/marble,AndreiDuma/marble,probonopd/marble,adraghici/marble,rku/marble,David-Gil/marble-dev,...
c86d9d9ada25af3e6178a5927c7c710e039c69a5
src/mongocxx/test/result/delete.cpp
src/mongocxx/test/result/delete.cpp
// Copyright 2014 MongoDB Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
// Copyright 2014 MongoDB Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
Remove rogue print statement from test
Remove rogue print statement from test
C++
apache-2.0
xdg/mongo-cxx-driver,mongodb/mongo-cxx-driver,xdg/mongo-cxx-driver,mongodb/mongo-cxx-driver,acmorrow/mongo-cxx-driver,mongodb/mongo-cxx-driver,acmorrow/mongo-cxx-driver,acmorrow/mongo-cxx-driver,xdg/mongo-cxx-driver,mongodb/mongo-cxx-driver,xdg/mongo-cxx-driver,acmorrow/mongo-cxx-driver
ffdc65edea2fa79e7ad8eaa5000ac58f2e6ad116
src/utils/syscallNumberToString.cpp
src/utils/syscallNumberToString.cpp
/* ** Copyright (C) - Triton ** ** This program is under the terms of the LGPLv3 License. */ #include <iostream> #include <Syscalls.h> #include <TritonTypes.h> extern const char *syscallmap[]; const char *syscallNumberLinux64ToString(uint64 syscallNumber) { if (syscallNumber > 0 && syscallNumber < (uint64) NB...
/* ** Copyright (C) - Triton ** ** This program is under the terms of the LGPLv3 License. */ #include <iostream> #include <Syscalls.h> #include <TritonTypes.h> extern const char *syscallmap[]; const char *syscallNumberLinux64ToString(uint64 syscallNumber) { if (syscallNumber >= 0 && syscallNumber < (uint64) N...
Fix - Failed to returns the syscall names
Fix - Failed to returns the syscall names
C++
apache-2.0
JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton
85623a9007b9e29e9a56e28a07ed334faa8d9946
test/asan/TestCases/large_allocator_unpoisons_on_free.cc
test/asan/TestCases/large_allocator_unpoisons_on_free.cc
// Test that LargeAllocator unpoisons memory before releasing it to the OS. // RUN: %clangxx_asan %s -o %t // The memory is released only when the deallocated chunk leaves the quarantine, // otherwise the mmap(p, ...) call overwrites the malloc header. // RUN: ASAN_OPTIONS=quarantine_size=1 %t #include <assert.h> #inc...
// Test that LargeAllocator unpoisons memory before releasing it to the OS. // RUN: %clangxx_asan %s -o %t // The memory is released only when the deallocated chunk leaves the quarantine, // otherwise the mmap(p, ...) call overwrites the malloc header. // RUN: ASAN_OPTIONS=quarantine_size=1 %t #include <assert.h> #inc...
Replace posix_memalign with memalign in test.
[asan] Replace posix_memalign with memalign in test. Android does not provide posix_memalign. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@201420 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
eeb82654e14556a0277bd24576b5cb218ab119e9
test/asan/TestCases/Linux/asan_default_suppressions.cc
test/asan/TestCases/Linux/asan_default_suppressions.cc
// Test that we use the suppressions from __asan_default_suppressions. // RUN: %clangxx_asan %s -o %t && not %run %t 2>&1 | FileCheck %s extern "C" { const char *__asan_default_suppressions() { return "FooBar"; } } // CHECK: AddressSanitizer: failed to parse suppressions int main() {} // Test that we use the suppress...
// Test that we use the suppressions from __asan_default_suppressions. // RUN: %clangxx_asan %s -o %t && not %run %t 2>&1 | FileCheck %s extern "C" { const char *__asan_default_suppressions() { return "FooBar"; } } // CHECK: AddressSanitizer: failed to parse suppressions int main() {}
Fix duplicate test code introduced by running "patch -p0" twice
Fix duplicate test code introduced by running "patch -p0" twice Sorry, SVN had some weird problems so I had to revert and reapply the patch locally a couple of times and didn't notice I've added file contents to the same file.... git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@230505 91177308-0d34-0410-b5e6-962...
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
0b017fade51da87981dce5fe556d3a99dd13dbd0
sdk-remote/src/liburbi/tests/checkfiles/values.cc
sdk-remote/src/liburbi/tests/checkfiles/values.cc
#include <tests.hh> BEGIN_TEST(values, client, ) client.setErrorCallback(callback(&dump)); client.setCallback(callback(&dump), "output"); client.send("output << 1;"); //= D output 1 client.send("output << \"coin\";"); //= D output "coin" client.send("error << non.existent;"); //= E error 1.39-50: Unknown identifier: ...
#include <tests.hh> BEGIN_TEST(values, client, ) client.setErrorCallback(callback(&dump)); client.setCallback(callback(&dump), "output"); client.send("output << 1;"); //= D output 1 client.send("output << \"coin\";"); //= D output "coin" client.send("error << nonexistent;"); //= E error 1.39-49: lookup failed: nonexi...
Update test output to k2.
Update test output to k2. Its the way of the future, the way of the future, the way of the future. * src/liburbi/tests/checkfiles/values.cc: Update expected error message.
C++
bsd-3-clause
aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi
a14551aa00e48a73d11dc294dec967c351419639
User.cpp
User.cpp
/* * User.cpp * * Created on: May 1, 2017 * Author: Daniel */ #include "User.hpp" using namespace std; User::User(string cuname, string chash) { uname = cuname; hash = chash; commandfd = 0; mediafd = 0; sessionkey = 0; } User::~User() { // TODO Auto-generated destructor stub } string User::getUnam...
/* * User.cpp * * Created on: May 1, 2017 * Author: Daniel */ #include "User.hpp" using namespace std; User::User(string cuname, string chash) { uname = cuname; hash = chash; commandfd = 0; mediafd = 0; sessionkey = 0; } User::~User() { // TODO Auto-generated destructor stub } string User::getUnam...
Remove check that causes more harm than good.
Remove check that causes more harm than good. (Doesn't allow resetting an fd to 0 when you quit or log out.)
C++
agpl-3.0
AAccount/dt_call_server
1b45ddfc45c9715c8f15a22e8d39d05c355bf379
chrome/browser/extensions/execute_script_apitest.cc
chrome/browser/extensions/execute_script_apitest.cc
// Copyright (c) 20109 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // This test failed at times on the Vista dbg buil...
// Copyright (c) 20109 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // EXTREMELY flaky, crashy, and bad. See http://cr...
Mark ExtensionApiTest.ExecuteScript DISABLED because it's not only flaky, but crashy and it has been ignored for weeks!
Mark ExtensionApiTest.ExecuteScript DISABLED because it's not only flaky, but crashy and it has been ignored for weeks! It's EXTREMELY flaky, #1 flaky test of all time with over 600 flips in the last three weeks. This test seriously needs some love. TBR=rafaelw TEST=none BUG=28630 Review URL: http://codereview.chrom...
C++
bsd-3-clause
nacl-webkit/chrome_deps,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,rogerwang/chromium,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,dednal/chrom...
d89b30a53ce10839cbfcbdf39a965be357d73162
vespalib/src/vespa/vespalib/websocket/acceptor.cpp
vespalib/src/vespa/vespalib/websocket/acceptor.cpp
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "acceptor.h" #include <vespa/vespalib/net/socket_spec.h> #include <functional> #ifdef __APPLE__ #include <poll.h> #endif namespace vespalib::ws { void Acceptor::accept_main(Handler<Socket> ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "acceptor.h" #include <vespa/vespalib/net/socket_spec.h> #include <functional> namespace vespalib::ws { void Acceptor::accept_main(Handler<Socket> &socket_handler) { while (!_is_closed)...
Revert "Avoid hang in vepalib::ws::Acceptor::accept_main on systems where"
Revert "Avoid hang in vepalib::ws::Acceptor::accept_main on systems where"
C++
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
17a18e2cfb860957b51923f1e5f01287f871653d
test/Modules/enum-codegen.cpp
test/Modules/enum-codegen.cpp
// RUN: rm -rf %t // RUN: %clang_cc1 -triple %itanium_abi_triple -fmodules -fmodules-cache-path=%t %s -emit-llvm -o - | FileCheck %s // CHECK: @_Z3varIiE = {{.*}} %union.union_type { i8 1 }, #pragma clang module build bar module bar { header "bar.h" { size 40 mtime 0 } export * } #pragma clang module contents #pr...
// RUN: rm -rf %t // RUN: %clang_cc1 -triple %itanium_abi_triple -fmodules -fmodules-cache-path=%t %s -emit-llvm -o - | FileCheck %s // CHECK: @{{.*var.*}} = {{.*}} %union.union_type { i8 1 }, #pragma clang module build bar module bar { header "bar.h" { size 40 mtime 0 } export * } #pragma clang module contents #...
Fix r361428 for Windows buildbots/mangling
Fix r361428 for Windows buildbots/mangling git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@361439 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
195afb727dea74755cc7e7a7c759c67bb15351b6
FunctionIsConstructible/FunctionIsConstructible.cpp
FunctionIsConstructible/FunctionIsConstructible.cpp
#include <iostream> int main(int argc, char* argv[]) { }
#include <functional> #include <type_traits> #include <iostream> int main(int argc, char* argv []) { auto f_1 = [](int x) { return x; }; std::cout << "auto f_1 = [](int x) { return x; };\n"; auto f_2 = [](int x, int y) { return x + y; }; std::cout << "auto f_2 = [](int x, int y) { return x + y; };\n"; std::cout...
Add source for demo of odd VS 2013 behaviour
Add source for demo of odd VS 2013 behaviour
C++
mit
jbcoe/CppSandbox,jbcoe/CppSandbox,jbcoe/CppSandbox
4b7d905f0abfbfc08c9ebc6a171efb0c15a3cf97
chrome/browser/extensions/extension_infobar_apitest.cc
chrome/browser/extensions/extension_infobar_apitest.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" #if defined(TOOLKI...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" #if defined(TOOLKI...
Revert 64157 - Marking ExtensionApiTest.Infobars as FAILS until 10.5 issue is resolved. Reverting in order to create a proper CL for it. BUG=60990
Revert 64157 - Marking ExtensionApiTest.Infobars as FAILS until 10.5 issue is resolved. Reverting in order to create a proper CL for it. BUG=60990 TBR=vangelis@chromium.org Review URL: http://codereview.chromium.org/4200006 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@64161 4ff67af0-8c30-449e-8e8b-ad334ec8d88...
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
31798a6bddc5265c50ece1aecf4d2abc66be7554
test/SemaCXX/ptrtomember.cpp
test/SemaCXX/ptrtomember.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x struct S { int i; int mem(int); }; int foo(int S::* ps, S *s) { return (s->*ps)(1); // expected-error {{called object type 'int' is not a function or function pointer}} } struct S2 { int bitfield : 1; }; int S2::*pf = &S2::bitfield; // expected-error ...
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x struct S { int i; int mem(int); }; int foo(int S::* ps, S *s) { return (s->*ps)(1); // expected-error {{called object type 'int' is not a function or function pointer}} } struct S2 { int bitfield : 1; }; int S2::*pf = &S2::bitfield; // expected-error ...
Add a test for !ptr-to-member (should fail)
Add a test for !ptr-to-member (should fail) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@128158 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
f017dbcd74550d8a25a100d730ee33959227be4c
test/kernel/unit/os_test.cpp
test/kernel/unit/os_test.cpp
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2016-2017 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // Yo...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2016-2017 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // Yo...
Update OS test, avoid hard-coded values
Update OS test, avoid hard-coded values
C++
apache-2.0
AndreasAakesson/IncludeOS,mnordsletten/IncludeOS,alfred-bratterud/IncludeOS,hioa-cs/IncludeOS,AndreasAakesson/IncludeOS,AnnikaH/IncludeOS,hioa-cs/IncludeOS,alfred-bratterud/IncludeOS,hioa-cs/IncludeOS,mnordsletten/IncludeOS,ingve/IncludeOS,hioa-cs/IncludeOS,AndreasAakesson/IncludeOS,AnnikaH/IncludeOS,AnnikaH/IncludeOS,...
ef0f4ffff148db7de97751f6a7aad3a809cd2040
test/unit/main.cc
test/unit/main.cc
#define BOOST_TEST_NO_MAIN #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE "VAST Unit Test Suite" #include "test.h" #include "vast/configuration.h" #include "vast/logger.h" int main(int argc, char* argv[]) { vast::configuration config; config.load("/dev/null"); vast::init(config); boost::unit_test::uni...
#define BOOST_TEST_NO_MAIN #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE "VAST Unit Test Suite" #include <ze.h> #include "test.h" #include "vast/configuration.h" #include "vast/logger.h" int main(int argc, char* argv[]) { vast::configuration config; config.load("/dev/null"); vast::init(config); boost...
Clean up after running tests.
Clean up after running tests.
C++
bsd-3-clause
pmos69/vast,pmos69/vast,pmos69/vast,mavam/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,mavam/vast,pmos69/vast,vast-io/vast,mavam/vast,vast-io/vast
5cb66e1b7496f9448964e2219c1962272ff2055a
schedule.cpp
schedule.cpp
#include <iostream> #include "pool.h" #include "machine.h" #include "job.h" int main () { Pool machine_pool; Job first_job(1, "one"); machine_pool.add_machine(Machine("one")); machine_pool.add_machine(Machine("two")); machine_pool.add_job(first_job); machine_pool.add_job(Job(2, "two")); ...
#include <iostream> #include "pool.h" #include "machine.h" #include "job.h" int main () { Pool machine_pool; machine_pool.add_machine(Machine("one")); machine_pool.add_machine(Machine("two")); Job first_job(1, "one"); machine_pool.add_job(first_job); machine_pool.add_job(Job(2, "two")); ...
Move variable definition to the point just before it is needed.
Move variable definition to the point just before it is needed.
C++
mit
mattportas/yejong
5e01951e632ebdb5236dfbbbc9ebcfecdf17fb1a
ouzel/assets/LoaderImage.cpp
ouzel/assets/LoaderImage.cpp
// Copyright (C) 2018 Elviss Strazdins // This file is part of the Ouzel engine. #include "LoaderImage.hpp" #include "Cache.hpp" #include "graphics/ImageDataSTB.hpp" #include "graphics/Texture.hpp" #define STBI_NO_PSD #define STBI_NO_HDR #define STBI_NO_PIC #define STBI_NO_GIF #define STBI_NO_PNM #include "stb_image.h...
// Copyright (C) 2018 Elviss Strazdins // This file is part of the Ouzel engine. #include "LoaderImage.hpp" #include "Cache.hpp" #include "graphics/ImageDataSTB.hpp" #include "graphics/Texture.hpp" namespace ouzel { namespace assets { LoaderImage::LoaderImage(): Loader(TYPE, {"jpg", "jpeg"...
Remove unneeded includes from the image loader
Remove unneeded includes from the image loader
C++
unlicense
elnormous/ouzel,elvman/ouzel,elnormous/ouzel,elvman/ouzel,elnormous/ouzel
ac7a6f2bc14c30ee46101aa8abae17e8683947d0
src/main.cpp
src/main.cpp
/* * Project: Particle Fire Explosion * Stage: 1 * File: main.cpp * Author: suyashd95 */ #include <iostream> #include <SDL.h> using namespace std; int main() { if(SDL_Init(SDL_INIT_VIDEO) < 0) { cout << "SDL_Init failed." << endl; return 1; } cout << "SDL_Init succeeded." << endl; SDL_Quit(); retur...
/* * Project: Particle Fire Explosion * Stage: 1 * File: main.cpp * Author: suyashd95 */ #include <iostream> #include <SDL.h> using namespace std; void setWindowToBlack(SDL_Window* window) { // We must call SDL_CreateRenderer in order for draw calls to affect this window. SDL_Renderer* renderer = SDL_Create...
Define a function setWindowToBlack() to create a window with a black background.
Define a function setWindowToBlack() to create a window with a black background.
C++
mit
SuyashD95/Particle-Fire-Explosion-Animation
560f4161b64346fee74116d2676e11f782df53ee
chrome/browser/extensions/extension_popup_apitest.cc
chrome/browser/extensions/extension_popup_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" IN_PROC_BROWSER_T...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" // Flaky, http://c...
Mark ExtensionApiTest.Popup as FLAKY, it is still flaky.
Mark ExtensionApiTest.Popup as FLAKY, it is still flaky. TBR=twiz BUG=46601 TEST=browser_tests Review URL: http://codereview.chromium.org/3356001 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@58208 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
c3e58aae01c76ba15ae4d9e35ec0911a26267e18
src/db/QueryAssign.cpp
src/db/QueryAssign.cpp
/* * Illarionserver - server for the game Illarion * Copyright 2011 Illarion e.V. * * This file is part of Illarionserver. * * Illarionserver is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, eith...
/* * Illarionserver - server for the game Illarion * Copyright 2011 Illarion e.V. * * This file is part of Illarionserver. * * Illarionserver is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, eith...
Fix setting NULL as db column value
Fix setting NULL as db column value
C++
agpl-3.0
Illarion-eV/Illarion-Server,Illarion-eV/Illarion-Server,Illarion-eV/Illarion-Server
41dc6db888c0125391944ebe771cda3eccc0e51d
tests/value.cpp
tests/value.cpp
#include <Value.h> namespace tests { namespace valueSuite { TEST(ValueSuite, UInt8Test) { Value<uint8_t, 1, 3, true> v0={{{13, 37}, {1, 1}, {3, 7}}}; Value<uint8_t, 1, 3, true> v2={{{73, 1}, {3, 1}, {7, 1}}}; EXPECT_EQ(v0, v0) << "Equally assigned values are not equal"; EXPECT_NE(v0, v2) << "Unequally assigned v...
#include <Value.h> namespace tests { namespace valueSuite { TEST(ValueSuite, uInt8Test) { Value<uint8_t, 1, 3, true> v0={{{13, 37}, {1, 1}, {3, 7}}}; Value<uint8_t, 1, 3, true> v2={{{73, 1}, {3, 1}, {7, 1}}}; EXPECT_EQ(v0, v0) << "Equally assigned values are not equal"; EXPECT_NE(v0, v2) << "Unequally assigned v...
Add vector comparision test case
Unit-Test: Add vector comparision test case
C++
bsd-3-clause
steup/ASEIA,steup/ASEIA
029d0380083eac5dbd65786a795677a47f0bc49f
src/Simulation/Simulation.cpp
src/Simulation/Simulation.cpp
#include "Simulation.hpp" using namespace aff3ct; using namespace aff3ct::simulation; Simulation ::Simulation(const factory::Simulation::parameters& simu_params) : params(simu_params) { } Simulation ::~Simulation() { } void Simulation ::build_communication_chain() { _build_communication_chain(); for (auto &m : m...
#include "Simulation.hpp" using namespace aff3ct; using namespace aff3ct::simulation; Simulation ::Simulation(const factory::Simulation::parameters& simu_params) : params(simu_params) { } Simulation ::~Simulation() { } void Simulation ::build_communication_chain() { _build_communication_chain(); for (auto &m : m...
Enable the statistics in the task only if the user want to display the stats.
Enable the statistics in the task only if the user want to display the stats.
C++
mit
aff3ct/aff3ct,aff3ct/aff3ct,aff3ct/aff3ct,aff3ct/aff3ct
d66161019390cd579a33bf600764df70d042b668
src/engine/events-manager.cc
src/engine/events-manager.cc
#include "engine/events-manager.h" #include "engine/game-manager.h" void EventsManager::EventsLoop(sf::RenderWindow* window) { sf::Event event; auto instances = GameManager::GetInstancesManager(); while (window->pollEvent(event)) { switch (event.type) { case sf::Event::Closed: window->close(...
#include "engine/events-manager.h" #include "engine/game-manager.h" void EventsManager::EventsLoop(sf::RenderWindow* window) { sf::Event event; auto instances = GameManager::GetInstancesManager(); while (window->pollEvent(event)) { switch (event.type) { case sf::Event::Closed: window->close(...
Send triggered events to the instances and the controllers
Send triggered events to the instances and the controllers
C++
mit
davidgasquez/loto,davidgasquez/loto
b093b08204ec21f46e198b2da92b419889108f70
test/test-0.cpp
test/test-0.cpp
#include "Course.h" #include <cstdio> #include <iostream> using namespace std; int main() { if (remove("test-0.sqlite") != 0) { cout << "Error with deletion of database file\n"; } else { cout << "Database file successfully deleted\n"; } // test instantiation of a Course object. cout << "Testing in...
#include "Course.h" #include "Assignment.h" #include <cstdio> #include <iostream> using namespace std; int main() { if (remove("test-0.sqlite") != 0) { cout << "Error with deletion of database file\n"; } else { cout << "Database file successfully deleted\n"; } // test instantiation of a Course objec...
Test adding items to the db
Test adding items to the db
C++
mit
honestcomrade/grade-plus
85a55861740caacf00cd1a427491873de380269a
thread_functor.cpp
thread_functor.cpp
#include <iostream> #include <vector> #include <thread> #include <algorithm> #include <cstdlib> class AccumulatorFunctor { public: void operator() (const std::vector<int> &v, unsigned long long &acm, unsigned int beginIndex, unsigned int endIndex) { acm = 0; for (unsigned int i = beginIndex; i < en...
Add c++11 thread creation with functor object. It generates random vector of 1024 integers and creates two threads to summarize bottom and top half respectfully.
Add c++11 thread creation with functor object. It generates random vector of 1024 integers and creates two threads to summarize bottom and top half respectfully. Compile with: g++ -std=c++11 thread_functor.cpp -o thread_functor -lpthread NOTE: It doesn't compile at the moment.
C++
apache-2.0
tisma/ctorious,tisma/ctorious
1d85a1f00bb9554873578d509b0b3aaf1d1d868f
test/FrontendC++/2009-04-21-DtorNames-dbg.cpp
test/FrontendC++/2009-04-21-DtorNames-dbg.cpp
// RUN: %llvmgcc -c -g %s -o - | llc -fast -f -o %t.s // RUN: %compile_c %t.s -o %t.o // PR4025 template <typename _Tp> class vector { public: ~vector () { } }; class Foo { ~Foo(); class FooImpl *impl_; }; namespace { class Bar; } class FooImpl { vector<Bar*> thing; }; Foo::~Foo() { delete impl_; }...
Test case for revision 69683.
Test case for revision 69683. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@69684 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/as...
eb732b3f21289cdc03d3419a709e7577dc67d13a
data_structures/Trees/Cpp/postOrderTraversal.cpp
data_structures/Trees/Cpp/postOrderTraversal.cpp
#include<iostream> using namespace std; struct node { int data; struct node *left; struct node *right; }; struct node *createNode(int val) { struct node *temp = (struct node *)malloc(sizeof(struct node)); temp->data = val; temp->left = temp->right = NULL; return temp; } void postorder(struct nod...
Add cpp program for postorder recursive Traversal
Add cpp program for postorder recursive Traversal Tree traversal is a form of graph traversal. It involves checking or printing each node in the tree exactly once. The postorder traversal of a binary search tree involves visiting each of the nodes in the tree in the order (Left, Right, Root).
C++
cc0-1.0
ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs...
f914ec76ece69497ebf45a09c59203b5b1fbcb72
tests/accessors.cpp
tests/accessors.cpp
// The MIT License (MIT) // Copyright (c) 2014 Rapptz // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, modify...
Add tests for new feature
Add tests for new feature
C++
mit
tempbottle/jsonpp,Rapptz/jsonpp,Rapptz/jsonpp,tempbottle/jsonpp
306ff9f7b76e4ec5d8c804c7548c043a00f475a6
other/SharedPtr.cpp
other/SharedPtr.cpp
/* * Copyright (C) 2015-2016 Pavel Dolgov * * See the LICENSE file for terms of use. */ #include <bits/stdc++.h> struct Foo { public: Foo() { std::cout << "Foo's constructor." << std::endl; } ~Foo() { std::cout << "Foo's destructor." << std::endl; } }; template<typename T> class ...
Add implementation of Shared Pointer
Add implementation of Shared Pointer
C++
mit
zer0main/problems,zer0main/problems,zer0main/problems
c6eee5a33ed5a831b2b5dffa971fae7f65a51a8f
190_Reverse_Bits.cpp
190_Reverse_Bits.cpp
/** * link: https://leetcode.com/problems/reverse-bits/ */ class Solution { public: uint32_t reverseBits(uint32_t n) { bitset<32> res(n); string str = res.to_string(); reverse(str.begin(), str.end()); return bitset<32>(str).to_ulong(); } };
Add solution for 190. Reverse Bits.
Add solution for 190. Reverse Bits.
C++
mit
wangyangkobe/leetcode,wangyangkobe/leetcode,wangyangkobe/leetcode,wangyangkobe/leetcode
466ce17a352e6d767f788fc65e3d04a30d307ee1
binary_search.cc
binary_search.cc
#include <cassert> #include <vector> template <class RandomAccessIterator, class KeyValue, class DefaultValue> DefaultValue recursive_binary_search( RandomAccessIterator start, RandomAccessIterator end, KeyValue key, DefaultValue default_value) { if (start == end) { return default_value; ...
Add C++ binary search implementation (recursive and iterative)
Add C++ binary search implementation (recursive and iterative)
C++
mit
gg/algorithms,gg/algorithms,gg/algorithms
0ab28633c66a4dc996ab8d1eb1a882d19814df7f
test/FrontendC++/2009-06-16-DebugInfoCrash.cpp
test/FrontendC++/2009-06-16-DebugInfoCrash.cpp
// RUN: %llvmgxx -c -emit-llvm %s -o /dev/null -g // This crashes if we try to emit debug info for TEMPLATE_DECL members. template <class T> class K2PtrVectorBase {}; template <class T> class K2Vector {}; template <class U > class K2Vector<U*> : public K2PtrVectorBase<U*> {}; class ScriptInfoManager { void PostRegist...
Test for llvm-gcc patch 73564.
Test for llvm-gcc patch 73564. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@73565 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/ll...
0a46753992f86b49144076e81ac651249f6af69b
src/image_annotator/image_annotation.cc
src/image_annotator/image_annotation.cc
#include "fish_detector/image_annotator/image_annotation.h" namespace fish_detector { namespace image_annotator { ImageAnnotation::ImageAnnotation(const std::string& image_file, const std::string& species, const std::string& subspecies, ...
Add framework for image annotation implementation
Add framework for image annotation implementation
C++
mit
BGWoodward/FishDetector
109469f21fa1b71013f473c332908155f3e8f2dd
solution029.cpp
solution029.cpp
/** * Divide Two Integers * * cpselvis (cpselvis@gmail.com) * August 25th, 2016 */ #include<iostream> #include<cmath> using namespace std; class Solution { public: int divide(int dividend, int divisor) { if (divisor == 0 || (dividend == INT_MIN && divisor == -1)) { return INT_MAX; } int...
Divide two numbers (use substract.)
Divide two numbers (use substract.)
C++
mit
cpselvis/leetcode
1abae6bd0f5550b8fbdff76081e814f99e1489c8
Evaluate_Reverse_Polish_Notation.cpp
Evaluate_Reverse_Polish_Notation.cpp
class Solution { public: stack<int> sta; bool isNum(string str) { if (str.size() > 1) return true; if (str[0] >= '0' && str[0] <= '9') return true; return false; } int evalRPN(vector<string>& tokens) { int a, b, i; string s; for (i ...
Create Evaluate reverse polish notation.cpp
Create Evaluate reverse polish notation.cpp
C++
mit
fanyingming/leetcode,fanyingming/leetcode
ab72ce3bd83118b682f11ce1c039b01b2444b9fa
cpp/simple_xml_parser_test.cc
cpp/simple_xml_parser_test.cc
/** \brief Test harness for the SimpleXmlParser class. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2015 Universitätsbiblothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU A...
Test harness for the new SimpleXMLParser class.
Test harness for the new SimpleXMLParser class.
C++
agpl-3.0
ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools
7da46d050d30a697ce7b18dd23626135a0a4ffd7
test16_p061.cpp
test16_p061.cpp
#include <iostream> #include<string> using namespace std; template <typename T> T fobj(T a, T b) { return a; } template <typename T> void fref(const T &a, const T &b) { } int main() { string s1("a value"); const string s2("another value"); fobj(s1, s2); fref(s1, s2); i...
Add solution for chapter 16 page 601
Add solution for chapter 16 page 601
C++
apache-2.0
chenshiyang/CPP--Primer-5ed-solution
061aaa79f7d8a2e93962e8296abaae13f0a7a715
tests/FlattenableFactoryToName.cpp
tests/FlattenableFactoryToName.cpp
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkAlphaThresholdFilter.h" #include "SkImage.h" #include "Test.h" static void test_flattenable(skiatest::Reporter* r, const SkFlattenabl...
Add test for previously unflattenables
Add test for previously unflattenables BUG=skia:4613 Review URL: https://codereview.chromium.org/1514373003
C++
bsd-3-clause
HalCanary/skia-hc,tmpvar/skia.cc,tmpvar/skia.cc,tmpvar/skia.cc,rubenvb/skia,tmpvar/skia.cc,rubenvb/skia,google/skia,HalCanary/skia-hc,google/skia,qrealka/skia-hc,rubenvb/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,google/skia,google/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platf...
5f06c8621d6d606860a315130e21de8eac0a7566
DataStructures/Graphs/snakes_ladders.cpp
DataStructures/Graphs/snakes_ladders.cpp
// http://www.geeksforgeeks.org/snake-ladder-problem-2/ #include <iostream> #include <cstring> #include <queue> using namespace std; struct QNode { int v; // vertex int d; //distance; }; int getMinDice(int moves[], int N) { bool *visited = new bool[N]; memset(visited, false, sizeof(visited)); queue<QNode> q; Q...
Implement Snakes and Ladders using BFS
Implement Snakes and Ladders using BFS Signed-off-by: WajahatSiddiqui <3c3ea4adfdf19decee174766aef6add34b32b7f0@gmail.com>
C++
apache-2.0
WajahatSiddiqui/Workspace,WajahatSiddiqui/Workspace,WajahatSiddiqui/Workspace
efa807c350136424423717615328b5a729cf002f
exercises/10/spiral-traversal.cpp
exercises/10/spiral-traversal.cpp
#include <iostream> using std::cout; const int MAX = 20; void spiral_traversal(int matrix[][MAX], int rows, int cols) { int start_row = 0; int end_row = rows - 1; int start_column = 0; int end_column = cols - 1; while (start_row <= end_row && start_column <= end_column) { for (int i = start_column; i ...
Add solution to spiral traversal of matrix problem
Add solution to spiral traversal of matrix problem
C++
mit
dimitaruzunov/up-2016
ec44b538c9a3828348e719a2a8d44b0b240122d8
geometry/spatial/time_interpolator_test.cc
geometry/spatial/time_interpolator_test.cc
#include "testing/gtest.hh" #include "geometry/spatial/time_interpolator.hh" namespace geometry { namespace spatial { TEST(TimeInterpolatorTest, time_interpolator) { const estimation::TimePoint t0 = {}; const estimation::TimeDuration dt = estimation::to_duration(1.0); const std::vector<geometry::spatial::Time...
Add test for time interpolator
Add test for time interpolator
C++
mit
jpanikulam/experiments,jpanikulam/experiments,jpanikulam/experiments,jpanikulam/experiments
c89ce8b09a4373834d008c83d86c88b4a29b450c
chapter19/chapter19_ex13.cpp
chapter19/chapter19_ex13.cpp
// Chapter 19, exercise 13: Tracer class where constructor and destructor print // strings (given as argument to constructor). Use it to see where RAII objects // will do their job (local objects, member objects, global objects, objects // allocated with new...), then add copy constructor and copy assignment to see // ...
Add Chapter 19, exercise 13
Add Chapter 19, exercise 13
C++
mit
bewuethr/stroustrup_ppp,bewuethr/stroustrup_ppp
cd9c78c0b07cbefa86069871b1a7d1df573cd09b
cpp/043_Multiply_Strings.cpp
cpp/043_Multiply_Strings.cpp
// 43. Multiply Strings /** * Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2. * * Note: * * 1. The length of both num1 and num2 is < 110. * 2. Both num1 and num2 contains only digits 0-9. * 3. Both num1 and num2 does not contain any leading zero. * 4....
Add Solution for 043 Multiply Strings
Add Solution for 043 Multiply Strings
C++
mit
kuangami/LeetCode,kuangami/LeetCode,kuangami/LeetCode
a1d8e3b2ed3d1f15860cc72230d01059af1a8694
yukicoder/521_CheesesandaMousetrap/Main.cpp
yukicoder/521_CheesesandaMousetrap/Main.cpp
#include <iostream> using namespace std; int main() { int N, K; cin >> N >> K; if (K == 0 || K > N) { cout << 0 << endl; return 0; } if (N % 2 == 1 && K == (N + 1) / 2) { cout << N - 1 << endl; } else { cout << N - 2 << endl; } return 0; }
Create : 521 Cheeses and a Mousetrap
Create : 521 Cheeses and a Mousetrap
C++
mit
KoKumagai/exercises,KoKumagai/exercises,KoKumagai/exercises
d898c50389548ad49a44700088e7cb330214a0bc
test/CodeGenCXX/cxx1y-variable-template-linkage.cpp
test/CodeGenCXX/cxx1y-variable-template-linkage.cpp
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -std=c++1y -O1 -disable-llvm-optzns %s -o - | FileCheck %s -check-prefix=CHECKA -check-prefix=CHECK // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -std=c++1y -O1 -disable-llvm-optzns -fcxx-exceptions %s -o - | FileCheck %s -check-prefix=CHEC...
Add test case for fix of linkage bug that miscompiled variable templates instantiated from similarly named local types (cf. r212233)
Add test case for fix of linkage bug that miscompiled variable templates instantiated from similarly named local types (cf. r212233) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@213987 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
08cf5dbea7b19890c4df304739f70606460cf19d
linked-list/testLinkedList.cpp
linked-list/testLinkedList.cpp
/* This program tests class LinkedList */ #include<iostream> #include<vector> #include "linkedlist.h" // tests insertion void testInsert(){ std::cout<<"Test Insert\n"; // define vector of values std::vector<int> values = {6,5,4,3,2,1}; // create linked list LinkedList ll; // insert values into linked list...
Add test case for insertion, retrieval and display
Add test case for insertion, retrieval and display
C++
mit
rohitkhilnani/cpp-And-Me
a0b02e109cf736c7c24b7e9f6974cd7fc2b16b52
benchmarks/fast_detector.cc
benchmarks/fast_detector.cc
#include <chrono> #include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #include <vpp/vpp.hh> #include <vpp/utils/opencv_bridge.hh> #include <vpp/algorithms/FAST_detector/FAST.hh> #include "get_time.hh" int main(int argc, char* argv[]) { using namespace vpp; if (argc != 3) {...
Add benchmark of the fast detector
Add benchmark of the fast detector
C++
mit
zyannick/vpp,matt-42/vpp,zyannick/vpp,matt-42/vpp,matt-42/vpp,zyannick/vpp
6e75fdc54aba6ba45036e92abf59894b9178c1ec
linkedlist/82.cc
linkedlist/82.cc
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* deleteDupli...
Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List II
C++
apache-2.0
MingfeiPan/leetcode,MingfeiPan/leetcode,MingfeiPan/leetcode,MingfeiPan/leetcode,MingfeiPan/leetcode
0466f012f405eda5336f57e081674105c691d54f
HackerRank/c++_stl/dequeue_stl.cpp
HackerRank/c++_stl/dequeue_stl.cpp
#include <iostream> #include <deque> using namespace std; // This is a very well known problem that can easily be found // in google as 'maximum sliding window' where basically we are // moving over an array printing each max value for each sub-array // (or window). You can take a look to the explanation and // code ...
Add first version of C++ stl deque.
Add first version of C++ stl deque. Signed-off-by: Rene Sapiens <695da3b4459f3ce51494429e951e34f7ee371262@gmail.com>
C++
mit
renesapiens/fun
d49c7b61d9d5682565524e845bd8d0dc90294e45
test/CodeGenCXX/default-constructor-default-argument.cpp
test/CodeGenCXX/default-constructor-default-argument.cpp
// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s // Check that call to constructor for struct A is generated correctly. struct A { A(int x = 2); }; struct B : public A {}; B x; // CHECK: call void @_ZN1AC1Ei
Add code generation test for r86500.
Add code generation test for r86500. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@86574 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
a69a58991fdf67d6d26aff9028ced102142bfcc6
test/Modules/cxx-many-overloads.cpp
test/Modules/cxx-many-overloads.cpp
// RUN: rm -rf %t // RUN: %clang_cc1 -x objective-c++ -fmodules -fmodule-cache-path %t -I %S/Inputs %s -verify // expected-no-diagnostics @import cxx_many_overloads; void g() { f(N::X<0>()); }
// RUN: rm -rf %t // RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -verify // expected-no-diagnostics @import cxx_many_overloads; void g() { f(N::X<0>()); }
Fix conflict between r174685 and r174645 (rename -fmodule-cache-path <foo> to -fmodules-cache-path=<foo>).
Fix conflict between r174685 and r174645 (rename -fmodule-cache-path <foo> to -fmodules-cache-path=<foo>). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@174690 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
7a039eb88d03b35311cb2c99f84eb76634f37a71
test/CodeGenCXX/temp-1.cpp
test/CodeGenCXX/temp-1.cpp
// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 && struct A { A(); ~A(); void f(); }; void f() { // RUN: grep "call void @_ZN1AC1Ev" %t | count 2 && // RUN: grep "call void @_ZN1AD1Ev" %t | count 2 A(); A().f(); }
Add a simple test for temporaries.
Add a simple test for temporaries. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@79147 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
4c7c2fc940873aee416eb6039bd06598a5a40dbc
test/msan/stack-origin2.cc
test/msan/stack-origin2.cc
// Test that on the second entry to a function the origins are still right. // RUN: %clangxx_msan -m64 -O0 %s -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out // RUN: %clangxx_msan -m64 -O1 %s -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out // RUN: %clangxx_msan -m64 -O2 %s -o %t && not ...
Add one more test for the handling of stack origins.
[msan] Add one more test for the handling of stack origins. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@223229 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
687f04305d79d7800435a2a779f6daa74ff75beb
tests/compiler/dynamic_stackalloc.cpp
tests/compiler/dynamic_stackalloc.cpp
#include "cxx_runtime.h" #include "output.h" Output output; int bar(char *buffer, int size) { char tmp[size * 2]; int index = 0; output << "enter bar\n"; for (int i = 0; i < size; i++) { if (buffer[i] == 'i') { tmp[index++] = '~'; tmp[index++] = 'i'; } else tmp[index++] = buffer[i]; } memc...
Add test for dynamic stack allocation
Add test for dynamic stack allocation
C++
apache-2.0
FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,hoangt/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,hoangt/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziPr...
7c75c0492604f5098d7f8c880bde8ddfbf487bc8
homework/1/calculate-expressions.cpp
homework/1/calculate-expressions.cpp
#include <iostream> #include <fstream> #include <stack> using std::ifstream; using std::ofstream; using std::ios; using std::cout; using std::stack; bool is_digit(char c) { return c >= '0' && c <= '9'; } void apply_operation(char operation, stack<double>& operands) { double second_operand = operands.top(); ope...
Add solution to homework 1
Add solution to homework 1
C++
mit
dimitaruzunov/data-structures-fmi-2016
431f0c250b4e53f16be0bf09042a8ad0c71bd305
test/Format/disable-format.cpp
test/Format/disable-format.cpp
// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp // RUN: clang-format -style=none -i %t.cpp // RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s // CHECK: int i; int i;
Add basic test for -style=none.
clang-format: Add basic test for -style=none. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@209447 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
1dafc6b7fa79f3d3b25e2ce6994182e6b95abd7d
Cpp/gtest.cpp
Cpp/gtest.cpp
#if (defined(__GNUC__) && (__GNUC__ > (major) || __GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) # define <+FILE_CAPITAL+>_AVAILABLE_GCC_WARNING_PRAGMA #endif #ifdef <+FILE_CAPITAL+>_AVAILABLE_GCC_WARNING_PRAGMA # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Weffc++" # if __cplusplus >= 201103L ...
Add a template for Google Test
Add a template for Google Test
C++
mit
koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate