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 |
|---|---|---|---|---|---|---|---|---|---|
f6b89d6082c92fc750f98b2fbf9eb1d2d6862d70 | Sources/hspp/Cards/Entity.cpp | Sources/hspp/Cards/Entity.cpp | // Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <hspp/Cards/Entity.h>
namespace Hearthstonepp
{
Entity::Enti... | // Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <hspp/Cards/Entity.h>
namespace Hearthstonepp
{
Entity::Enti... | Insert card game tags in constructor | fix: Insert card game tags in constructor
| C++ | mit | Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp |
3c475aee9bac91a72ebf57f435a3e18f46c33266 | src/windows/selection_window.cpp | src/windows/selection_window.cpp | #include "selection_window.h"
#include "../components/description_component.h"
#include "../core/game_engine.h"
#include "inspection_window.h"
#include "listbox.h"
void SelectionWindow::setup() {
setEntities(static_cast<EntityHolder*>(getArgs()));
setEscapeBehaviour(Window::EscapeBehaviour::CloseWindow);
... | #include "selection_window.h"
#include "../components/description_component.h"
#include "../core/game_engine.h"
#include "inspection_window.h"
#include "listbox.h"
void SelectionWindow::setup() {
setEntities(static_cast<EntityHolder*>(getArgs()));
setEscapeBehaviour(Window::EscapeBehaviour::CloseWindow);
... | Align list items in selection window | Align list items in selection window
| C++ | mit | pkuehne/fortress,pkuehne/fortress |
8918dcc9594dd10564c4ed438643d2b74a650637 | test/tests/tst_configuration.cpp | test/tests/tst_configuration.cpp | #include "tst_configuration.h"
void TST_Configuration::test()
{
CWF::Configuration configuration("");
configuration.setHost(QHostAddress("127.0.0.1"));
configuration.setPort(8080);
configuration.setDomain("www.test.com.xyz");
QVERIFY2(configuration.getHost().toString() == "127.0.0.1", "Should be 1... | #include "tst_configuration.h"
void TST_Configuration::test()
{
CWF::Configuration configuration("");
configuration.setHost(QHostAddress("127.0.0.1"));
configuration.setPort(8080);
configuration.setDomain("www.test.com.xyz");
configuration.setMaxThread(200);
QVERIFY2(configuration.getHost().to... | Upgrade tests for Configuration for threads | Upgrade tests for Configuration for threads
| C++ | mit | HerikLyma/CPPWebFramework,HerikLyma/CPPWebFramework |
544ec550f5bf850a51fef4f90f7ba5fe17fe5b12 | webkit/extensions/v8/playback_extension.cc | webkit/extensions/v8/playback_extension.cc | // Copyright (c) 2006-2008 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 "config.h"
#include "webkit/extensions/v8/playback_extension.h"
namespace extensions_v8 {
const char* kPlaybackExtensionName = "v8/Pla... | // Copyright (c) 2006-2008 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 "config.h"
#include "webkit/extensions/v8/playback_extension.h"
namespace extensions_v8 {
const char* kPlaybackExtensionName = "v8/Pla... | Update playback extension so that javascript functions return consistent (but not constant) values in an attempt to preserve the functionality but improve compatibility of the extension. | Update playback extension so that javascript functions return consistent (but not constant) values in an attempt to preserve the functionality but improve compatibility of the extension.
Review URL: http://codereview.chromium.org/62165
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@13688 0039d316-1c4b-4281-b951... | C++ | bsd-3-clause | yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,ropik/chromium,Crystalnix... |
2c4d302145f711244eacc180b86bc19cf8dbd102 | test/unit/math/mix/scal/meta/broadcast_array_test.cpp | test/unit/math/mix/scal/meta/broadcast_array_test.cpp | #include <gtest/gtest.h>
#include <stan/math/fwd/core/fvar.hpp>
#include <stan/math/rev/core/var.hpp>
#include <stan/math/prim/scal/meta/broadcast_array.hpp>
TEST(foo, bar) {
using stan::math::detail::broadcast_array;
using stan::math::fvar;
using stan::math::var;
fvar<var> fv(0.0);
broadcast_array<fvar<var... | #include <gtest/gtest.h>
#include <stan/math/fwd/core/fvar.hpp>
#include <stan/math/rev/core/var.hpp>
#include <stan/math/prim/scal/meta/broadcast_array.hpp>
TEST(foo, bar) {
using stan::math::detail::broadcast_array;
using stan::math::fvar;
using stan::math::var;
fvar<var> fv(1.0, 2.1);
broadcast_array<fva... | Fix broadcast_array test to use new fvar ctor | Fix broadcast_array test to use new fvar ctor
| C++ | bsd-3-clause | stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math |
4cc573a2327b81087eefb1eb70083486dacf58df | Magick++/fuzz/encoder_fuzzer.cc | Magick++/fuzz/encoder_fuzzer.cc | #include <cstdint>
#include <Magick++/Blob.h>
#include <Magick++/Image.h>
#include "utils.cc"
#define FUZZ_ENCODER_STRING_LITERAL_X(name) FUZZ_ENCODER_STRING_LITERAL(name)
#define FUZZ_ENCODER_STRING_LITERAL(name) #name
#ifndef FUZZ_ENCODER
#define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL_X(FUZZ_IMAGEMAGICK_ENCODER)... | #include <cstdint>
#include <Magick++/Blob.h>
#include <Magick++/Image.h>
#include "utils.cc"
#define FUZZ_ENCODER_STRING_LITERAL_X(name) FUZZ_ENCODER_STRING_LITERAL(name)
#define FUZZ_ENCODER_STRING_LITERAL(name) #name
#ifndef FUZZ_ENCODER
#define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL_X(FUZZ_IMAGEMAGICK_ENCODER)... | Prepare for flag to allow writing. | Prepare for flag to allow writing.
| C++ | apache-2.0 | Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick |
e1146af1e091d9163f9f3c25deba8f25f836c6af | src/service_name.cpp | src/service_name.cpp | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 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.
// You may... | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 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.
// You may... | Remove erroneous extern C from service name | service: Remove erroneous extern C from service name
| C++ | apache-2.0 | mnordsletten/IncludeOS,AndreasAakesson/IncludeOS,AndreasAakesson/IncludeOS,mnordsletten/IncludeOS,mnordsletten/IncludeOS,alfred-bratterud/IncludeOS,AndreasAakesson/IncludeOS,mnordsletten/IncludeOS,alfred-bratterud/IncludeOS,ingve/IncludeOS,AnnikaH/IncludeOS,AnnikaH/IncludeOS,mnordsletten/IncludeOS,AndreasAakesson/Inclu... |
9c0066563e64c25b23817016f4ad7fd3a07d7fe6 | src/DependenciesResolver.cpp | src/DependenciesResolver.cpp | //=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================================... | //=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================================... | Create the visitor for includes | Create the visitor for includes
| C++ | mit | wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic,wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic |
b332f5e7a90261b05888d924a2090fafecb8b9b7 | Sources/Rosetta/Tasks/SimpleTasks/AddEnchantmentTask.cpp | Sources/Rosetta/Tasks/SimpleTasks/AddEnchantmentTask.cpp | // This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <Rosetta/Cards/Cards.hpp>
#include <Rosetta/Tasks/Sim... | // This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <Rosetta/Cards/Cards.hpp>
#include <Rosetta/Tasks/Sim... | Add code to include entities and change target to entity | fix: Add code to include entities and change target to entity
| C++ | mit | Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp |
483c2599d735543c64e19d950f63c99fa284add5 | src/Watermark/View/WatermarkDataFactory.cpp | src/Watermark/View/WatermarkDataFactory.cpp | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "WatermarkDataFactory.h"
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
WatermarkDataFactory::WatermarkDataFactory(const std::string& appName,
con... | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "WatermarkDataFactory.h"
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
WatermarkDataFactory::WatermarkDataFactory(const std::string& appName,
con... | Watermark nows points to eegeo.com. Buddy: Ian H | Watermark nows points to eegeo.com. Buddy: Ian H
| C++ | bsd-2-clause | eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/ee... |
b7211c7788d4053bb8b405550657d1adc0dadefd | programs/utils/bts_create_key.cpp | programs/utils/bts_create_key.cpp | #include <bts/blockchain/address.hpp>
#include <fc/crypto/elliptic.hpp>
#include <iostream>
int main( int argc, char** argv )
{
if( argc == 1 )
{
auto key = fc::ecc::private_key::generate();
std::cout << "private key: "
<< std::string( key.get_secret() ) <<"\n";
std::cout << ... | #include <bts/blockchain/address.hpp>
#include <fc/crypto/elliptic.hpp>
#include <fc/io/json.hpp>
#include <fc/reflect/variant.hpp>
#include <fc/filesystem.hpp>
#include <iostream>
int main( int argc, char** argv )
{
if( argc == 1 )
{
auto key = fc::ecc::private_key::generate();
std::cout << "privat... | Add option to write created key to a JSON file for use in bts_xt_client. | Add option to write created key to a JSON file for use in bts_xt_client.
| C++ | unlicense | bitshares/bitshares-0.x,camponez/bitshares,denkhaus/bitsharesx,frrp/bitshares,frrp/bitshares,frrp/bitshares,denkhaus/bitsharesx,bitshares/bitshares,bitshares/devshares,FollowMyVote/bitshares,bitshares/bitshares-0.x,frrp/bitshares,dacsunlimited/dac_play,bitshares/devshares,FollowMyVote/bitshares,camponez/bitshares,bitsh... |
00036b166e3224f8be7c3336961dda4e55b74cdb | MiniZincIDE/elapsedtimer.cpp | MiniZincIDE/elapsedtimer.cpp | #include "elapsedtimer.h"
ElapsedTimer::ElapsedTimer(QObject* parent) : QObject(parent) {
connect(&_interval, &QTimer::timeout, this, [=] () {
emit timeElapsed(_elapsed.elapsed());
});
}
qint64 ElapsedTimer::elapsed()
{
if (_elapsed.isValid()) {
return _elapsed.elapsed();
}
return ... | #include "elapsedtimer.h"
ElapsedTimer::ElapsedTimer(QObject* parent) : QObject(parent) {
connect(&_interval, &QTimer::timeout, this, [=] () {
emit timeElapsed(_elapsed.elapsed());
});
}
qint64 ElapsedTimer::elapsed()
{
if (_elapsed.isValid()) {
return _elapsed.elapsed();
}
return ... | Fix elapsed timer bug when stopped multiple times | Fix elapsed timer bug when stopped multiple times
| C++ | mpl-2.0 | MiniZinc/MiniZincIDE,MiniZinc/MiniZincIDE,MiniZinc/MiniZincIDE,MiniZinc/MiniZincIDE |
463c2c78b100cd433d9943cf727fc0f6a8ad497f | src/expectation/unexpected_throw.cc | src/expectation/unexpected_throw.cc | #include <string>
#include <ccspec/expectation/unexpected_throw.h>
namespace ccspec {
namespace expectation {
using std::string;
UnexpectedThrow::UnexpectedThrow(const std::exception& cause)
: cause_(cause) {}
string UnexpectedThrow::toString() {
return string("Unexpected exception: ") + cause_.what();
}
}... | #include <string>
#include <ccspec/expectation/unexpected_throw.h>
namespace ccspec {
namespace expectation {
using std::exception;
using std::string;
UnexpectedThrow::UnexpectedThrow(const exception& cause)
: cause_(cause) {}
string UnexpectedThrow::toString() {
return string("Unexpected exception: ") + ca... | Include std::exception into the namespace | Include std::exception into the namespace
| C++ | mit | tempbottle/ccspec,tempbottle/ccspec,zhangsu/ccspec,michaelachrisco/ccspec,zhangsu/ccspec,tempbottle/ccspec,michaelachrisco/ccspec,zhangsu/ccspec,michaelachrisco/ccspec |
1b5b4454b41226123136c4a95fa5f0d522d596be | main.cpp | main.cpp |
// Includes.
#include "UI/mainwindow.h"
#include "App/App.h"
// Qt.
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
App app;
MainWindow w(&app);
w.setMinimumSize(640, 480);
w.show();
app.setUI(&w);
return a.exec();
}
|
// Includes.
#include "UI/mainwindow.h"
#include "App/App.h"
// Qt.
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
App app;
MainWindow w(&app);
w.setMinimumSize(640, 480);
w.show();
app.setUI(&w);
app.setDelegate(&w);
return a.exec();
}
| Set MainWindow as delegate of app. | Set MainWindow as delegate of app.
| C++ | mit | jefaramvangorp/nodin |
4fd7363b3df6acb94fed2190b2573fbd8c96eafb | test_problems/VPsilane_test/silane_equil.cpp | test_problems/VPsilane_test/silane_equil.cpp | /*
* Copyright 2002 California Institute of Technology
*/
#include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h"
#include "cantera/thermo/IdealSolnGasVPSS.h"
#include "cantera/thermo/ThermoFactory.h"
using namespace std;
using namespace Cantera;
int main(int argc, char** argv)
{
#ifdef _MSC_VER
_se... | /*
* Copyright 2002 California Institute of Technology
*/
#include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h"
#include "cantera/thermo/IdealSolnGasVPSS.h"
#include "cantera/thermo/ThermoFactory.h"
using namespace std;
using namespace Cantera;
int main(int argc, char** argv)
{
#ifdef _MSC_VER
_se... | Fix failure of VPsilane_test when debug_verbose=y | [Test] Fix failure of VPsilane_test when debug_verbose=y
Partially addresses Issue 69.
git-svn-id: e76dbe14710aecee1ad27675521492cea2578c83@2433 02a645c2-efd0-11dd-984d-ab748d24aa7e
| C++ | bsd-3-clause | Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn |
e20c282100163e898c57f8672693f129d2f3c60c | qterm/qpiekey.cpp | qterm/qpiekey.cpp | #include <qpiekey.h>
#include <QSizePolicy>
#include <QPainter>
#include <QPaintEvent>
QPieKey::QPieKey(QWidget *parent) : QWidget(parent)
{
bitmap = new QBitmap(40,40);
QPainter painter(bitmap);
bitmap->clear();
painter.drawEllipse(0, 0, 40, 40);
setFixedSize(40, 40);
setMask(*bitmap);
}
QPi... | #include <qpiekey.h>
#include <QSizePolicy>
#include <QPainter>
#include <QPaintEvent>
#define SIZE 60
QPieKey::QPieKey(QWidget *parent) : QWidget(parent)
{
bitmap = new QBitmap(SIZE*2,SIZE*2);
QPainter painter(bitmap);
setFixedSize(SIZE*2, SIZE*2);
bitmap->clear();
painter.setBrush(Qt::color1);... | Set the transparent region appropriately | Set the transparent region appropriately
| C++ | apache-2.0 | absmall/libterm,absmall/libterm |
9d9f5b589915c7afcfe6f3da07a2764059881d57 | src/main.cpp | src/main.cpp | #include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char* argv[]) {
// Print help
if (argc == 1 || strcmp(argv[0], "--help") == 0) {
cout << "GLSLPreprocessor is a simple preprocessor for GLSL files." << endl
<< "Usage:" << endl
... | #include <cstring>
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main(int argc, const char* argv[]) {
// Print help
if (argc == 1 || strcmp(argv[0], "--help") == 0) {
cout << "GLSLPreprocessor is a simple preprocessor for GLSL files." << endl
<< "Usage:... | Write output to output file | Write output to output file
| C++ | unlicense | Chainsawkitten/GLSLPreprocessor |
b8b3de9804081960593b05911c367c045b39190a | unittests/messages_unittest.cpp | unittests/messages_unittest.cpp | #include "gtest/gtest.h"
#include "paxos/messages.hpp"
TEST(MessageTest, testMessageResponseUpdatesSenderAndReceiver)
{
Replica from("from_hostname");
Replica to("to_hostname");
Decree the_decree(from, 1, "", DecreeType::UserDecree);
Message m(the_decree, from, to, MessageType::RequestMessage);
... | #include "gtest/gtest.h"
#include "paxos/messages.hpp"
TEST(MessageTest, testMessageResponseUpdatesSenderAndReceiver)
{
Replica from("from_hostname");
Replica to("to_hostname");
Decree the_decree(from, 1, "", DecreeType::UserDecree);
Message m(the_decree, from, to, MessageType::RequestMessage);
... | Add unittests for message type hash | Add unittests for message type hash
| C++ | mit | dgkimura/paxos |
8ab0489409ba34171859aca18fcbbc106dbc3156 | hackerrank.com/crush/main.cpp | hackerrank.com/crush/main.cpp | #include <iostream>
using namespace std;
#define out if(1)cout
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
#define abs(a) (((a)<0)?(-(a)):(a))
static const int MAXN = 10000001;
typedef long long int i64;
static i64 ar[MAXN];
int main()
{
int N, M;
cin >> N >> M;
for (int i = 0; i... | #include <iostream>
using namespace std;
#define out if(1)cout
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
#define abs(a) (((a)<0)?(-(a)):(a))
static const int MAXN = 10000001;
typedef long long int i64;
static i64 ar[MAXN];
int main()
{
ios::sync_with_stdio(false);
int N, M;
cin... | Improve iostream with stdio unsync: real 0m1.029s -> 0m1.020s user 0m0.538s -> 0m0.569s sys 0m0.311s -> 0m0.262s refs: 148,846,05 -> 53,570,098 | Improve iostream with stdio unsync:
real 0m1.029s -> 0m1.020s
user 0m0.538s -> 0m0.569s
sys 0m0.311s -> 0m0.262s
refs: 148,846,05 -> 53,570,098
| C++ | mit | bepec/challenge,bepec/challenge,bepec/challenge,bepec/challenge |
63b07dca0d175d834dd6f9aa37af625e9591f54f | errors.cpp | errors.cpp | /**
* Copyright © 2017 IBM Corporation
*
* 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 agr... | /**
* Copyright © 2017 IBM Corporation
*
* 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 agr... | Use s.c_str() in log messages | Use s.c_str() in log messages
Resolves openbmc/openbmc#2905
Tested: static_assert only
Change-Id: Ib39ca78a6edd415263c75175190da3b3ee7ab183
Signed-off-by: Joseph Reynolds <246505c32a29ce2fea61422e228781bf77138944@us.ibm.com>
| C++ | apache-2.0 | openbmc/phosphor-inventory-manager,openbmc/phosphor-inventory-manager |
451790a7f7d0cfc7a48ec36af090914b8cce390a | src/TimeStamp.cpp | src/TimeStamp.cpp | /*
* TimeStamp.cpp
*
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2001, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include <log4cpp/TimeStamp.hh>
#include <cstring>
#ifdef LOG4CPP_HAVE_GETTIMEOFDAY
#... | /*
* TimeStamp.cpp
*
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2001, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include <log4cpp/TimeStamp.hh>
#include <cstring>
#ifdef LOG4CPP_HAVE_GETTIMEOFDAY
#... | Add LOG4CPP_EXPORT for win32 dll | Add LOG4CPP_EXPORT for win32 dll
| C++ | lgpl-2.1 | adobni/log4cpp,halex2005/log4cpp,iocroblab/log4cpp,ksmyth/log4cpp,iocroblab/log4cpp,adobni/log4cpp,orocos-toolchain/log4cpp,halex2005/log4cpp,orocos-toolchain/log4cpp,iocroblab/log4cpp,ksmyth/log4cpp,ksmyth/log4cpp,adobni/log4cpp,halex2005/log4cpp |
c83cf5ad560ec525852b1f789109eae9868147e3 | cppframework/Foo.cpp | cppframework/Foo.cpp | #include "Foo.hh"
#include <string>
#include <iostream>
#define EXPORT __attribute__((visibility("default")))
EXPORT
int Foo::PrintFoo()
{
std::cout << "This is in a C++ in a dynamically linked framework!" << std::endl;
return 1;
}
| #include "Foo.hh"
#include <string>
#include <iostream>
#define EXPORT __attribute__((visibility("default")))
EXPORT
int Foo::PrintFoo()
{
#if __cplusplus
std::cout << "C++ environment detected." << std::endl;
#endif
std::cout << "Foo::PrintFoo() called." << std::endl;
return 1;
}
| Add logging to show c++ environment. | Add logging to show c++ environment.
| C++ | mit | UfoProjects/ios-cmake,sheldonth/ios-cmake,sheldonth/ios-cmake,UfoProjects/ios-cmake |
67b3f891465646dfc1338b843e9ac204d53caafc | src/connectors/wire/WireServer.cpp | src/connectors/wire/WireServer.cpp | #include <cucumber-cpp/internal/connectors/wire/WireServer.hpp>
namespace cucumber {
namespace internal {
SocketServer::SocketServer(const ProtocolHandler *protocolHandler) :
protocolHandler(protocolHandler),
ios(),
acceptor(ios) {
}
void SocketServer::listen(const port_type port) {
tcp::endpoint end... | #include <cucumber-cpp/internal/connectors/wire/WireServer.hpp>
namespace cucumber {
namespace internal {
SocketServer::SocketServer(const ProtocolHandler *protocolHandler) :
protocolHandler(protocolHandler),
ios(),
acceptor(ios) {
}
void SocketServer::listen(const port_type port) {
tcp::endpoint end... | Disable Nagle on TCP socket: too slow for interactive | Disable Nagle on TCP socket: too slow for interactive
The wire-protocol is latency-bound, not bandwidth-constrained. So
disable the Nagle algorithm to prevent large delays from hurting our
performance too much.
NOTE: Considering that we are implementing a request-reply protocol it
might be possible to improve perform... | C++ | mit | muggenhor/cucumber-cpp,cucumber/cucumber-cpp,konserw/cucumber-cpp,cucumber/cucumber-cpp,paoloambrosio/cucumber-cpp,meshell/cucumber-cpp,paoloambrosio/cucumber-cpp,meshell/cucumber-cpp,cucumber/cucumber-cpp,muggenhor/cucumber-cpp,konserw/cucumber-cpp,AbletonAppDev/cucumber-cpp,meshell/cucumber-cpp,muggenhor/cucumber-cpp... |
17e51bcecd7f051a4aa2a90d7476790052f0808d | test/22-backreferences.cc | test/22-backreferences.cc | FIXED_TEST("(cat|dog|)\\1", ANCHOR_START, "catcat", true, "catcat", "cat");
FIXED_TEST("(cat|dog|)\\1", ANCHOR_START, "dogdog", true, "dogdog", "dog");
FIXED_TEST("(cat|dog|)\\1", ANCHOR_START, "snek", true, "", "");
FIXED_TEST("(cat|dog|)\\1", ANCHOR_START, "catdog", false);
FIXED_TEST("(cat|dog|)\\1", ANCHOR_... | FIXED_TEST("(cat|dog|)\\1", ANCHOR_START, "catcat", true, "catcat", "cat");
FIXED_TEST("(cat|dog|)\\1", ANCHOR_START, "dogdog", true, "dogdog", "dog");
FIXED_TEST("(cat|dog|)\\1", ANCHOR_START, "snek", true, "", "");
FIXED_TEST("(cat|dog|)\\1", ANCHOR_START, "catdog", false);
FIXED_TEST("(cat|dog|)\\1", ANCHOR_... | Add a potential buffer overrun test. | Add a potential buffer overrun test.
| C++ | mit | pyos/re2jit,pyos/re2jit,pyos/re2jit |
01e90f18eecbbf4cfa33d6e4940007431ce9b938 | src/writer/verilog/dataflow_in.cpp | src/writer/verilog/dataflow_in.cpp | #include "writer/verilog/dataflow_in.h"
#include "iroha/i_design.h"
#include "iroha/resource_class.h"
#include "writer/module_template.h"
#include "writer/verilog/insn_writer.h"
#include "writer/verilog/module.h"
#include "writer/verilog/shared_reg.h"
namespace iroha {
namespace writer {
namespace verilog {
DataFlow... | #include "writer/verilog/dataflow_in.h"
#include "iroha/i_design.h"
#include "iroha/resource_class.h"
#include "writer/module_template.h"
#include "writer/verilog/insn_writer.h"
#include "writer/verilog/module.h"
#include "writer/verilog/shared_reg.h"
namespace iroha {
namespace writer {
namespace verilog {
DataFlow... | Allow dataflow-in to accept multiple values. | Allow dataflow-in to accept multiple values.
| C++ | bsd-3-clause | nlsynth/iroha,nlsynth/iroha |
38d11fd5ebcec5265741d66546a59956293af1b2 | src/AboutDarkThemePluginDialog.cpp | src/AboutDarkThemePluginDialog.cpp | #include "AboutDarkThemePluginDialog.h"
#include "ui_AboutDarkThemePluginDialog.h"
using namespace libqdark;
AboutDarkThemePluginDialog::AboutDarkThemePluginDialog(QWidget* parent)
: QDialog(parent)
, ui(new Ui::AboutDarkThemePluginDialog)
{
ui->setupUi(this);
//ui->nameLabel->setText(m_ui->nameLabel... | #include "AboutDarkThemePluginDialog.h"
#include "ui_AboutDarkThemePluginDialog.h"
#include <string>
using namespace libqdark;
AboutDarkThemePluginDialog::AboutDarkThemePluginDialog(QWidget* parent)
: QDialog(parent)
, ui(new Ui::AboutDarkThemePluginDialog)
{
ui->setupUi(this);
ui->nameLabel->setTex... | Add to about dialog info about current version | Add to about dialog info about current version
| C++ | mit | suratovvlad/libqdark,suratovvlad/libqdark |
a0fba3c7aec6898eb26cf5870e9c19d8d6219118 | algorithms/bit-manipulation/most-significant-bit-position/main_perfs.cpp | algorithms/bit-manipulation/most-significant-bit-position/main_perfs.cpp | //#include <iostream>
#include SPECIFIC_HEADER
int main(int /*argc*/, char** /*argv*/)
{
unsigned out {};
constexpr unsigned num_runs = 1e7;
for (unsigned run_id {} ; run_id != num_runs ; ++run_id)
{
out += most_significant_position(run_id);
}
//std::cout << out;
bool success = out == unsigned(223222... | //#include <iostream>
#include SPECIFIC_HEADER
int main(int /*argc*/, char** /*argv*/)
{
unsigned out {};
constexpr unsigned num_runs = 10000000;
for (unsigned run_id {} ; run_id != num_runs ; ++run_id)
{
out += most_significant_position(run_id);
}
//std::cout << out;
bool success = out == unsigned(2... | Fix compile double to unsigned | [most-significant-bit-position][vs] Fix compile double to unsigned | C++ | mit | dubzzz/various-algorithms,dubzzz/various-algorithms |
e0c2118e9e90ba25210bdd0deb2e923843d4d96b | topology/Main.cpp | topology/Main.cpp | #include "Topology.hpp"
#include "Host.hpp"
#include "Hop.hpp"
using namespace std;
/*nmap -oX traceroute_all_subnet.xml -O -sV localhost*/
int main(int argc, char **argv)
{
if(argc < 1)
{
cout << "Invalid number of program arguments: ";
cout << "Usage ./build_topology <traceroute_file.xml>" << endl;
... | #include "Topology.hpp"
#include "Host.hpp"
#include "Hop.hpp"
#include <fstream>
using namespace std;
/*nmap -oX traceroute_all_subnet.xml -O -sV localhost*/
int main(int argc, char **argv)
{
if(argc < 1)
{
cout << "Invalid number of program arguments: ";
cout << "Usage ./build_topology <traceroute_file.... | Write services and topology JSONs to file | Write services and topology JSONs to file
| C++ | mit | cyberImperial/attack-graphs,cyberImperial/attack-graphs,cyberImperial/attack-graphs,cyberImperial/attack-graphs,cyberImperial/attack-graphs |
04676abd760c435ce56764647f3c74ae3cf62765 | src/platform/x86_nano/platform.cpp | src/platform/x86_nano/platform.cpp | #include <os>
#include "../x86_pc/idt.hpp"
void __arch_poweroff()
{
asm("cli; hlt;");
__builtin_unreachable();
}
void __platform_init()
{
// setup CPU exception handlers
x86::idt_initialize_for_cpu(0);
}
// not supported!
int64_t __arch_now() { return 0; }
void __arch_reboot(){}
void __arch_enable_legacy_ir... | #include <os>
#include "../x86_pc/idt.hpp"
void __arch_poweroff()
{
asm("cli; hlt;");
__builtin_unreachable();
}
void __platform_init()
{
// setup CPU exception handlers
x86::idt_initialize_for_cpu(0);
}
// not supported!
int64_t __arch_time_now() noexcept {
return 0;
}
void __arch_reboot(){}
void __arch_... | Fix arch_time_now wrong function name | x86_nano: Fix arch_time_now wrong function name
| C++ | apache-2.0 | alfred-bratterud/IncludeOS,hioa-cs/IncludeOS,mnordsletten/IncludeOS,ingve/IncludeOS,ingve/IncludeOS,mnordsletten/IncludeOS,AnnikaH/IncludeOS,AndreasAakesson/IncludeOS,AndreasAakesson/IncludeOS,alfred-bratterud/IncludeOS,AndreasAakesson/IncludeOS,ingve/IncludeOS,AnnikaH/IncludeOS,AnnikaH/IncludeOS,AnnikaH/IncludeOS,ingv... |
59922203e4e6f299d2add6a88b33dce1896cc163 | vm/primitives.cpp | vm/primitives.cpp | #include "primitives.hpp"
#include "event.hpp"
#include "gen/includes.hpp"
namespace rubinius {
bool Primitives::unknown_primitive(STATE, VMExecutable* exec, Task* task, Message& msg) {
std::cout << "\n";
state->print_backtrace();
std::cout << "Called unbound/invalid primitive: " << *msg.name->to_str(sta... | #include "primitives.hpp"
#include "event.hpp"
#include "gen/includes.hpp"
namespace rubinius {
bool Primitives::unknown_primitive(STATE, VMExecutable* exec, Task* task, Message& msg) {
std::cout << "\n";
state->print_backtrace();
std::cout << "Called unbound or invalid primitive from: " << *msg.name->to... | Improve error message about primitive failures | Improve error message about primitive failures
| C++ | bsd-3-clause | ngpestelos/rubinius,slawosz/rubinius,dblock/rubinius,pH14/rubinius,travis-repos/rubinius,sferik/rubinius,sferik/rubinius,sferik/rubinius,ruipserra/rubinius,jsyeo/rubinius,Azizou/rubinius,heftig/rubinius,digitalextremist/rubinius,dblock/rubinius,digitalextremist/rubinius,travis-repos/rubinius,kachick/rubinius,mlarraz/ru... |
6682147d02ff759bc794d5a0bab4a3770a5c376e | src/python-bindings/module_lock.cpp | src/python-bindings/module_lock.cpp |
#include <Python.h>
#include "module_lock.h"
#include "classad/classad.h"
using namespace condor;
pthread_mutex_t ModuleLock::m_mutex = PTHREAD_MUTEX_INITIALIZER;
ModuleLock::ModuleLock()
: m_release_gil(!classad::ClassAdGetExpressionCaching()),
m_owned(false)
{
acquire();
}
void
ModuleLock::acquir... |
#include <Python.h>
#include "module_lock.h"
#include "classad/classad.h"
using namespace condor;
pthread_mutex_t ModuleLock::m_mutex = PTHREAD_MUTEX_INITIALIZER;
ModuleLock::ModuleLock()
: m_release_gil(!classad::ClassAdGetExpressionCaching()),
m_owned(false), m_save(0)
{
acquire();
}
void
ModuleL... | Fix minor coverity unitialized ptr warning | Fix minor coverity unitialized ptr warning
| C++ | apache-2.0 | neurodebian/htcondor,zhangzhehust/htcondor,htcondor/htcondor,neurodebian/htcondor,htcondor/htcondor,neurodebian/htcondor,htcondor/htcondor,neurodebian/htcondor,htcondor/htcondor,htcondor/htcondor,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,zhangzhehust/htco... |
5e2d82099e48230e705a6732cac2f4222ebd6297 | test/unit/visitor.cc | test/unit/visitor.cc | #include "test.h"
#include "vast/util/visitor.h"
struct base;
struct t1;
struct t2;
typedef vast::util::const_visitor<base, t1, t2> concrete_visitor;
struct base
{
VAST_ACCEPT(concrete_visitor)
VAST_ACCEPT_CONST(concrete_visitor)
};
struct t1 : base
{
VAST_ACCEPT(concrete_visitor)
VAST_ACCEPT_CONST(concrete... | #include "test.h"
#include "vast/util/visitor.h"
struct base;
struct t1;
struct t2;
typedef vast::util::const_visitor<base, t1, t2> concrete_visitor;
struct base
{
VAST_ACCEPT(concrete_visitor)
VAST_ACCEPT_CONST(concrete_visitor)
};
struct t1 : base
{
VAST_ACCEPT(concrete_visitor)
VAST_ACCEPT_CONST(concrete... | Fix warning about unused parameter. | Fix warning about unused parameter.
| C++ | bsd-3-clause | pmos69/vast,vast-io/vast,pmos69/vast,mavam/vast,pmos69/vast,vast-io/vast,mavam/vast,mavam/vast,mavam/vast,vast-io/vast,pmos69/vast,vast-io/vast,vast-io/vast |
f0878f1e7f4e67ed9c574ccd8b82093a201928e9 | test/xray/TestCases/Linux/quiet-start.cc | test/xray/TestCases/Linux/quiet-start.cc | // Ensure that we have a quiet startup when we don't have the XRay
// instrumentation sleds.
//
// RUN: %clangxx -std=c++11 %s -o %t %xraylib
// RUN: XRAY_OPTIONS="patch_premain=true verbosity=1" %run %t 2>&1 | \
// RUN: FileCheck %s --check-prefix NOISY
// RUN: XRAY_OPTIONS="patch_premain=true verbosity=0" %run %t ... | // Ensure that we have a quiet startup when we don't have the XRay
// instrumentation sleds.
//
// RUN: %clangxx -std=c++11 %s -o %t %xraylib
// RUN: XRAY_OPTIONS="patch_premain=true verbosity=1" %run %t 2>&1 | \
// RUN: FileCheck %s --check-prefix NOISY
// RUN: XRAY_OPTIONS="patch_premain=true verbosity=0" %run %t ... | Fix test to not be too strict with output order. | [XRay][compiler-rt] Fix test to not be too strict with output order.
Follow-up to D35789.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@309543 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 |
f3f85f7373a64abdb03821f6e13416c58ec68ca1 | SSPSolution/SSPSolution/DoorEntity.cpp | SSPSolution/SSPSolution/DoorEntity.cpp | #include "DoorEntity.h"
DoorEntity::DoorEntity()
{
}
DoorEntity::~DoorEntity()
{
}
int DoorEntity::Initialize(int entityID, PhysicsComponent * pComp, GraphicsComponent * gComp)
{
this->InitializeBase(entityID, pComp, gComp);
this->m_isOpened = false;
return 0;
}
int DoorEntity::Update(float dT, InputHandler *... | #include "DoorEntity.h"
DoorEntity::DoorEntity()
{
}
DoorEntity::~DoorEntity()
{
}
int DoorEntity::Initialize(int entityID, PhysicsComponent * pComp, GraphicsComponent * gComp)
{
this->InitializeBase(entityID, pComp, gComp);
this->m_isOpened = false;
return 0;
}
int DoorEntity::Update(float dT, InputHandler *... | UPDATE moved component sync from update to react | UPDATE moved component sync from update to react
| C++ | apache-2.0 | Chringo/SSP,Chringo/SSP |
2397d9a66bf46fe4e3660e8b150d18df55ca125a | pith/src/Pith.cpp | pith/src/Pith.cpp | #include <Pith/Config.hpp>
#include <Pith/Version.hpp>
#include <iostream>
extern "C" int pith_main(int argc, char** argv) {
std::cout << "Pith version " << Pith::Version::STRING << " " << Pith::Version::COMMIT
<< std::endl;
return 0;
}
/// When no main is defined, pith defines a main that prints version inform... | #include <Pith/Config.hpp>
#include <Pith/Version.hpp>
#include <iostream>
extern "C" auto pith_main([[maybe_unused]] int argc, [[maybe_unused]] char** argv) -> int {
std::cout << "Pith version " << Pith::Version::STRING << " " << Pith::Version::COMMIT
<< std::endl;
return 0;
}
/// When no main is defined, pith... | Mark parameters of weak main as unused | Mark parameters of weak main as unused
Signed-off-by: Robert Young <42c59959a3f4413d6a1b4d7b4f99db457d199e49@gmail.com>
| C++ | apache-2.0 | ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab |
7c0144cf1e95caa1d49b76543638e7e55fed6f6a | test/opengl/set_pixels.cpp | test/opengl/set_pixels.cpp | #include <Halide.h>
#include <stdio.h>
#include <stdlib.h>
using namespace Halide;
int main() {
// This test must be run with an OpenGL target
const Target &target = get_jit_target_from_environment();
if (!target.has_feature(Target::OpenGL)) {
fprintf(stderr,"ERROR: This test must be run with an ... | #include <Halide.h>
#include <stdio.h>
#include <stdlib.h>
using namespace Halide;
int main() {
// This test must be run with an OpenGL target
const Target &target = get_jit_target_from_environment();
if (!target.has_feature(Target::OpenGL)) {
fprintf(stderr,"ERROR: This test must be run with an ... | Add a trivial write only GLSL test. | Add a trivial write only GLSL test.
| C++ | mit | adasworks/Halide,jiawen/Halide,ronen/Halide,damienfir/Halide,ronen/Halide,delcypher/Halide,lglucin/Halide,jiawen/Halide,myrtleTree33/Halide,psuriana/Halide,jiawen/Halide,mcanthony/Halide,adasworks/Halide,damienfir/Halide,dan-tull/Halide,psuriana/Halide,kgnk/Halide,smxlong/Halide,dougkwan/Halide,mcanthony/Halide,rodrigo... |
6a052af374e1ee7fb26132ec54d48bcf7523af76 | test/SemaCXX/friend-template-redecl.cpp | test/SemaCXX/friend-template-redecl.cpp | // RUN: %clang_cc1 -std=c++17 -verify -emit-llvm-only %s
// expected-no-diagnostics
template <class T> void bar(const T &t) { foo(t); }
template <class>
struct HasFriend {
template <class T>
friend void foo(const HasFriend<T> &m) noexcept(false);
};
template <class T>
void foo(const HasFriend<T> &m) noexcept(fa... | // RUN: %clang_cc1 -std=c++17 -verify -emit-llvm-only %s
// expected-no-diagnostics
template <class T> void bar(const T &t) { foo(t); }
template <class>
struct HasFriend {
template <class T>
friend void foo(const HasFriend<T> &m) noexcept(false);
};
template <class T>
void foo(const HasFriend<T> &m) noexcept(fa... | Address a post-commit review comment on r348325. | Address a post-commit review comment on r348325.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@348388 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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
e38cf01f07def8dbfedd683b9d8b354191b287a4 | src/nostalgia/core/userland/media.cpp | src/nostalgia/core/userland/media.cpp | /*
* Copyright 2016 - 2019 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <cstdio>
#include "../media.hpp"
namespace nostalgia... | /*
* Copyright 2016 - 2019 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <fstream>
#include <ox/std/trace.hpp>
#include "../m... | Replace C file I/O with C++ file I/O to comply with handbook | [nostalgia/core/userland] Replace C file I/O with C++ file I/O to comply with handbook
| C++ | mpl-2.0 | wombatant/nostalgia,wombatant/nostalgia,wombatant/nostalgia |
a2061d038a9b3ff1ebfecb0d9bbd466531babdaf | tests/Board_tests.cc | tests/Board_tests.cc | #include "catch.hpp"
#include "../src/Board.h"
TEST_CASE("Board class tests", "[Board]")
{
SECTION("The constructor properly sets width and height of the board")
{
const int desired_width = 11;
const int desired_height = 12;
Board b(desired_width, desired_height);
REQUIRE(desired_width == b.width()... | #include "catch.hpp"
#include "../src/Board.h"
TEST_CASE("Board class tests", "[Board]")
{
SECTION("The constructor properly sets width and height of the board")
{
const int desired_width = 11;
const int desired_height = 12;
Board b(desired_height, desired_width);
REQUIRE(desired_height == b.height... | Fix the order of parameters in Board class tests | Fix the order of parameters in Board class tests
The height should be passed as a first parameter, and the width
as the second one. It used to be the other way, causing one of the test
to (rightly so!) fail. This commit fixes the order of both parameters
in order to reflect a recent change in Board implementation.
| C++ | mit | aszczerbiak/Minesweeper |
16cbb2858825f8acca8200b11d97e3851e679eca | src/tightdb/row.cpp | src/tightdb/row.cpp | #include <tightdb/row.hpp>
#include <tightdb/table.hpp>
using namespace std;
using namespace tightdb;
void RowBase::attach(Table* table, size_t row_ndx)
{
if (table) {
table->register_row_accessor(this); // Throws
m_table.reset(table);
m_row_ndx = row_ndx;
}
}
void RowBase::reattach(... | #include <tightdb/row.hpp>
#include <tightdb/table.hpp>
using namespace std;
using namespace tightdb;
void RowBase::attach(Table* table, size_t row_ndx)
{
if (table) {
table->register_row_accessor(this); // Throws
m_table.reset(table);
m_row_ndx = row_ndx;
}
}
void RowBase::reattach(... | Detach table accessors before attaching to a new table | Detach table accessors before attaching to a new table
| C++ | apache-2.0 | realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core |
528e07b4e972d01abff8cab24e65c29a668fea23 | base/cancellation_flag.cc | base/cancellation_flag.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/cancellation_flag.h"
#include "base/logging.h"
namespace base {
void CancellationFlag::Set() {
#if !defined(NDEBUG)
DCHECK(set_on_... | // 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/cancellation_flag.h"
#include "base/logging.h"
namespace base {
void CancellationFlag::Set() {
#if !defined(NDEBUG)
DCHECK_EQ(set_... | Replace a DCHECK with DCHECK_EQ. | Replace a DCHECK with DCHECK_EQ.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2919013
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@52429 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | junmin-zhu/chromium-rivertrail,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,Jonekee/chromium.src,dednal/chromium.src,dushu1203/chromium.src,zcbenz/cefode-chromium,jaruba/chromium.src,mogoweb/chromium-crosswalk,robclark/chromium,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.sr... |
5e373e74c4799e8cdda22146d9077882378f150a | arduino/PanelInterface/CommonCommands.cpp | arduino/PanelInterface/CommonCommands.cpp | #include "SerialCommand.h"
#include "anyware_serial.h"
void unrecognized(const char *cmd)
{
printError(F("unrecognized command"), cmd);
}
/*!
RESET [<bool>]
*/
void reset_action()
{
char *debugarg = sCmd.next();
bool debug = false;
if (debugarg) debug = atoi(debugarg);
reset(debug);
}
/*!
IDENTITY <use... | #include "SerialCommand.h"
#include "anyware_serial.h"
void unrecognized(const char *cmd)
{
printError(F("unrecognized command"), cmd);
}
/*!
RESET [<bool>]
*/
void reset_action()
{
char *debugarg = sCmd.next();
bool debug = false;
if (debugarg) debug = atoi(debugarg);
reset(debug);
}
/*!
IDENTITY <use... | Validate userid for IDENTITY command | Validate userid for IDENTITY command
| C++ | mit | anyWareSculpture/physical,anyWareSculpture/physical,anyWareSculpture/physical,anyWareSculpture/physical |
f09d5cbb8780b94f6f9ce6a5388fecfcf32d0c6e | epitome-core/src/EPITOME-CORE/memory.cpp | epitome-core/src/EPITOME-CORE/memory.cpp | #include "memory.h"
namespace EPITOME
{
template <typename T>
Room<T>::Room() {}
template <typename T>
Room<T>::~Room()
{
Empty();
}
template <typename T>
Room<T>::Room(Room&& other)
{
items = other.items;
other.items.clear();
}
template<typename T>
void Room<T>::Add(T* item)
{
items.push_back(... | #include "memory.h"
namespace EPITOME
{
template <typename T>
Room<T>::Room() {}
template <typename T>
Room<T>::~Room()
{
Empty();
}
template <typename T>
Room<T>::Room(Room&& other)
{
items = other.items;
other.items.clear();
}
template<typename T>
void Room<T>::Add(T* item)
{
items.push_back(... | Add void to fix error | Add void to fix error
| C++ | mit | smo-key/Epitome3D,epitome3d/Epitome3D,epitome3d/Epitome3D,smo-key/Epitome3D |
5cfd3a70a67ba707a8f074a1730724a6e86353b8 | src/test/main_tests.cpp | src/test/main_tests.cpp | #include "core.h"
#include "main.h"
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(main_tests)
BOOST_AUTO_TEST_CASE(subsidy_limit_test)
{
uint64_t nSum = 0;
for (int nHeight = 0; nHeight < 7000000; nHeight += 1000) {
uint64_t nSubsidy = GetBlockValue(nHeight, 0);
BOOST_CHECK(nSubsi... | #include "core.h"
#include "main.h"
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(main_tests)
BOOST_AUTO_TEST_CASE(subsidy_limit_test)
{
uint64_t nSum = 0;
for (int nHeight = 0; nHeight < 14000000; nHeight += 1000) {
uint64_t nSubsidy = GetBlockValue(nHeight, 0);
BOOST_CHECK(nSubs... | Edit subsidy_limit_test to account for BIP42 | Edit subsidy_limit_test to account for BIP42
Because no one wants 4 gold mines being discovered every mibillenium. | C++ | mit | BTCGPU/BTCGPU,kirkalx/bitcoin,sugruedes/bitcoin,Har01d/bitcoin,2XL/bitcoin,funkshelper/woodcoin-b,BTCDDev/bitcoin,stevemyers/bitcoinxt,Rav3nPL/bitcoin,segsignal/bitcoin,cheehieu/bitcoin,Bitcoinsulting/bitcoinxt,cryptoprojects/ultimateonlinecash,dannyperez/bolivarcoin,m0gliE/fastcoin-cli,Cloudsy/bitcoin,btcdrak/bitcoin,... |
1e1a7a593bccc5ea5676c63d49845626a2ca4334 | test/cctest/compiler/test-run-deopt.cc | test/cctest/compiler/test-run-deopt.cc | // Copyright 2014 the V8 project 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 "v8.h"
#include "function-tester.h"
using namespace v8::internal;
using namespace v8::internal::compiler;
TEST(TurboSimpleDeopt) {
FLAG_a... | // Copyright 2014 the V8 project 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 "src/v8.h"
#include "test/cctest/compiler/function-tester.h"
using namespace v8::internal;
using namespace v8::internal::compiler;
TEST(Tur... | Fix relative include path in cctest case. | Fix relative include path in cctest case.
R=jarin@chromium.org, titzer@chromium.org
Review URL: https://codereview.chromium.org/426233003
git-svn-id: f98b9d40cb02301bc76fa9e1b46ee668158567fd@22721 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
| C++ | mit | UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh |
4b739ad0f1417fd91631afca6a78ca69afd9d5af | ui/desktop_aura/desktop_factory_wayland.cc | ui/desktop_aura/desktop_factory_wayland.cc | // Copyright 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ozone/ui/desktop_aura/desktop_factory_wayland.h"
#include "ozone/ui/desktop_aura/desktop_screen_wayland.h"
#include "ozone/ui/desktop_aura/desktop... | // Copyright 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ozone/ui/desktop_aura/desktop_factory_wayland.h"
#include "ozone/ui/desktop_aura/desktop_screen_wayland.h"
#include "ozone/ui/desktop_aura/desktop... | Prepare to build desktop_aura/ as part of views only. | desktop_aura: Prepare to build desktop_aura/ as part of views only.
Replace the usage of WaylandDisplay class with OzoneDisplay, so we dont
have to build Ozone-Wayland as part of views but rather have it as it's
dependency.
| C++ | bsd-3-clause | kishansheshagiri/ozone-wayland,siteshwar/ozone-wayland,sjnewbury/ozone-wayland,01org/ozone-wayland,tiagovignatti/ozone-wayland,darktears/ozone-wayland,kuscsik/ozone-wayland,hongzhang-yan/ozone-wayland,qjia7/ozone-wayland,Tarnyko/ozone-wayland,joone/ozone-wayland,shaochangbin/ozone-wayland,nicoguyo/ozone-wayland,kuscsik... |
2a811bca8385871d630e1b819527f69eff11b14c | fixed_point.cpp | fixed_point.cpp | //
// Created by Timo on 18.04.2016.
//
#include <cmath>
#include "fixed_point.h"
fixed_point::fixed_point(float x) {
q = x * std::pow(2, 16);
}
fixed_point::operator int() const {
return q / std::pow(2, 16);
}
fixed_point::operator float() const {
return q / std::pow(2, 16);
}
fixed_point abs(fixed_po... | //
// Created by Timo on 18.04.2016.
//
#include <cmath>
#include "fixed_point.h"
fixed_point::fixed_point(float x) {
q = x * std::pow(2, 16);
}
fixed_point::operator int() const {
return q / std::pow(2, 16);
}
fixed_point::operator float() const {
return q / std::pow(2, 16);
}
fixed_point abs(fixed_po... | Update abs() to not use float. | Update abs() to not use float.
| C++ | mit | traschke/cpp-bht-sose16-a02 |
d9b285716c40d13098e5fd7c329046b9cc45aea5 | signalwatcher_none.cpp | signalwatcher_none.cpp | #include <QtCore/QCoreApplication>
#include "signalwatcher.h"
static SignalWatcher* g_instance = 0;
SignalWatcher::SignalWatcher(void)
: QObject(qApp)
{
}
bool SignalWatcher::watch(int sig)
{
Q_UNUSED(sig)
return false;
}
bool SignalWatcher::unwatch(int sig)
{
Q_UNUSED(sig)
return false;
}
SignalWatcher::~Sig... | #include <QtCore/QCoreApplication>
#include "signalwatcher.h"
class SignalWatcherPrivate {}
static SignalWatcher* g_instance = 0;
SignalWatcher::SignalWatcher(void)
: QObject(qApp)
{
}
bool SignalWatcher::watch(int sig)
{
Q_UNUSED(sig)
return false;
}
bool SignalWatcher::unwatch(int sig)
{
Q_UNUSED(sig)
retur... | Fix for really weird compile time configurations | Fix for really weird compile time configurations
| C++ | mit | sjinks/qt_signalwatcher,sjinks/qt_signalwatcher |
ee909ebc7b02783219d9af702ffb86d9681b68f9 | Source/Components/TransformManager.cpp | Source/Components/TransformManager.cpp | #include <Zmey/Components/TransformManager.h>
#include <nlohmann/json.hpp>
#include <Zmey/Components/ComponentRegistry.h>
namespace Zmey
{
namespace Components
{
void TransformComponentToBlob(const nlohmann::json& rawJson, IDataBlob& blob)
{
//float position[3];
//position[0] = rawJson["Position"][0... | #include <Zmey/Components/TransformManager.h>
#include <nlohmann/json.hpp>
#include <Zmey/Components/ComponentRegistry.h>
namespace Zmey
{
namespace Components
{
void TransformComponentToBlob(const nlohmann::json& rawJson, IDataBlob& blob)
{
float position[3];
position[0] = rawJson["Position"][0];
... | Implement ComponentToBlob for the transform manager. | Implement ComponentToBlob for the transform manager.
| C++ | mit | nikoladimitroff/Zmey,nikoladimitroff/Zmey,nikoladimitroff/Zmey,nikoladimitroff/Zmey,nikoladimitroff/Zmey,nikoladimitroff/Zmey |
5e7232490440098ffefb0bd35bb0fe772cac92b7 | chrome/browser/chrome_browser_main_aura.cc | chrome/browser/chrome_browser_main_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/chrome_browser_main_aura.h"
#include "base/logging.h"
ChromeBrowserMainPartsAura::ChromeBrowserMainPartsAura(
const Mai... | // 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/chrome_browser_main_aura.h"
#include "base/logging.h"
ChromeBrowserMainPartsAura::ChromeBrowserMainPartsAura(
const Mai... | Fix Aura compile error. My bad. | Fix Aura compile error. My bad.
TBR=ben@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8098014
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@103581 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | ropik/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,gavinp/chr... |
83c17bf6a89a270bf0d2dfcf15571e49e2ea8990 | engine/utils/src/utils/boost_system.cpp | engine/utils/src/utils/boost_system.cpp | #define BOOST_ERROR_CODE_HEADER_ONLY
#include <Combaseapi.h>
#include <boost/system/error_code.hpp>
| #define BOOST_ERROR_CODE_HEADER_ONLY
#include <boost/system/error_code.hpp>
| Remove (unnecessary) win32 only header. | Remove (unnecessary) win32 only header.
| C++ | apache-2.0 | amzeratul/halley,amzeratul/halley,amzeratul/halley |
651132a845d5edb430db8021f451422e9b0ebe66 | src/utils/SkNullCanvas.cpp | src/utils/SkNullCanvas.cpp | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkNullCanvas.h"
#include "SkCanvas.h"
#include "SKNWayCanvas.h"
SkCanvas* SkCreateNullCanvas() {
// An N-Way canvas forwards calls to N canvas's. When N == 0 ... | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkNullCanvas.h"
#include "SkCanvas.h"
#include "SKNWayCanvas.h"
SkCanvas* SkCreateNullCanvas() {
// An N-Way canvas forwards calls to N canvas's. When N == 0 ... | Fix SkNWayCanvas cons call when creating null canvas. | Fix SkNWayCanvas cons call when creating null canvas.
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4223 2bbb7eff-a529-9590-31e7-b0007b416f81
| C++ | bsd-3-clause | TeamBliss-LP/android_external_skia,sigysmund/platform_external_skia,VRToxin-AOSP/android_external_skia,OptiPop/external_chromium_org_third_party_skia,rubenvb/skia,amyvmiwei/skia,scroggo/skia,mydongistiny/android_external_skia,fire855/android_external_skia,sudosurootdev/external_skia,Igalia/skia,MyAOSP/external_chromium... |
f8863c99f2e0a918748a639cd4cc7689a9e9dc4a | mytablemodel.cpp | mytablemodel.cpp | #include "mytablemodel.h"
int MyTableModel::rowCount(const QModelIndex &parent) const
{
return m_data.size();
}
int MyTableModel::columnCount(const QModelIndex &parent) const
{
return 2;
}
QVariant MyTableModel::data(const QModelIndex &index, int role) const
{
Record const& dataElem = m_data[index.row()]... | #include "mytablemodel.h"
int MyTableModel::rowCount(const QModelIndex &parent) const
{
return m_data.size();
}
int MyTableModel::columnCount(const QModelIndex &parent) const
{
return 2;
}
QVariant MyTableModel::data(const QModelIndex &index, int role) const
{
Record const& dataElem = m_data[index.row()]... | Update table view on add row | Update table view on add row
| C++ | mit | bogdanov-d-a/TableEditor |
1284121d89f18f3c74f4706b0912c4a1e468d58a | modules/video/perf/perf_tvl1optflow.cpp | modules/video/perf/perf_tvl1optflow.cpp | #include "perf_precomp.hpp"
using namespace std;
using namespace cv;
using namespace perf;
typedef TestBaseWithParam< pair<string, string> > ImagePair;
pair<string, string> impair(const char* im1, const char* im2)
{
return make_pair(string(im1), string(im2));
}
PERF_TEST_P(ImagePair, OpticalFlowDual_TVL1, testi... | #include "perf_precomp.hpp"
using namespace std;
using namespace cv;
using namespace perf;
typedef TestBaseWithParam< pair<string, string> > ImagePair;
pair<string, string> impair(const char* im1, const char* im2)
{
return make_pair(string(im1), string(im2));
}
PERF_TEST_P(ImagePair, OpticalFlowDual_TVL1, testi... | Set sanity threshold for TVL1 optical flow to 0.02 | Set sanity threshold for TVL1 optical flow to 0.02
| C++ | bsd-3-clause | apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,apavlenko/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv |
ee0a26fa7ad897ecb7db6abfb18a2eed8cdf0473 | framework/stagestack.cpp | framework/stagestack.cpp |
#include "stagestack.h"
namespace OpenApoc {
void StageStack::Push(std::shared_ptr<Stage> newStage)
{
// Pause any current stage
if(this->Current())
this->Current()->Pause();
this->Stack.push(newStage);
newStage->Begin();
}
std::shared_ptr<Stage> StageStack::Pop()
{
std::shared_ptr<Stage> result = this->Cu... |
#include "stagestack.h"
namespace OpenApoc {
void StageStack::Push(std::shared_ptr<Stage> newStage)
{
// Pause any current stage
if(this->Current())
this->Current()->Pause();
this->Stack.push(newStage);
newStage->Begin();
}
std::shared_ptr<Stage> StageStack::Pop()
{
std::shared_ptr<Stage> result = this->Cu... | Call Finish() on Stages removed from the stack | Call Finish() on Stages removed from the stack
| C++ | mit | steveschnepp/OpenApoc,ShadowDancer/OpenApoc,Istrebitel/OpenApoc,ShadowDancer/OpenApoc,FranciscoDA/OpenApoc,agry/x-com,AndO3131/OpenApoc,AndO3131/OpenApoc,steveschnepp/OpenApoc,agry/x-com,pmprog/OpenApoc,agry/x-com,FranciscoDA/OpenApoc,pmprog/OpenApoc,Istrebitel/OpenApoc,FranciscoDA/OpenApoc,AndO3131/OpenApoc |
020f3dc258d5095ab2e84d81fdbb490a3b1e5c24 | webkit/glue/webview_unittest.cc | webkit/glue/webview_unittest.cc | // Copyright (c) 2006-2008 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 "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/WebKit/chromium/public/WebView.h"
#include "webkit/tools/test_shell/t... | // Copyright (c) 2006-2008 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 "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/WebKit/chromium/public/WebView.h"
#include "webkit/tools/test_shell/t... | Rename unit test: WebViewTest.GetContentAsPlainText -> WebViewTest.ActiveState. | Rename unit test: WebViewTest.GetContentAsPlainText -> WebViewTest.ActiveState.
I'm responsible for misnaming it in the first place (cut-and-paste error). Oops.
BUG=23501
TEST=none
Review URL: http://codereview.chromium.org/414034
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@32612 4ff67af0-8c30-449e-8e8b-ad... | 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 |
dc9adbf23c1e7ce10d0e58726fac99ea80bc7258 | mojo/application/application_test_main_chromium.cc | mojo/application/application_test_main_chromium.cc | // Copyright 2014 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/at_exit.h"
#include "base/command_line.h"
#include "base/test/test_timeouts.h"
#include "mojo/application/application_runner_chromium.h"
#i... | // Copyright 2014 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/at_exit.h"
#include "base/command_line.h"
#include "base/test/test_timeouts.h"
#include "mojo/application/application_runner_chromium.h"
#i... | Update the application_test_main CommandLine comment. | Update the application_test_main CommandLine comment.
BUG=NONE
TEST=NONE
TBR=sky@chromium.org
Review URL: https://codereview.chromium.org/1097783003
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#326183}
| C++ | bsd-3-clause | chuan9/chromium-crosswalk,axinging/chromium-crosswalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-c... |
66666bf755f74c8daba4e394a0cd9561bf94a100 | chrome/renderer/renderer_logging_linux.cc | chrome/renderer/renderer_logging_linux.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 "chrome/renderer/renderer_logging.h"
#include "base/logging.h"
#include "googleurl/src/gurl.h"
namespace renderer_logging {
// Sets the UR... | // 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 "chrome/renderer/renderer_logging.h"
#include "base/logging.h"
#include "googleurl/src/gurl.h"
namespace renderer_logging {
// Sets the UR... | Comment out a very annoying NOTIMPLEMENTED(). | Comment out a very annoying NOTIMPLEMENTED().
Review URL: http://codereview.chromium.org/56183
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@13024 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,yitia... |
fa11ce54232a890f720f9601ee5671a0a29819cd | photoeffects/src/tint.cpp | photoeffects/src/tint.cpp | #include "photoeffects.hpp"
#include "stdio.h"
using namespace cv;
int tint(InputArray src, OutputArray dst,
const Vec3b &colorTint, float density)
{
CV_Assert(src.type() == CV_8UC3);
CV_Assert(density >= 0.0f && density <= 1.0f);
dst.create(src.size(), CV_8UC3);
Mat image = src.getMat(), out... | #include "photoeffects.hpp"
#include "stdio.h"
using namespace cv;
int tint(InputArray src, OutputArray dst,
const Vec3b &colorTint, float density)
{
CV_Assert(src.type() == CV_8UC3);
CV_Assert(density >= 0.0f && density <= 1.0f);
dst.create(src.size(), CV_8UC3);
Mat image = src.getMat(), out... | Change to operations with Mat | Change to operations with Mat
| C++ | bsd-3-clause | ITLab-Vision/itlab-vision,ITLab-Vision/itlab-vision |
74ebe965d98380364ee6f652c1f9876d8267586b | test_RedisClient.cpp | test_RedisClient.cpp | #include "RedisClient.h"
#include <string>
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
(void)argc;
(void)argv;
REDIS_ENDPOINT endpoints[1] = {
{ "127.0.0.1", 6379 },
//{ "127.0.0.1", 6380 },
//{ "127.0.0.1", 6381 },
};
REDIS_CONFIG conf = ... | #include "RedisClient.h"
#include <string>
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
(void)argc;
(void)argv;
REDIS_ENDPOINT endpoints[1] = {
{ "127.0.0.1", 6379 },
//{ "127.0.0.1", 6380 },
//{ "127.0.0.1", 6381 },
};
REDIS_CONFIG conf = ... | Add example to use client.redisCommand directly. | Add example to use client.redisCommand directly.
| C++ | apache-2.0 | aclisp/hiredispool,aclisp/hiredispool |
270958d4097e17c3782fbc9eaf347d46cc3dd325 | src/CalController.cpp | src/CalController.cpp | #include <string>
#include <map>
#include "CalController.h"
#include "TEMLogger.h"
BOOST_LOG_INLINE_GLOBAL_LOGGER_INIT(my_cal_logger, severity_channel_logger_t) {
return severity_channel_logger_t(keywords::channel = "CALIB");
}
severity_channel_logger_t& CalController::clg = my_cal_logger::get();
std::string CalC... | #include <string>
#include <map>
#include "CalController.h"
#include "TEMLogger.h"
BOOST_LOG_INLINE_GLOBAL_LOGGER_INIT(my_cal_logger, severity_channel_logger_t) {
return severity_channel_logger_t(keywords::channel = "CALIB");
}
severity_channel_logger_t& CalController::clg = my_cal_logger::get();
std::string CalC... | Fix missing newline in cal controller menu | Fix missing newline in cal controller menu
| C++ | mit | tobeycarman/dvm-dos-tem,tobeycarman/dvm-dos-tem,tobeycarman/dvm-dos-tem,tobeycarman/dvm-dos-tem,tobeycarman/dvm-dos-tem,tobeycarman/dvm-dos-tem |
693035b74f65fcc535c8e22babc8413b100de7af | libraries/tests/mbed/i2c_TMP102/main.cpp | libraries/tests/mbed/i2c_TMP102/main.cpp | #include "test_env.h"
#include "TMP102.h"
#if defined(TARGET_KL25Z)
TMP102 temperature(PTC9, PTC8, 0x90);
#elif defined(TARGET_LPC812)
TMP102 temperature(D10, D11, 0x90);
#elif defined(TARGET_LPC4088)
TMP102 temperature(p9, p10, 0x90);
#elif defined(TARGET_LPC2368)
TMP102 temperature(p28, p27, 0x90);
#else
TMP102 ... | #include "test_env.h"
#include "TMP102.h"
#if defined(TARGET_KL25Z)
TMP102 temperature(PTC9, PTC8, 0x90);
#elif defined(TARGET_LPC812)
TMP102 temperature(D10, D11, 0x90);
#elif defined(TARGET_LPC4088)
TMP102 temperature(p9, p10, 0x90);
#elif defined(TARGET_LPC2368)
TMP102 temperature(p28, p27, 0x90);
#elif defined... | Add NUCLEOs targets in TMP102 test | Add NUCLEOs targets in TMP102 test
| C++ | apache-2.0 | mikaleppanen/mbed-os,getopenmono/mbed,Tiryoh/mbed,kpurusho/mbed,jamesadevine/mbed,pbrook/mbed,screamerbg/mbed,bcostm/mbed-os,masaohamanaka/mbed,ryankurte/mbed-os,kjbracey-arm/mbed,al177/mbed,nabilbendafi/mbed,pedromes/mbed,mnlipp/mbed,kpurusho/mbed,tung7970/mbed-os-1,adustm/mbed,Timmmm/mbed,hwfwgrp/mbed,infinnovation/m... |
41ac29c5d446c6aa55647f60fc622dc38c1503ee | src/default_benchmarks.cpp | src/default_benchmarks.cpp | /*
* Copyright © 2017 Collabora Ltd.
*
* This file is part of vkmark.
*
* vkmark is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any late... | /*
* Copyright © 2017 Collabora Ltd.
*
* This file is part of vkmark.
*
* vkmark is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any late... | Add 'desktop' to default benchmarks | main: Add 'desktop' to default benchmarks
| C++ | lgpl-2.1 | vkmark/vkmark,vkmark/vkmark,vkmark/vkmark |
6cdad8be9516ec25a46a542201dc97423c3b3675 | src/drivers/ublox_neo7.cpp | src/drivers/ublox_neo7.cpp | #include "drivers/ublox_neo7.hpp"
#include "chprintf.h"
#include "unit_config.hpp"
void UBloxNEO7::init() {
}
GPSReading UBloxNEO7::readGPS() {
GPSReading reading;
// Read all available bytes until the newline character.
std::size_t len = readUntil('\n');
// Check if a full line is ready to be processed
... | #include "drivers/ublox_neo7.hpp"
#include "chprintf.h"
#include "unit_config.hpp"
void UBloxNEO7::init() {
}
GPSReading UBloxNEO7::readGPS() {
GPSReading reading;
// Read all available bytes until the newline character. NMEA dictates that
// messages should end with a CRLF, but we'll only look for the LF.
... | Add comment about NMEA CRLF. | Add comment about NMEA CRLF.
| C++ | mit | OSURoboticsClub/aerial_control,OSURoboticsClub/aerial_control,OSURoboticsClub/aerial_control |
8c9d6d9b2aa65d969803947c0d9d23073fc5efe8 | src/cwrap/redcrane.cpp | src/cwrap/redcrane.cpp | /*
* Copyright (c) 2016 Luke San Antonio
* All rights reserved.
*
* This file provides the implementation for the engine's C interface,
* specifically tailored for LuaJIT's FFI facilities.
*/
#include "redcrane.hpp"
namespace redc
{
struct Model_Visitor : boost::static_visitor<glm::mat4>
{
glm::mat4 ope... | /*
* Copyright (c) 2016 Luke San Antonio
* All rights reserved.
*
* This file provides the implementation for the engine's C interface,
* specifically tailored for LuaJIT's FFI facilities.
*/
#include "redcrane.hpp"
namespace redc
{
struct Model_Visitor : boost::static_visitor<glm::mat4>
{
glm::mat4 ope... | Fix objects parented to the camera | Fix objects parented to the camera
| C++ | bsd-3-clause | RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine |
0849138814c6d727be8dc62478f4c079a18c56b7 | torch4microscopic/torch4microscopic.cpp | torch4microscopic/torch4microscopic.cpp | // torch4microscopic.cpp : R\[ AvP[ṼGg |Cg`܂B
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
return 0;
}
| // torch4microscopic.cpp : R\[ AvP[ṼGg |Cg`܂B
//
#include "stdafx.h"
#include <iostream>
#include <vector>
#include <fstream>
#include <boost/program_options.hpp>
using namespace std;
using namespace boost::program_options;
int main(int argc, char* argv[])
{
//IvV`
options_description inout_options("path settin... | Add for processing command line option. | Add for processing command line option.
コマンドラインオプションパーサーを boost/program_options.hpp を使って記述
| C++ | mit | yanoshi/torch4microscopic |
35e44cabe74f873d4f1eb084f1c8561198b8787f | ui/aura/toplevel_window_container.cc | ui/aura/toplevel_window_container.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 "ui/aura/toplevel_window_container.h"
#include "base/utf_string_conversions.h"
#include "ui/aura/toplevel_window_event_filter.h"
namespace ... | // 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 "ui/aura/toplevel_window_container.h"
#include "base/utf_string_conversions.h"
#include "ui/aura/toplevel_window_event_filter.h"
namespace ... | Fix aura bustage on linux. | Fix aura bustage on linux.
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@104575 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | gavinp/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,yi... |
f6d4c9d8c0ce4ec6d9487129f6c14ee5a3fbcf1f | external/vulkancts/framework/vulkan/vkNoRenderDocUtil.cpp | external/vulkancts/framework/vulkan/vkNoRenderDocUtil.cpp | /*-------------------------------------------------------------------------
* Vulkan CTS Framework
* --------------------
*
* Copyright (c) 2018 The Khronos Group Inc.
* Copyright (c) 2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in... | /*-------------------------------------------------------------------------
* Vulkan CTS Framework
* --------------------
*
* Copyright (c) 2018 The Khronos Group Inc.
* Copyright (c) 2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in... | Fix build by adding DE_UNREF | Fix build by adding DE_UNREF
Function parameters weren't being used in the renderdoc stub interface,
so the warnings should be silenced.
Components: Framework
Change-Id: I0f060c344c6b5959028efcc2489d1bc30b43fb9f
| C++ | apache-2.0 | KhronosGroup/Vulkan-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,googlestadia/VK-GL-CTS,KhronosGroup/Vulkan-CTS,googlestadia/VK-GL-CTS,googlestadia/VK-GL-CTS,googlestadia/VK-GL-CTS,KhronosGroup/VK-GL-CTS,googlestadia/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-... |
f128b858871748d6342bc394af28ea4955b826be | test/CodeGenCXX/debug-info-ctor.cpp | test/CodeGenCXX/debug-info-ctor.cpp | // RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s
struct X {
X(int v);
int value;
};
X::X(int v) {
// CHECK_TEMPORARILY_DISABLED: call void @_ZN1XC2Ei(%struct.X* %this1, i32 %tmp), !dbg
// TEMPORARY CHECK: X
value = v;
}
| // RUN: %clang -march=x86_64-apple-darwin10 -emit-llvm -g -S %s -o - | FileCheck %s
struct X {
X(int v);
int value;
};
X::X(int v) {
// CHECK: call void @_ZN1XC2Ei(%struct.X* %this1, i32 %tmp), !dbg
value = v;
}
| Make this test darwin only. | Make this test darwin only.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@110936 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
15b350081211f75c3d73b1db0b7ba00e90b87105 | src/APU.cpp | src/APU.cpp | #include <cstdint>
#include <APU.h>
static int null_dmc_reader(void*, unsigned int)
{
return 0x55; // causes dmc sample to be flat
}
APU::APU()
{
time = 0;
frameLength = 29780;
apu.dmc_reader(null_dmc_reader, NULL);
apu.output(&buf);
buf.clock_rate(1789773);
buf.sample_rate(96000);
}
void APU::setDmcCallback... | #include <cstdint>
#include <APU.h>
static int null_dmc_reader(void*, unsigned int)
{
return 0x55; // causes dmc sample to be flat
}
APU::APU()
{
time = 0;
frameLength = 29780;
apu.dmc_reader(null_dmc_reader, NULL);
apu.output(&buf);
buf.clock_rate(1789773);
buf.sample_rate(44100);
}
void APU::setDmcCallback... | Set apu default sample rate to 44100 | Set apu default sample rate to 44100
| C++ | mit | scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES |
c83d683cefc7fbc40bcf3163a90c3e5b04f8d573 | test/gettime.cpp | test/gettime.cpp | //
// (C) Jan de Vaan 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#include "gettime.h"
// for best accuracy, getTime is implemented platform dependent.
// to avoid a global include of windows.h, this is a separate file.
#if defined(_WIN32)
#include <windows.h>
// return... | //
// (C) Jan de Vaan 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#include "gettime.h"
// for best accuracy, getTime is implemented platform dependent.
// to avoid a global include of windows.h, this is a separate file.
#if defined(_WIN32)
#include <windows.h>
// return... | Add noexcept for getTime() in Linux build | Add noexcept for getTime() in Linux build
| C++ | bsd-3-clause | team-charls/charls,team-charls/charls |
85e629c97812943cac4dc319b4e20683a9930393 | 2017/day04/solution.cpp | 2017/day04/solution.cpp | /**
* $ g++ solution.cpp && ./a.out < input.txt
*/
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
/**
* O(n^2) word-by-word comparison
*/
bool validate_line(string line) {
string input1, input2;
stringstream stream1(line);
int counter1 = 0;
while (stream1 >> input1)... | /**
* $ g++ solution.cpp && ./a.out < input.txt
*/
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
/**
* O(n^2) word-by-word comparison
*/
bool part1_validate(string line) {
string input1, input2;
stringstream stream1(line);
int counter1 = 0;
while (stream1 >> input1... | Rework to call part1-specific stuff line by line | Rework to call part1-specific stuff line by line
Prep for part 2
| C++ | mit | loisaidasam/adventofcode,loisaidasam/adventofcode,loisaidasam/adventofcode,loisaidasam/adventofcode,loisaidasam/adventofcode |
3df8d2b6693e05b633159969a3b735039950f073 | chrome/browser/chrome_browser_main_aura.cc | chrome/browser/chrome_browser_main_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/chrome_browser_main_aura.h"
#include "base/logging.h"
ChromeBrowserMainPartsAura::ChromeBrowserMainPartsAura(
const Mai... | // 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/chrome_browser_main_aura.h"
#include "base/logging.h"
ChromeBrowserMainPartsAura::ChromeBrowserMainPartsAura(
const Mai... | Fix Aura compile error. My bad. | Fix Aura compile error. My bad.
TBR=ben@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8098014
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@103581 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,anirudhSK/chromium,Just-D/chromium-1,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-cross... |
0e177e07b480ed10be55b8040c3c70521a3f2497 | languages/C++-Boost.Test/hiker.tests.cpp | languages/C++-Boost.Test/hiker.tests.cpp | #include "hiker.hpp"
#define BOOST_TEST_MODULE HikerTest
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(Life_the_universe_and_everything)
{
// The initial code and test files are completely
// *unrelated* to the chosen exercise. They are
// merely a simple example to start you off.
// You sho... | #include "hiker.hpp"
#define BOOST_TEST_MODULE HikerTest
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(Life_the_universe_and_everything)
{
// The initial code and test files are completely
// *unrelated* to the chosen exercise. They are
// merely a simple example to start you off.
// You sho... | Use require equal for testing equality | Use require equal for testing equality
| C++ | bsd-2-clause | byran/cyber-dojo-web,byran/cyber-dojo-web,byran/cyber-dojo-web,byran/cyber-dojo-web,cyber-dojo/web,cyber-dojo/web,byran/cyber-dojo-web,byran/cyber-dojo-web,byran/cyber-dojo-web,cyber-dojo/web,cyber-dojo/web,byran/cyber-dojo-web,byran/cyber-dojo-web |
b9fcb59414eee3405649ee4945092d14d899dc89 | src/quadraticsieve.cc | src/quadraticsieve.cc | #include <assert.h>
#include <stdio.h>
#include "utility.h"
#include "quadraticsieve.h"
void quadratic_sieve(long long& result, long long input, int& err)
{
}
| Add a stub for the quadratic_sieve(...) procedure. | Add a stub for the quadratic_sieve(...) procedure.
| C++ | mpl-2.0 | johnwalker/gmpsieve,johnwalker/gmpsieve | |
29a4d5566802e6b75b03d817f72a542e7c963d13 | lib/project_euler/0001-0050/Problem5.cpp | lib/project_euler/0001-0050/Problem5.cpp | //===-- project_euler/Problem5.cpp ------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \class project_eul... | //===-- project_euler/Problem5.cpp ------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \class project_eul... | Correct problem statement for problem 5 | Correct problem statement for problem 5
| C++ | mit | wtmitchell/challenge_problems,wtmitchell/challenge_problems,wtmitchell/challenge_problems |
cb35a522ed3e3294e83e774e54bf841423ba49ef | chrome/browser/extensions/stubs_apitest.cc | chrome/browser/extensions/stubs_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 "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/ui_test_utils.h"
#include "goog... | // 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 "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/ui_test_utils.h"
#include "goog... | Mark ExtensionApiTest.Stubs as disabled on mac due to timeouts. | Mark ExtensionApiTest.Stubs as disabled on mac due to timeouts.
TBR=nirnimesh@chromium.org
BUG=89116
TEST=
Review URL: http://codereview.chromium.org/7356004
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@92273 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | gavinp/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromiu... |
1266b1fcb30e1ebeae03024add8ceea5a9a770dd | c++/src/problem_44.cpp | c++/src/problem_44.cpp | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
// Project Euler: Problem 44
// Coded triangle numbers
namespace problem_44 {
long nth_pentagonal_number(const long n) {
return n * (3 * n - 1) / 2;
}
bool is_pentagonal(const long n) {
const long limit = n / 2 + 1;
const long two_n = n * 2;
for (lon... | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
// Project Euler: Problem 44
// Coded triangle numbers
#include <cstdio>
#include <cmath>
namespace problem_44 {
long nth_pentagonal_number(const long n) {
return n * (3 * n - 1) / 2;
}
bool is_pentagonal(const long n) {
const long limit = n / 2 + 1;
... | Work on Problem 44 some more | Work on Problem 44 some more
| C++ | mit | mk12/euler,mk12/euler |
386c830b1de80d11572eb71505a76693b3cfb616 | renderdoc/os/posix/android/android_hook.cpp | renderdoc/os/posix/android/android_hook.cpp | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 Baldur Karlsson
*
* 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 MIT License (MIT)
*
* Copyright (c) 2016-2017 Baldur Karlsson
*
* 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... | Load wrapped library early in case of Android | Load wrapped library early in case of Android
On newer Android it is not possible to use the
LD_PRELOAD functionality. The target application
should be directly linked with the RenderDoc library.
However in that case we also need to load the
target library early, so a simple implementation
for the PosixHookLibrary is ... | C++ | mit | Zorro666/renderdoc,googlestadia/renderdoc,victor-moya/renderdoc,Yours3lf/renderdoc,Velro/renderdoc,googlestadia/renderdoc,Lssikkes/renderdoc,googlestadia/renderdoc,Zorro666/renderdoc,Yours3lf/renderdoc,victor-moya/renderdoc,TurtleRockStudios/renderdoc_public,TurtleRockStudios/renderdoc_public,Lssikkes/renderdoc,baldurk... |
5c192fbe450d0a541a40cbbf4746b6957015dc89 | lib/Target/MSP430/MSP430MCAsmInfo.cpp | lib/Target/MSP430/MSP430MCAsmInfo.cpp | //===-- MSP430MCAsmInfo.cpp - MSP430 asm properties -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- MSP430MCAsmInfo.cpp - MSP430 asm properties -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Use '.L' for global private prefix (as mspgcc) | Use '.L' for global private prefix (as mspgcc)
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@86380 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mi... |
6f76a1e81c7cd76d5c9c43dbd3b894e89c6a25d2 | sandbox/linux/seccomp-bpf/trap_unittest.cc | sandbox/linux/seccomp-bpf/trap_unittest.cc | // Copyright 2015 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 "sandbox/linux/seccomp-bpf/trap.h"
#include <signal.h>
#include "sandbox/linux/tests/unit_tests.h"
#include "testing/gtest/include/gtest/gtest.... | // Copyright 2015 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 "sandbox/linux/seccomp-bpf/trap.h"
#include <signal.h>
#include "sandbox/linux/tests/unit_tests.h"
#include "testing/gtest/include/gtest/gtest.... | Disable the failing Trap.SigSysAction test under TSan. | Disable the failing Trap.SigSysAction test under TSan.
BUG=481297
TBR=hidehiko@chromium.org,mdempsky@chromium.org
Review URL: https://codereview.chromium.org/1104813008
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#326952}
| C++ | bsd-3-clause | Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,Just-D/chromium-1,Pluto-tv/chromi... |
2216fcb9329f8258bf01081c63d5766eee32587c | packages/Search/test/tstException.cpp | packages/Search/test/tstException.cpp | /****************************************************************************
* Copyright (c) 2012-2019 by the DataTransferKit authors *
* All rights reserved. *
* *
* This ... | /****************************************************************************
* Copyright (c) 2012-2019 by the DataTransferKit authors *
* All rights reserved. *
* *
* This ... | Check assertion macro message starts with prefix and contains filename | Check assertion macro message starts with prefix and contains filename
| C++ | bsd-3-clause | Rombur/DataTransferKit,Rombur/DataTransferKit,ORNL-CEES/DataTransferKit,Rombur/DataTransferKit,ORNL-CEES/DataTransferKit,ORNL-CEES/DataTransferKit,ORNL-CEES/DataTransferKit,Rombur/DataTransferKit |
1af18d572f003a4bf895e6b99a47652c4465c9d8 | Geometry/utilities.cpp | Geometry/utilities.cpp | //Some useful equations
int main(){
//area portion of a circle
A = pi*r^2 * (theta/(2*pi))
//area chord of a circle
A = R * R * acos((R - h)/R) - (R - h) * sqrt(2 * R * h - h * h)
// h is the height of the chord
}
| //Some useful equations
int main(){
//area portion of a circle
A = pi*r^2 * (theta/(2*pi))
//area chord of a circle
A = R * R * acos((R - h)/R) - (R - h) * sqrt(2 * R * h - h * h)
// h is the height of the chord h = R - hypot(x,y)
// rotation matrix counnterclockwise
[x' y'] = [[cost -sint] [sint cost]]... | Add rotation matrix , clockwise and counterclockwise. | Add rotation matrix , clockwise and counterclockwise.
| C++ | mit | xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book |
9ea1100ab554d5168dd7450fb837b55e51e74a00 | SurgSim/Framework/UnitTests/SceneTest.cpp | SurgSim/Framework/UnitTests/SceneTest.cpp | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest LLC.
//
// 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
//... | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest LLC.
//
// 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
//... | Add tests for Scene, SceneElement access | Add tests for Scene, SceneElement access
| C++ | apache-2.0 | simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim |
aaa7b16f1867cbe6d4867ea23f2e3637ced966a4 | adaptors/common/color-controller-impl.cpp | adaptors/common/color-controller-impl.cpp | /*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
* 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... | /*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
* 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... | Fix for ColorController. Creates an internal implementation for the default color controller to avoid a crash if it's called. | Fix for ColorController.
Creates an internal implementation for the default color controller to avoid a crash if it's called.
[problem] Crash if the default ColorController is used.
[cause] There is no internal implementation.
[solution] Create an internal implementation.
Change-Id: I49ac335ed6db2dfc68b6dae3beea42c1b... | C++ | apache-2.0 | dalihub/dali-adaptor,dalihub/dali-adaptor,dalihub/dali-adaptor,dalihub/dali-adaptor,dalihub/dali-adaptor |
15bebd0f38e1f17793165da0b2c2e052a6813bec | test/Frontend/Weverything-and-remarks.cpp | test/Frontend/Weverything-and-remarks.cpp | // Test that -Weverything does not trigger any backend remarks.
//
// This was triggering backend remarks for which there were no frontend
// flags to filter them. The handler in BackendConsumer::DiagnosticHandlerImpl
// should not emitting diagnostics for unhandled kinds.
// RUN: %clang -c -Weverything -O0 -o /dev/nu... | // Test that -Weverything does not trigger any backend remarks.
//
// This was triggering backend remarks for which there were no frontend
// flags to filter them. The handler in BackendConsumer::DiagnosticHandlerImpl
// should not emitting diagnostics for unhandled kinds.
// RUN: %clang -c -S -Weverything -O0 -o /dev... | Add missing -S to avoid invoking assembler unnecessarily. | Add missing -S to avoid invoking assembler unnecessarily.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@209828 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,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,llvm-mirror/clang,apple/swift-cl... |
73d8f7a590a65c7fd6f44c02a031eb5a851d9e5f | agent_based_epidemic_sim/util/records.cc | agent_based_epidemic_sim/util/records.cc | #include "agent_based_epidemic_sim/util/records.h"
namespace abesim {
constexpr int kReadFlag = O_RDONLY;
constexpr int kWriteFlag = O_CREAT | O_WRONLY;
riegeli::RecordReader<RiegeliBytesSource> MakeRecordReader(
absl::string_view filename) {
return riegeli::RecordReader<RiegeliBytesSource>(
std::forward... | #include "agent_based_epidemic_sim/util/records.h"
namespace abesim {
constexpr int kReadFlag = O_RDONLY;
constexpr int kWriteFlag = O_CREAT | O_WRONLY;
riegeli::RecordReader<RiegeliBytesSource> MakeRecordReader(
absl::string_view filename) {
return riegeli::RecordReader(RiegeliBytesSource(filename, kReadFlag)... | Improve readability of constructor calls of Riegeli classes. | Improve readability of constructor calls of Riegeli classes.
Write the type name instead of `std::forward_as_tuple` for construction of
dependencies of these classes. This looks better, at the cost of a tiny
performance hit: the dependency is constructed as a temporary and then moved,
instead of being constructed in p... | C++ | apache-2.0 | google-research/agent-based-epidemic-sim,google-research/agent-based-epidemic-sim,google-research/agent-based-epidemic-sim |
6a928def15d28c29a639ee3fa20bf88385857490 | source/chip/STM32/STM32L0/STM32L0-lowLevelInitialization.cpp | source/chip/STM32/STM32L0/STM32L0-lowLevelInitialization.cpp | /**
* \file
* \brief chip::lowLevelInitialization() implementation for STM32L0
*
* \author Copyright (C) 2017 Cezary Gapinski cezary.gapinski@gmail.com
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this fil... | /**
* \file
* \brief chip::lowLevelInitialization() implementation for STM32L0
*
* \author Copyright (C) 2017 Cezary Gapinski cezary.gapinski@gmail.com
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this fil... | Handle flash options in chip::lowLevelInitialization() for STM32L0 | Handle flash options in chip::lowLevelInitialization() for STM32L0
| C++ | mpl-2.0 | DISTORTEC/distortos,DISTORTEC/distortos,jasmin-j/distortos,jasmin-j/distortos,CezaryGapinski/distortos,CezaryGapinski/distortos,jasmin-j/distortos,jasmin-j/distortos,DISTORTEC/distortos,jasmin-j/distortos,CezaryGapinski/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,CezaryGapinski/distortos |
5b20330abc0ee54fb6900785a263e3a82cdb8851 | chrome/browser/history/history_publisher.cc | chrome/browser/history/history_publisher.cc | // Copyright (c) 2008-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 "chrome/browser/history/history_publisher.h"
#include "base/utf_string_conversions.h"
namespace history {
const char* const HistoryPu... | // Copyright (c) 2008-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 "chrome/browser/history/history_publisher.h"
#include "base/utf_string_conversions.h"
namespace history {
const char* const HistoryPu... | Make sure the pointer in PageData::html remains valid while PageData is called. | Make sure the pointer in PageData::html remains valid while PageData is called.
BUG=46835
Review URL: http://codereview.chromium.org/2852014
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@50173 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | Just-D/chromium-1,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,Jonekee/chromium.src,Chilledheart/chromium,ltilve/chromium,Just-D/chromium-1,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,Jonekee/chromium.src,hgl... |
70087de1a4502636bb961585e639a67586a04d12 | src/example/pegtl/json_trace.cpp | src/example/pegtl/json_trace.cpp | // Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include <tao/pegtl.hpp>
#include <tao/pegtl/contrib/json.hpp>
#include <tao/pegtl/contrib/trace2.hpp>
namespace pegtl = TAO_PEGTL_NAMESPACE;
using grammar = pegtl::must< pegtl::jso... | // Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include <tao/pegtl.hpp>
#include <tao/pegtl/contrib/json.hpp>
#include <tao/pegtl/contrib/trace2.hpp>
namespace pegtl = TAO_PEGTL_NAMESPACE;
using grammar = pegtl::must< pegtl::jso... | Fix grammar to check for complete text | Fix grammar to check for complete text
| C++ | mit | ColinH/PEGTL,ColinH/PEGTL |
6d538af698b9b96bc18bfbe62173dca1c103aaca | test/Modules/odr_hash-Friend.cpp | test/Modules/odr_hash-Friend.cpp | // RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/modules.cache \
// RUN: -I %S/Inputs/odr_hash-Friend \
// RUN: -emit-obj -o /dev/null \
// RUN: -fmodules \
// RUN: -fimplicit-module-maps \
// RUN: -fmodules-cache-path=%t/modules.cache \
// RUN: -std=c++11 -x c++ %s -verify
// expected-no-... | // RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/modules.cache \
// RUN: -I %S/Inputs/odr_hash-Friend \
// RUN: -emit-obj -o /dev/null \
// RUN: -fmodules \
// RUN: -fimplicit-module-maps \
// RUN: -fmodules-cache-path=%t/modules.cache \
// RUN: -std=c++11 -x c++ %s -verify
// UNSUPPORTED:... | Disable test for Windows to fix Windows buildbots. | Disable test for Windows to fix Windows buildbots.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@322405 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
5b3e03e3cf6847cc0275c6ec1c54b6dab7b70209 | CodeSamples/UserTypeToString.cpp | CodeSamples/UserTypeToString.cpp | #include "stdafx.h"
#include "UserTypeToString.h"
UserTypeToString::UserTypeToString(std::string name, int age, double netWorth) : name(name), age(age), netWorth(netWorth)
{
}
UserTypeToString::~UserTypeToString()
{
}
std::ostream& operator<<(std::ostream& os, const UserTypeToString& obj)
{
// write obj to stre... | #include "stdafx.h"
#include "UserTypeToString.h"
UserTypeToString::UserTypeToString(std::string name, int age, double netWorth) : name(name), age(age), netWorth(netWorth)
{
}
UserTypeToString::~UserTypeToString()
{
}
/* when streaming an instance of this type to an ostream of any kind this function will build the ... | Add function header to operator<< implementation | Add function header to operator<< implementation
| C++ | mit | Shawn1874/CodeSamples,Shawn1874/CodeSamples,Shawn1874/CodeSamples,Shawn1874/CodeSamples |
767202fb37ae4ea62e6952f0ef008d054d0e7c55 | lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp | lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp | //===-- RISCVTargetInfo.cpp - RISCV Target Implementation -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- RISCVTargetInfo.cpp - RISCV Target Implementation -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix RISCV build after r318352 | Fix RISCV build after r318352
Reviewers: asb, apazos, mgrang
Reviewed By: mgrang
Subscribers: rbar, johnrusso, simoncook, jordy.potman.lists, llvm-commits
Differential Revision: https://reviews.llvm.org/D40139
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@318437 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Dri... |
69027c35cda6c65f89cb477c684e586f15f0a708 | test/asan/TestCases/Windows/unsymbolized.cc | test/asan/TestCases/Windows/unsymbolized.cc | // When we link a binary without the -debug flag, ASan should print out VAs
// instead of RVAs. The frames for main and do_uaf should be above 0x400000,
// which is the default image base of an executable.
// RUN: rm -f %t.pdb
// RUN: %clangxx_asan -c -O2 %s -o %t.obj
// RUN: link /nologo /OUT:%t.exe %t.obj %asan_lib ... | // When we link a binary without the -debug flag, ASan should print out VAs
// instead of RVAs. The frames for main and do_uaf should be above 0x400000,
// which is the default image base of an executable.
// RUN: rm -f %t.pdb
// RUN: %clangxx_asan -c -O2 %s -o %t.obj
// RUN: link /nologo /OUT:%t.exe %t.obj %asan_lib ... | Fix unsymbolize unittest. Adding win64 address. | Fix unsymbolize unittest. Adding win64 address.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@276326 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 |
926ff92590826ca10570e6571dac20dd228ca2a9 | homework-6/6-primes-ipc.cpp | homework-6/6-primes-ipc.cpp | #include "../lib/shared_mem.hpp"
#include <iostream>
std::shared_ptr<cs477::shm_pool> pool;
std::shared_ptr<cs477::bounded_queue<cs477::message, 1024>> rq_queue;
std::shared_ptr<cs477::bounded_queue<cs477::message, 1024>> rp_queue;
int main(int argc, char **argv) {
pool = std::make_shared<cs477::shm_pool>();
pool->... | #include "../lib/shared_mem.hpp"
#include <iostream>
const int PROCESS_COUNT = 3;
std::shared_ptr<cs477::shm_pool> pool;
std::shared_ptr<cs477::bounded_queue<cs477::message, 1024>> rq_queue;
std::shared_ptr<cs477::bounded_queue<cs477::message, 1024>> rp_queue;
int main(int argc, char **argv) {
pool = std::make_shar... | Add progress for the night | Add progress for the night
| C++ | mit | Timer/cs-3460-477 |
86ba83f8390ee1ac80046f53b678128a481cfab6 | src/rtcmix/rtdispatch.cpp | src/rtcmix/rtdispatch.cpp | /* RTcmix - Copyright (C) 2000 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include "../sys/mixerr.h"
extern "C" double checkInsts(char*, double*, short);
extern "C" {
double rtdispatch(cha... | /* RTcmix - Copyright (C) 2000 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include <prototypes.h>
#include "../sys/mixerr.h"
extern "C" {
double rtdispatch(char *fname, double *pp, short n... | Move some prototypes to prototypes.h. | Move some prototypes to prototypes.h.
| C++ | apache-2.0 | RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix |
6e57ada4a976f3c6356f510638503180b1aca131 | test/string.cpp | test/string.cpp | #include <wtl/string.hpp>
#include <wtl/exception.hpp>
#include <iostream>
int main() {
std::cout << "__cplusplus: " << __cplusplus << std::endl;
WTL_ASSERT((wtl::split("a b\tc") == std::vector<std::string>{"a", "b", "c"}));
WTL_ASSERT((wtl::split<int>("1 2\t3") == std::vector<int>{1, 2, 3}));
WTL_ASS... | #include <wtl/string.hpp>
#include <wtl/exception.hpp>
#include <iostream>
void test_sto() {
WTL_ASSERT(wtl::sto<bool>("1"));
WTL_ASSERT(wtl::sto<int>("42") == 42);
WTL_ASSERT(wtl::sto<long>("1729") == 1729l);
WTL_ASSERT(wtl::sto<long long>("24601") == 24601ll);
WTL_ASSERT(wtl::sto<unsigned>("42")... | Add tests for sto() and replace() | :white_check_mark: Add tests for sto() and replace()
| C++ | mit | heavywatal/cxxwtils |
ec0b7ecaa35a375642d6e39dc7f028128c888591 | src/llvm/runner.cpp | src/llvm/runner.cpp | #include "llvm/runner.hpp"
Runner::Runner(CompileVisitor::Link v): v(v) {
llvm::InitializeNativeTarget();
llvm::InitializeNativeTargetAsmPrinter();
llvm::InitializeNativeTargetAsmParser();
std::string onError = "";
auto eb = new llvm::EngineBuilder(std::unique_ptr<llvm::Module>(v->getModule()));
engine ... | #include "llvm/runner.hpp"
Runner::Runner(CompileVisitor::Link v): v(v) {
llvm::InitializeNativeTarget();
llvm::InitializeNativeTargetAsmPrinter();
llvm::InitializeNativeTargetAsmParser();
std::string onError = "";
auto eb = new llvm::EngineBuilder(std::unique_ptr<llvm::Module>(v->getModule()));
engine ... | Fix segfault with foreign function mappings | Fix segfault with foreign function mappings
| C++ | mit | slak44/Xylene,slak44/test-lang |
222e09ea0b8bec8c6bac0e53554d7ea9e1f30407 | src/actions/set_env.cc | src/actions/set_env.cc | /*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the fil... | /*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the fil... | Fix typo in debug log text | Fix typo in debug log text
| C++ | apache-2.0 | SpiderLabs/ModSecurity,SpiderLabs/ModSecurity,SpiderLabs/ModSecurity |
2d04ffdf497c845502bc18ac3e3d7fb6834f7a8a | test/msan/chained_origin_with_signals.cc | test/msan/chained_origin_with_signals.cc | // Check that stores in signal handlers are not recorded in origin history.
// This is, in fact, undesired behavior caused by our chained origins
// implementation being not async-signal-safe.
// RUN: %clangxx_msan -fsanitize-memory-track-origins=2 -m64 -O3 %s -o %t && \
// RUN: not %run %t >%t.out 2>&1
// RUN: Fi... | // Check that stores in signal handlers are not recorded in origin history.
// This is, in fact, undesired behavior caused by our chained origins
// implementation being not async-signal-safe.
// RUN: %clangxx_msan -fsanitize-memory-track-origins=2 -m64 -O3 %s -o %t && \
// RUN: not %run %t >%t.out 2>&1
// RUN: Fi... | Use SIGHUP instead of SIGUSR1 in test. | [msan] Use SIGHUP instead of SIGUSR1 in test.
Apparently, SIGUSR1 does not work on x86_64+ArchLinux for some reason.
For more details, see:
https://groups.google.com/forum/#!topic/llvm-dev/4Ag1FF4M2Dw
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@214289 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.