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
24c1e12befa4bf8ebfebef546a078039e0fbf875
src/main.cpp
src/main.cpp
#include "Server.h" #include "IgnoreDebugOutput.h" #include "StdinNotifier.h" #include <QApplication> #include <iostream> #ifdef Q_OS_UNIX #include <unistd.h> #endif int main(int argc, char **argv) { #ifdef Q_OS_UNIX if (setpgid(0, 0) < 0) { std::cerr << "Unable to set new process group." << std::endl; ret...
#include "Server.h" #include "IgnoreDebugOutput.h" #include "StdinNotifier.h" #include <QApplication> #include <iostream> #ifdef Q_OS_UNIX #include <unistd.h> #endif int main(int argc, char **argv) { #ifdef Q_OS_UNIX if (setpgid(0, 0) < 0) { std::cerr << "Unable to set new process group." << std::endl; ret...
Use the Fusion Qt Style on OS X
Use the Fusion Qt Style on OS X This fixes issues with checkboxes and radio buttons not being rendered at the appropriate location on newer version of OS X.
C++
mit
mhoran/capybara-webkit,mhoran/capybara-webkit,addicted2sounds/capybara-webkit,twalpole/capybara-webkit,mhoran/capybara-webkit,twalpole/capybara-webkit,addicted2sounds/capybara-webkit,thoughtbot/capybara-webkit,twalpole/capybara-webkit,addicted2sounds/capybara-webkit,twalpole/capybara-webkit,addicted2sounds/capybara-web...
c6c7ac9ba256bff1a0c6f0cd4579ca08cde5ee0f
src/main.cpp
src/main.cpp
#include <QtCore/QSettings> #include <QtCore/QVariant> #include <QtGui/QApplication> #include <QtGui/QFont> #include <memory> extern "C" { #include <libxslt/xslt.h> #include <libxml/parser.h> #include <libxml/xpath.h> #include <libexslt/exslt.h> } #include "DactMainWindow.h" int main(int argc, char *argv[]) { Q...
#include <QtCore/QSettings> #include <QtCore/QVariant> #include <QtGui/QApplication> #include <QtGui/QFont> #include <QScopedPointer> extern "C" { #include <libxslt/xslt.h> #include <libxml/parser.h> #include <libxml/xpath.h> #include <libexslt/exslt.h> } #include "DactMainWindow.h" int main(int argc, char *argv[]) ...
Use QScopedPointer instead of std::auto_ptr, per Daniel's request
Use QScopedPointer instead of std::auto_ptr, per Daniel's request
C++
lgpl-2.1
evdmade01/dact,evdmade01/dact,rug-compling/dact,evdmade01/dact,rug-compling/dact
fd8712cd5dc4f7f06cbbf8eb00cf46b46a4ecf3a
primality-test.cpp
primality-test.cpp
#include<cmath> #include<iostream> using namespace std; bool isPrimeBruteForce(int x) { if (x < 2) return false; float sqroot_x = sqrt(x); for(int i=0; i <= sqroot_x; i++) { /* If there were only factors above the square root of x, they would be bigger than x itself. */ if (x%i==0) return false; } return ...
#include<cmath> #include<iostream> using namespace std; bool isPrimeBruteForce(int x) { if (x < 2) return false; float sqroot_x = sqrt(x); for(int i=0; i <= sqroot_x; i++) { /* If there were only factors above the square root of x, they would be bigger than x itself. */ if (x%i==0) return false; } return ...
Correct syntax error in line 25
Correct syntax error in line 25
C++
mit
luforst/primality-test,luforst/primality-test
9f36f60c87f3bcf081bd95d152c5af4431439026
examples/websocket_client/WebSocketWrapper.cpp
examples/websocket_client/WebSocketWrapper.cpp
#include "WebSocketWrapper.hpp" #include <thread> #include <iostream> using namespace rtcdcpp; WebSocketWrapper::WebSocketWrapper(std::string url) : url(url), send_queue() { ; } WebSocketWrapper::~WebSocketWrapper() { delete this->ws; } bool WebSocketWrapper::Initialize() { this->ws = WebSocket::from_url(this->ur...
#include "WebSocketWrapper.hpp" #include <thread> #include <iostream> using namespace rtcdcpp; WebSocketWrapper::WebSocketWrapper(std::string url) : url(url), send_queue() { ; } WebSocketWrapper::~WebSocketWrapper() { delete this->ws; } bool WebSocketWrapper::Initialize() { this->ws = WebSocket::from_url(this->ur...
Reduce WebSocket poll delay to 50ms
Reduce WebSocket poll delay to 50ms
C++
bsd-3-clause
chadnickbok/librtcdcpp,chadnickbok/librtcdcpp
b8fe1e8088209586f871b0538dac007906fca5f3
src/main.cc
src/main.cc
#include <iostream> #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "google/protobuf/util/json_util.h" #include "src/protobuf/test.pb.h" int main() { // verify link and compile versions are the same GOOGLE_PROTOBUF_VERIFY_VERSION; // testing absl std::cout << absl::StrCat("H...
#include <iostream> #include <string> // #include "absl/strings/str_cat.h" // #include "absl/strings/string_view.h" #include "google/protobuf/util/json_util.h" #include "src/protobuf/bmv2/program.pb.h" void ReadStdin(std::string& str) { std::istreambuf_iterator<char> cin_iterator{std::cin}; std::istreambuf_itera...
Add simple C++ stub for testing protobuf definitions
Add simple C++ stub for testing protobuf definitions
C++
apache-2.0
googleinterns/p4-symbolic,googleinterns/p4-symbolic,googleinterns/p4-symbolic
f3659cb6afbb9c52c887069f9a63a0f22d1bca4f
src/main.cc
src/main.cc
#include <iostream> #include "Board.h" int main() { Board b(10, 10); b.fillRandomly(10); std::cout << "main executed" << std::endl; return 0; }
#include <cstdio> #include "Board.h" #include "AGE/Engine.h" int main() { AGE::Engine engine; printf("Initializing...\n"); if (!engine.init()) { printf("Advanced Game Engine failed to initialize. Exiting.\n"); exit(1); } printf("Initialization complete.\nLoading the media...\n"); if (!engine.l...
Use the engine to create a game window
Use the engine to create a game window Modifies the main unit, so that it will use the Advanced Graphics Engine. The engine creates an 800x600 window and renders the minesweeper tiles' texture in the top-left corner.
C++
mit
aszczerbiak/Minesweeper
3ec382a8cc18f9936d52ef9af83a944b8b9082be
src/BasicLayout.cpp
src/BasicLayout.cpp
/* * BasicLayout.cpp * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include "PortabilityImpl.hh" #include <log4cpp/BasicLayout.hh> #include <log4cpp/Pri...
/* * BasicLayout.cpp * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include "PortabilityImpl.hh" #include <log4cpp/BasicLayout.hh> #include <log4cpp/Pri...
Add missing header file for Ubuntu Jaunty and beyond
Add missing header file for Ubuntu Jaunty and beyond
C++
lgpl-2.1
orocos-toolchain/log4cpp,snrkiwi/orocos-log4cpp,orocos-toolchain/log4cpp,snrkiwi/orocos-log4cpp,phamelin/orocos-log4cpp,phamelin/orocos-log4cpp,phamelin/orocos-log4cpp,phamelin/orocos-log4cpp,snrkiwi/orocos-log4cpp
bf5a10a029a7de08c45a144480056064a115f51d
src/Interpreter.cpp
src/Interpreter.cpp
#include "Interpreter.hpp" #include "modules/error-handler/ErrorHandler.hpp" #include "modules/lexer/Lexer.hpp" #include <iostream> using Interpreter = tkom::Interpreter; using ErrorHandler = tkom::modules::ErrorHandler; using Lexer = tkom::modules::Lexer; Interpreter::Interpreter(const std::vector<std::string>& ar...
#include "Interpreter.hpp" #include "modules/error-handler/ErrorHandler.hpp" #include "modules/lexer/Lexer.hpp" #include "modules/parser/Parser.hpp" using Interpreter = tkom::Interpreter; using ErrorHandler = tkom::modules::ErrorHandler; using Lexer = tkom::modules::Lexer; using Parser = tkom::modules::Parser; Inter...
Use Parser module to parse a file
Use Parser module to parse a file
C++
mit
mdziekon/eiti-tkom-interpreter,mdziekon/eiti-tkom-interpreter
cf91e53c33aba0cd6216ab5eed5c856660f50f3e
chrome/browser/extensions/extension_popup_apitest.cc
chrome/browser/extensions/extension_popup_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" IN_PROC_BROWSER_T...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" // Flaky, http://c...
Mark ExtensionApiTest.Popup as FLAKY, it is still flaky.
Mark ExtensionApiTest.Popup as FLAKY, it is still flaky. TBR=twiz BUG=46601 TEST=browser_tests Review URL: http://codereview.chromium.org/3356001 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@58208 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
Crystalnix/house-of-life-chromium,ropik/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium...
02d008b0ee86ef7037833d27cf92b45f9125f097
chrome/test/chromedriver/chrome/device_metrics.cc
chrome/test/chromedriver/chrome/device_metrics.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 "chrome/test/chromedriver/chrome/device_metrics.h" DeviceMetrics::DeviceMetrics(int width, int height, double device_scale_factor) : width(wid...
// 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 "chrome/test/chromedriver/chrome/device_metrics.h" DeviceMetrics::DeviceMetrics(int width, int height, double device_scale_factor) : width(wid...
Set mobile=true when calling setDeviceMetricsOverride
[chromedriver] Set mobile=true when calling setDeviceMetricsOverride BUG=chromedriver:944 TBR=stgao@chromium.org Review URL: https://codereview.chromium.org/668783002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#300390}
C++
bsd-3-clause
dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,M4sse/chromium.src,markYoungH/chromium.src,Chilledheart/chromium,TheTypoMaster/chromium-crossw...
fe32a8fe758ce84b043fe08264f76fb7fdc56afa
src/scene/scenegroup.cpp
src/scene/scenegroup.cpp
#include "scene/scenegroup.hpp" #include <algorithm> using namespace scene; SceneGroup::SceneGroup(unsigned int octreeLevels) { addOctreeLayers(octreeLevels); } void SceneGroup::addOctreeLayers(unsigned int levels) { childGroups.reset(new std::array<SceneGroup,8>); std::for_each(childGroups->begin(), childGroup...
#include "scene/scenegroup.hpp" #include <algorithm> using namespace scene; SceneGroup::SceneGroup(unsigned int octreeLevels) { addOctreeLayers(octreeLevels); } void SceneGroup::addOctreeLayers(unsigned int levels) { if(levels != 0) { childGroups.reset(new std::array<SceneGroup,8>); std::for_each(childGroups...
Fix recursive add of octreelevels in SceneGroup
Fix recursive add of octreelevels in SceneGroup
C++
apache-2.0
maruno/collisionsdemo,maruno/collisionsdemo
a0ddec879cc5bf65904736b3fb88c1f2699080e4
test/asan/TestCases/Windows/user-exception.cc
test/asan/TestCases/Windows/user-exception.cc
// RUN: %clang_cl_asan -O0 %s -Fe%t // RUN: env ASAN_OPTIONS=handle_segv=0 %run %t 2>&1 | FileCheck %s --check-prefix=USER // RUN: env ASAN_OPTIONS=handle_segv=1 not %run %t 2>&1 | FileCheck %s --check-prefix=ASAN // Test the default. // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=ASAN // This test exits zero ...
// RUN: %clang_cl_asan -O0 %s -Fe%t // RUN: env ASAN_OPTIONS=handle_segv=0 %run %t 2>&1 | FileCheck %s --check-prefix=USER // RUN: env ASAN_OPTIONS=handle_segv=1 not %run %t 2>&1 | FileCheck %s --check-prefix=ASAN // Test the default. // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=ASAN // This test exits zero ...
Add flushes to try to fix test
[asan] Add flushes to try to fix test git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@335089 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
926a753a5400513188fdf3527e201a9d501ab8a0
src/singletons/Emotes.cpp
src/singletons/Emotes.cpp
#include "singletons/Emotes.hpp" #include "Application.hpp" #include "controllers/accounts/AccountController.hpp" namespace chatterino { void Emotes::initialize(Application &app) { app.accounts->twitch.currentUserChanged.connect([this, &app] { auto currentUser = app.accounts->twitch.getCurrent(); ...
#include "singletons/Emotes.hpp" #include "Application.hpp" #include "controllers/accounts/AccountController.hpp" namespace chatterino { void Emotes::initialize(Application &app) { const auto refreshTwitchEmotes = [this, &app] { auto currentUser = app.accounts->twitch.getCurrent(); assert(current...
Load twitch emotes on initialize as well
Load twitch emotes on initialize as well Fix #581
C++
mit
Cranken/chatterino2,Cranken/chatterino2,fourtf/chatterino2,Cranken/chatterino2,hemirt/chatterino2,hemirt/chatterino2,hemirt/chatterino2,hemirt/chatterino2,Cranken/chatterino2,fourtf/chatterino2,fourtf/chatterino2
620e89f008b336012a1f8194ac5bdf923cf156a2
tests/tests.cpp
tests/tests.cpp
#define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE flatten_tests #include <boost/test/unit_test.hpp> #include "flatten/flatten.hpp" BOOST_AUTO_TEST_CASE(flatten_tests) { }
#define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE flatten_tests #include <boost/test/unit_test.hpp> #include <list> #include <vector> #include <map> #include "flatten/flatten.hpp" typedef std::vector<int> IntList; typedef std::vector<IntList> IntListList; typedef std::vector<IntListList> ...
Add test for Example 1.
Add test for Example 1.
C++
mit
Fifty-Nine/cpp-flatten
7e6aea7a9bff0714756aff5c7470c5c55cb31e0c
src/build-data/detect_arch.cpp
src/build-data/detect_arch.cpp
#if defined(__x86_64__) || defined(_M_X64) X86_64 #elif defined(__i386__) || defined(__i386) || defined(_M_IX86) X86_32 #elif defined(__aarch64__) || defined(__ARM_ARCH_ISA_A64) ARM64 #elif defined(__arm__) || defined(_M_ARM) || defined(__ARM_ARCH_7A__) ARM32 #elif defined(__powerpc64__) || defined(__ppc64...
#if defined(__x86_64__) || defined(_M_X64) X86_64 #elif defined(__i386__) || defined(__i386) || defined(_M_IX86) X86_32 #elif defined(__aarch64__) || defined(__ARM_ARCH_ISA_A64) ARM64 #elif defined(__arm__) || defined(_M_ARM) || defined(__ARM_ARCH_7A__) ARM32 #elif defined(__powerpc64__) || defined(__ppc64...
Fix autodetection of sparc64/mips64
Fix autodetection of sparc64/mips64 [ci skip]
C++
bsd-2-clause
randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,webmaster128/botan,randombit/botan,randombit/botan
492f1f61d5b63a0ef43e60b36ef8ff305321d168
test/ImageProcessing/test_deriche_filter.cpp
test/ImageProcessing/test_deriche_filter.cpp
// ========================================================================== // // This file is part of DO++, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2013 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // License v. 2.0. If...
// ========================================================================== // // This file is part of DO++, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2013 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // License v. 2.0. If...
Remove inclusion of unversioned header.
Remove inclusion of unversioned header.
C++
mpl-2.0
DO-CV/sara,DO-CV/sara,DO-CV/sara,DO-CV/sara,DO-CV/sara,DO-CV/sara
5715e6392ea9e1bc7fe885ed5d71eeb05c218d95
tests/libport/test-shared-ptr-intrusive.cc
tests/libport/test-shared-ptr-intrusive.cc
/** ** Test code for libport/shared-ptr.hh features. */ #include <libport/ref-counted.hh> #include <libport/shared-ptr.hh> #define INSTANCES(N) assert(Counted::instances == N) using libport::shared_ptr; struct Counted : libport::RefCounted { Counted () : libport::RefCounted() { ++instances; } virtual ~Counted...
/** ** Test code for libport/shared-ptr.hh features. */ #include <libport/ref-counted.hh> #include <libport/shared-ptr.hh> #define INSTANCES(N) assert(Counted::instances == N) using libport::shared_ptr; struct Counted : libport::RefCounted { Counted () : libport::RefCounted() { ++instances; } virtual ~Counted...
Test shared pointers assignment to self.
Test shared pointers assignment to self. * tests/libport/test-shared-ptr-intrusive.cc: Here.
C++
bsd-3-clause
aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport
3c3240bcb099bff50416db448bd31d7cff243f3c
src/main.cc
src/main.cc
#include <iostream> #include <cstdlib> #include "NTClient.h" using namespace std; void initBot() { NTClient nclient = NTClient(20, 0.89); nclient.login("sascf3", "123asd123"); // Throw-away account nclient.connect(); } int main(int argc, char** argv) { srand(static_cast<unsigned int>(time(0))); initBot(); return...
#include <iostream> #include <cstdlib> #include <fstream> #include "NTClient.h" #include "colors.h" #include "json.hpp" using namespace std; void initBot(string username, string password, int wpm, double acc) { NTClient nclient = NTClient(wpm, acc); nclient.login(username, password); nclient.connect(); } void initl...
Add basic config file support
Add basic config file support
C++
mit
ultratype/UltraTypePP,ultratype/UltraTypePP
f4c9ab990c1444284e9aca853dff9065642c985d
apps/texture_fsquad/main.cpp
apps/texture_fsquad/main.cpp
#include <iostream> int main(int argc, char** argv) { std::cout << "Hello Lamure Virtual Texture!\n"; return 0; }
#include <iostream> // scism shit #include <scm/core.h> #include <scm/log.h> #include <scm/core/pointer_types.h> #include <scm/core/io/tools.h> #include <scm/core/time/accum_timer.h> #include <scm/core/time/high_res_timer.h> #include <scm/gl_core.h> #include <scm/gl_util/data/imaging/texture_loader.h> #...
Implement first basic black window setup without any content
Implement first basic black window setup without any content
C++
bsd-3-clause
0x0AF/lamure,vrsys/lamure,0x0AF/lamure,0x0AF/lamure,vrsys/lamure,0x0AF/lamure,vrsys/lamure,vrsys/lamure
1fb32fcf717366b82bb2a3b6f1a35fbfe1973302
JPetAnalysisTools/JPetAnalysisToolsTest.cpp
JPetAnalysisTools/JPetAnalysisToolsTest.cpp
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE JPetEventTest #include <boost/test/unit_test.hpp> #include "../JPetAnalysisTools/JPetAnalysisTools.h" BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TEST_CASE(constructor_getHitsOrderedByTime) { std::vector<JPetHit> hits(4); hits[0].setTime(2); hits[1].setTi...
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE JPetEventTest #include <boost/test/unit_test.hpp> #include "../JPetAnalysisTools/JPetAnalysisTools.h" BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TEST_CASE(constructor_getHitsOrderedByTime) { std::vector<JPetHit> hits(4); hits[0].setTime(2); hits[1].setTi...
Change tests in JPetAnalysisTools to use double instead of int
Change tests in JPetAnalysisTools to use double instead of int
C++
apache-2.0
kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework
9bf127633495400385a55bf5899aa180e57f53fb
appDySySim/main.cpp
appDySySim/main.cpp
#include "AppInfo.h" #include "Builder.h" #include "LibInfoDySySim.h" #include <fstream> #include <iomanip> #include <iostream> #include <string> namespace dss = dysysim; int main(int argc, char *argv[]) { std::cout << "-- " APPNAME_VERSION " " << std::string(50, '-') << std::endl << "-- uses " + dss...
#include "AppInfo.h" #include "Builder.h" #include "LibInfoDySySim.h" #include <fstream> #include <iomanip> #include <iostream> #include <string> namespace dss = dysysim; int main(int argc, char *argv[]) { std::cout << "-- " APPNAME_VERSION " " << std::string(50, '-') << std::endl << "-- uses " + dss...
Rename dir data to scripts
Rename dir data to scripts
C++
mit
josokw/Fuzzy,josokw/Fuzzy,josokw/Fuzzy
ea5bb777e269170d54c56412f6844bc1920d2a22
stdlib/public/Concurrency/ThreadSanitizer.cpp
stdlib/public/Concurrency/ThreadSanitizer.cpp
//===--- ThreadSanitizer.cpp - Thread Sanitizer support -------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
//===--- ThreadSanitizer.cpp - Thread Sanitizer support -------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
Fix TSan symbol lookup on Windows
Fix TSan symbol lookup on Windows
C++
apache-2.0
roambotics/swift,gregomni/swift,hooman/swift,ahoppen/swift,parkera/swift,tkremenek/swift,parkera/swift,rudkx/swift,ahoppen/swift,rudkx/swift,JGiola/swift,ahoppen/swift,hooman/swift,JGiola/swift,roambotics/swift,xwu/swift,tkremenek/swift,xwu/swift,apple/swift,glessard/swift,benlangmuir/swift,apple/swift,xwu/swift,rudkx/...
fe079256b2d7d5297ee2c08708cf95f09f0a5efd
test/std/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp
test/std/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
Fix vexing parse in test.
Fix vexing parse in test. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@225633 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
42a0e0c4e984f03db93044cc6e4814d93f608ac5
tests/app_suite/ntuser_tests_win.cpp
tests/app_suite/ntuser_tests_win.cpp
/* ********************************************************** * Copyright (c) 2011 Google, Inc. All rights reserved. * **********************************************************/ /* Dr. Memory: the memory debugger * * This library is free software; you can redistribute it and/or * modify it under the term...
/* ********************************************************** * Copyright (c) 2011 Google, Inc. All rights reserved. * **********************************************************/ /* Dr. Memory: the memory debugger * * This library is free software; you can redistribute it and/or * modify it under the term...
Remove the return value check in the SystemParametersInfo test since it is failing on Windows XP for some reason
Remove the return value check in the SystemParametersInfo test since it is failing on Windows XP for some reason git-svn-id: fe3cd4388a6e5a968b09397a3d721fe124e8117a@400 5b54908e-ead4-fc18-b48a-0285e6dbc711
C++
lgpl-2.1
rnk/drmemory,rnk/drmemory,rnk/drmemory,rnk/drmemory
90a1a8881a91c5ede8f6b6a3668f6e7039e393fd
src/autowiring/test/AutoConfig_SliderTest.cpp
src/autowiring/test/AutoConfig_SliderTest.cpp
// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/config_descriptor.h> #include <autowiring/config.h> #include <autowiring/ConfigRegistry.h> #include <autowiring/observable.h> namespace aw = autowiring; class AutoConfig_SliderTest : public testing::Test {}; ...
// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/config_descriptor.h> #include <autowiring/config.h> #include <autowiring/ConfigRegistry.h> #include <autowiring/observable.h> namespace aw = autowiring; class AutoConfig_SliderTest : public testing::Test {}; ...
Extend slider use case test
Extend slider use case test
C++
apache-2.0
codemercenary/autowiring,codemercenary/autowiring,codemercenary/autowiring,codemercenary/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring
821e1132d53e70229ad481ed785e7ae8d860f936
src/il/Main.cpp
src/il/Main.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) //=====================================================...
Improve main declaration to include runtime start
Improve main declaration to include runtime start
C++
mit
wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic
215782466af32161d4d39a1f3abc2bcd25260dfc
unittests/tools/llvm-exegesis/PerfHelperTest.cpp
unittests/tools/llvm-exegesis/PerfHelperTest.cpp
//===-- PerfHelperTest.cpp --------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- PerfHelperTest.cpp --------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix build when libpfm is not available.
[llvm-exegesis] Fix build when libpfm is not available. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@329172 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mi...
371a8dd2e1e18fd35f07ac230c52a471d90d3538
tensorflow/core/kernels/cwise_op_zeta.cc
tensorflow/core/kernels/cwise_op_zeta.cc
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Enable GPU support for Zeta and Polygamma ops.
Enable GPU support for Zeta and Polygamma ops. PiperOrigin-RevId: 211082683
C++
apache-2.0
ppwwyyxx/tensorflow,annarev/tensorflow,tensorflow/tensorflow,ageron/tensorflow,gautam1858/tensorflow,hfp/tensorflow-xsmm,jbedorf/tensorflow,freedomtan/tensorflow,gunan/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,snnn/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,davidzchen/tensorflow,chemelnucfin/ten...
e0040b8c2d12a6681e286f791864daec0e4a894b
1-common-tasks/containers/check-existence-of-key.cpp
1-common-tasks/containers/check-existence-of-key.cpp
// Check existence of a key // C++11 #include <map> #include <string> int main() { std::map<string, int> m = {{"a", 1}, {"b", 2}, {"c", 3}}; if (m.count("b")) { // We know "b" is in m } } // Check if a particular key is in an associative container. // // On [9], we create a [`std::map`](cpp/containe...
// Check existence of a key // C++11 #include <map> #include <string> int main() { std::map<std::string, int> m = {{"a", 1}, {"b", 2}, {"c", 3}}; if (m.count("b")) { // We know "b" is in m } } // Check if a particular key is in an associative container. // // On [9], we create a [`std::map`](cpp/container/m...
Make corrections to key existence sample
Make corrections to key existence sample
C++
cc0-1.0
brunotag/CppSamples-Samples,vjacquet/CppSamples-Samples,thatbrod/CppSamples-Samples,rollbear/CppSamples-Samples,tmwoz/CppSamples-Samples,sftrabbit/CppSamples-Samples
3e5b60bba3ea32fcd274d653e001beabe7e27678
main.cpp
main.cpp
#include <QApplication> #include <QQmlApplicationEngine> #include <QDir> #include <QFile> #include <QFileInfo> int main(int argc, char *argv[]) { QApplication app(argc, argv); QQmlApplicationEngine engine; if (argc < 2) { printf("Usage: OwaViewer [directory]\n"); return 1; } QDir dirPath(argv[1]); QString...
#include <QApplication> #include <QQmlApplicationEngine> #include <QDir> #include <QFile> #include <QFileInfo> int main(int argc, char *argv[]) { QApplication app(argc, argv); QQmlApplicationEngine engine; if (argc < 2) { printf("Usage: OwaViewer [directory]\n"); printf(" or: OwaViewer [File]\n"); return ...
Support to specify single QML file by argument
Support to specify single QML file by argument
C++
mit
HanGee/OwaViewer,HanGee/OwaViewer
e1239e5423f2c9310cc0e1e42ab047db71c72b46
cameras/src/pinhole_camera.cpp
cameras/src/pinhole_camera.cpp
#include "cameras/itf/pinhole_camera.h" #include "core/itf/film.h" #include "core/itf/ray.h" #include "core/itf/sampling.h" #include <iostream> using namespace lb; /// Constructs a pinhole camera, where the image plane's origin is pointed to /// the by the look at vector relative from the camera's location. Togethe...
#include "cameras/itf/pinhole_camera.h" #include "core/itf/film.h" #include "core/itf/ray.h" #include "core/itf/sampling.h" using namespace lb; /// Constructs a pinhole camera, where the image plane's origin is pointed to /// the by the look at vector relative from the camera's location. Together with /// the look a...
Remove comment and redundant include
Remove comment and redundant include
C++
mit
ton/lightbox
bc34139888606ce956ba6b0b7a0a73a7c5da6b03
test/SemaCXX/no-exceptions.cpp
test/SemaCXX/no-exceptions.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s // Various tests for -fno-exceptions typedef __typeof(sizeof(int)) size_t; namespace test0 { // rdar://problem/7878149 class Foo { public: void* operator new(size_t x); private: void operator delete(void *x); }; void test() { // Under -fexceptions,...
// RUN: %clang_cc1 -fsyntax-only -verify %s // Various tests for -fno-exceptions typedef __SIZE_TYPE__ size_t; namespace test0 { // rdar://problem/7878149 class Foo { public: void* operator new(size_t x); private: void operator delete(void *x); }; void test() { // Under -fexceptions, this do...
Use __SIZE_TYPE__ as suggested by dgregor.
Use __SIZE_TYPE__ as suggested by dgregor. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@101857 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
5b362013706f78b84bf205c6cf04e31065f7b732
src/main.cpp
src/main.cpp
/* Copyright (c), Helios All rights reserved. Distributed under a permissive license. See COPYING.txt for details. */ #include "ImageViewerApplication.h" int main(int argc, char **argv){ try{ initialize_supported_extensions(); ImageViewerApplication app(argc, argv, "BorderlessViewer" + get_per_user_...
/* Copyright (c), Helios All rights reserved. Distributed under a permissive license. See COPYING.txt for details. */ #include "ImageViewerApplication.h" #include <QImageReader> int main(int argc, char **argv){ try{ //Set the limit to 1 GiB. QImageReader::setAllocationLimit(1024); initialize_sup...
Increase the QImageReader allocation limit.
Increase the QImageReader allocation limit.
C++
bsd-2-clause
Helios-vmg/Borderless,Helios-vmg/Borderless,Helios-vmg/Borderless,Helios-vmg/Borderless
46e3f66f91e0ea1671566ceef39e7706428cc086
extensions/source/activex/main/SOComWindowPeer.cpp
extensions/source/activex/main/SOComWindowPeer.cpp
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ // SOComWindowPeer.cpp : Implementation of CHelpApp and DLL registration. #include "stdafx2.h" #include "so_activex.h" #include "SOComWindowPeer.h" ///////////////////////////////////////////////////////////////////////////// // STDMETHO...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ // SOComWindowPeer.cpp : Implementation of CHelpApp and DLL registration. #include "stdafx2.h" #include "so_activex.h" #include "SOComWindowPeer.h" ///////////////////////////////////////////////////////////////////////////// // STDMETHO...
Revert SAL_N_ELEMENTS change for one file
Revert SAL_N_ELEMENTS change for one file This source file does not seem to include any of the usual LibreOffice headers, so we should not use SAL_N_ELEMENTS in it.
C++
mpl-2.0
JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core
866a4eb1b99268f35b1d2c43b445a86266d20cff
chrome/browser/extensions/extension_input_method_api.cc
chrome/browser/extensions/extension_input_method_api.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_input_method_api.h" #include "base/values.h" #include "chrome/browser/chromeos/input_method/input_metho...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_input_method_api.h" #include "base/values.h" #include "chrome/browser/chromeos/input_method/input_metho...
Fix a build error when OS_CHROMEOS is not defined.
Fix a build error when OS_CHROMEOS is not defined. BUG=None TEST=Manually Review URL: http://codereview.chromium.org/9430055 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@123311 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ropik/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/...
c390c7bbe7fb3b6e1b6da90eb297a83206d357e4
Magick++/fuzz/encoder_fuzzer.cc
Magick++/fuzz/encoder_fuzzer.cc
#include <cstdint> #include <Magick++/Blob.h> #include <Magick++/Image.h> #define FUZZ_ENCODER_STRING_LITERAL(name) #name #define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL(FUZZ_IMAGEMAGICK_ENCODER) extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { const Magick::Blob blob(Data, Size); Magic...
#include <cstdint> #include <Magick++/Blob.h> #include <Magick++/Image.h> #define FUZZ_ENCODER_STRING_LITERAL(name) #name #define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL(FUZZ_IMAGEMAGICK_ENCODER) extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { const Magick::Blob blob(Data, Size); Magic...
Use new overload when reading the image.
Use new overload when reading the image.
C++
apache-2.0
Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick
d2258db0718d4f937874954664d11ba6152d7a3e
cli/tracerouteparseip.cpp
cli/tracerouteparseip.cpp
#include <iostream> #include <string> #include <maproute/ip.hpp> #include <maproute/ip_convertor.hpp> #include <maproute/stringhelp.hpp> #include <maproute/tr_parser.hpp> #include <maproute/ip_location_finder.hpp> int main() { IPLocationFinder finder{}; while (std::cin.good()) { std::string line; ...
#include <iostream> #include <string> #include <maproute/ip.hpp> #include <maproute/ip_convertor.hpp> #include <maproute/stringhelp.hpp> #include <maproute/tr_parser.hpp> #include <maproute/ip_location_finder.hpp> int main() { while (std::cin.good()) { std::string line; std::string ip_string; ...
Remove unused finder on traceroute parse command
Remove unused finder on traceroute parse command
C++
mit
wilbertom/maproute,wilbertom/maproute
83b1f9e916f4d38b0b9fc1eea88c73ee49aa8476
framework/material.cpp
framework/material.cpp
#include "material.hpp" Material::Material(): name{}, ka{0,0,0}, kd{0,0,0}, ks{0,0,0}, m{0} {} Material::Material(std::string const& name, Color const& ka, Color const& kd, Color const& ks, float m): name{name}, ka{ka}, kd{kd}, ...
#include "material.hpp" Material::Material(): name{}, ka{0,0,0}, kd{0,0,0}, ks{0,0,0}, m{0} {} Material::Material(std::string const& name, Color const& ka, Color const& kd, Color const& ks, float m): name{name}, ka{ka}, kd{kd}, ...
Change print to match actual content of ka, kd, ks.
Change print to match actual content of ka, kd, ks.
C++
mit
elmeyer/programmiersprachen-raytracer,elmeyer/programmiersprachen-raytracer
9b6feee1a55e6553074e282b496c32877f81c0cd
modules/core/perf/perf_dft.cpp
modules/core/perf/perf_dft.cpp
#include "perf_precomp.hpp" using namespace std; using namespace cv; using namespace perf; using std::tr1::make_tuple; using std::tr1::get; #define MAT_TYPES_DFT CV_32FC1, CV_64FC1 #define MAT_SIZES_DFT sz1080p, sz2K #define TEST_MATS_DFT testing::Combine(testing::Values(MAT_SIZES_DFT), testing::Values(MAT_TYPES_D...
#include "perf_precomp.hpp" using namespace std; using namespace cv; using namespace perf; using std::tr1::make_tuple; using std::tr1::get; #define MAT_TYPES_DFT CV_32FC1, CV_64FC1 #define MAT_SIZES_DFT sz1080p, sz2K #define TEST_MATS_DFT testing::Combine(testing::Values(MAT_SIZES_DFT), testing::Values(MAT_TYPES_D...
Change sanity check for perfomance test of dft
Change sanity check for perfomance test of dft
C++
apache-2.0
opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,apavlenko/opencv,apavlenko/opencv,apavlenko/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv
566cafdfaf439bb31a49a08f88e37239ebf8120c
src/PyConv/test/MainAppTest.cpp
src/PyConv/test/MainAppTest.cpp
#include "test/catch.hpp" #include <string> #include <vector> #include "main/exception/FileOpenException.hpp" #include "main/exception/InvalidArgumentException.hpp" #include "main/MainApp.hpp" TEST_CASE("MainApp class") { using std::string; using std::vector; using pyconv::exception::FileOpenException; ...
#include "test/catch.hpp" #include <string> #include <vector> #include "main/exception/FileOpenException.hpp" #include "main/exception/InvalidArgumentException.hpp" #include "main/MainApp.hpp" TEST_CASE("MainApp class") { using std::string; using std::vector; using pyconv::exception::FileOpenException; ...
Add test to cover unable to open file
Add test to cover unable to open file
C++
mit
mattheuslee/PyConv,mattheuslee/PyConv
59f38dddcd606a71b0dae70900dcac4415fc0988
src/search/util/timeout.cc
src/search/util/timeout.cc
/* -*- mode:linux -*- */ /** * \file timeout.cc * * * * \author Ethan Burns * \date 2008-12-16 */ #include <iostream> #include <signal.h> #include <stdlib.h> #include <unistd.h> using namespace std; void alarm_action(int sig) { cout << "No Solution" << endl << "cost: infinity" << endl << "length...
/* -*- mode:linux -*- */ /** * \file timeout.cc * * * * \author Ethan Burns * \date 2008-12-16 */ #include <iostream> #include <signal.h> #include <stdlib.h> #include <unistd.h> using namespace std; void alarm_action(int sig) { cout << "No Solution" << endl << "cost: infinity" << endl << "length...
Fix sigaction to be more portable.
Fix sigaction to be more portable.
C++
mit
eaburns/pbnf,eaburns/pbnf,eaburns/pbnf,eaburns/pbnf
ff4d3fe0302b27dce5a763d40e5bb1f059ddd8ce
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
MatChung/color-emoji.skia,hbwhlklive/color-emoji.skia,MatChung/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,Hankuo/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,Hankuo/color-emoji.skia,Frankie-666...
5e4f51b51d6c8fa4c8e3b1ec99073eda7c5dbfdc
common/performance_model/simple_performance_model.cc
common/performance_model/simple_performance_model.cc
#include "performance_model.h" #include "log.h" using std::endl; SimplePerformanceModel::SimplePerformanceModel() : m_instruction_count(0) , m_cycle_count(0) { } SimplePerformanceModel::~SimplePerformanceModel() { } void SimplePerformanceModel::outputSummary(std::ostream &os) { os << " Instructions: " <...
#include "performance_model.h" #include "log.h" using std::endl; SimplePerformanceModel::SimplePerformanceModel() : m_instruction_count(0) , m_cycle_count(0) { } SimplePerformanceModel::~SimplePerformanceModel() { } void SimplePerformanceModel::outputSummary(std::ostream &os) { os << " Instructions: " <...
Add simple memory model to consume latency of memory operations. Still needs them to be pushed.
[perf] Add simple memory model to consume latency of memory operations. Still needs them to be pushed.
C++
mit
mit-carbon/Graphite,nkawahara/Graphite,nkawahara/Graphite,mit-carbon/Graphite,8l/Graphite,victorisildur/Graphite,mit-carbon/Graphite-Cycle-Level,8l/Graphite,mit-carbon/Graphite-Cycle-Level,fhijaz/Graphite,fhijaz/Graphite,fhijaz/Graphite,victorisildur/Graphite,victorisildur/Graphite,victorisildur/Graphite,8l/Graphite,mi...
e37664563e7ab646efb0f99665a7121d1bb7dd4a
src/main/MessageListener.cpp
src/main/MessageListener.cpp
/* Copyright 2007 Albert Strasheim <fullung@gmail.com> 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 ...
/* Copyright 2007 Albert Strasheim <fullung@gmail.com> 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 ...
Fix compilation with GCC 4.1.1.
Fix compilation with GCC 4.1.1.
C++
apache-2.0
tabish121/pyActiveMQ,tabish121/pyActiveMQ,tabish121/pyActiveMQ
76ffc045ad959998c3cf85230da06def6279cd26
src/lights/occlusion_tester.cpp
src/lights/occlusion_tester.cpp
#include "scene.h" #include "geometry/differential_geometry.h" #include "lights/occlusion_tester.h" void OcclusionTester::set_points(const Point &a, const Point &b){ float dist = a.distance(b); ray = Ray{a, (b - a) / dist, 1e-6f, dist * (1.f - 1e-6f)}; } void OcclusionTester::set_ray(const Point &p, const Vector &d)...
#include "scene.h" #include "geometry/differential_geometry.h" #include "lights/occlusion_tester.h" void OcclusionTester::set_points(const Point &a, const Point &b){ ray = Ray{a, b - a, 1e-4f, 1}; } void OcclusionTester::set_ray(const Point &p, const Vector &d){ ray = Ray{p, d.normalized(), 1e-4f}; } bool OcclusionT...
Fix occlusion tester segment ray creation to behave like before
Fix occlusion tester segment ray creation to behave like before
C++
mit
Twinklebear/tray,Twinklebear/tray
84d35f8850f7bc092bfe7c2548002378bdd1aa09
main.cc
main.cc
/* * Copyright 2014 Cloudius Systems */ #include "database.hh" #include "core/app-template.hh" #include "core/smp.hh" #include "thrift/server.hh" namespace bpo = boost::program_options; int main(int ac, char** av) { app_template app; app.add_options() ("thrift-port", bpo::value<uint16_t>()->defaul...
/* * Copyright 2014 Cloudius Systems */ #include "database.hh" #include "core/app-template.hh" #include "core/smp.hh" #include "thrift/server.hh" namespace bpo = boost::program_options; int main(int ac, char** av) { app_template app; app.add_options() ("thrift-port", bpo::value<uint16_t>()->defaul...
Fix use-after-free on database object
Fix use-after-free on database object Caused urchin to SIGSEGV.
C++
agpl-3.0
asias/scylla,scylladb/scylla,rentongzhang/scylla,linearregression/scylla,victorbriz/scylla,glommer/scylla,wildinto/scylla,dwdm/scylla,justintung/scylla,kangkot/scylla,duarten/scylla,tempbottle/scylla,asias/scylla,rluta/scylla,kjniemi/scylla,raphaelsc/scylla,kangkot/scylla,rluta/scylla,respu/scylla,scylladb/scylla,wildi...
2b902d3e908c8cbbe7707627040848f5368b8f80
test/Modules/mismatch-diagnostics.cpp
test/Modules/mismatch-diagnostics.cpp
// RUN: rm -rf %t // RUN: mkdir -p %t/prebuilt_modules // // RUN: %clang_cc1 -triple %itanium_abi_triple \ // RUN: -fmodules-ts -fprebuilt-module-path=%t/prebuilt-modules \ // RUN: -emit-module-interface -pthread -DBUILD_MODULE \ // RUN: %s -o %t/prebuilt_modules/mi...
// RUN: rm -rf %t // RUN: mkdir -p %t/prebuilt_modules // // RUN: %clang_cc1 -triple %itanium_abi_triple \ // RUN: -fmodules-ts -fprebuilt-module-path=%t/prebuilt-modules \ // RUN: -emit-module-interface -pthread -DBUILD_MODULE \ // RUN: %s -o %t/prebuilt_modules/mi...
Fix test from r346439 to also work on Windows due to path separator differences.
Fix test from r346439 to also work on Windows due to path separator differences. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@346468 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
5c8f490f7cc3540d22667b2f3d2d7a47e29571f0
test/Driver/warning-options.cpp
test/Driver/warning-options.cpp
// RUN: %clang -### -Wlarge-by-value-copy %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_DEFAULT %s // LARGE_VALUE_COPY_DEFAULT: -Wlarge-by-value-copy=64 // RUN: %clang -### -Wlarge-by-value-copy=128 %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_JOINED %s // LARGE_VALUE_COPY_JOINED: -Wlarge-by-value-copy=128 ...
// RUN: %clang -### -Wlarge-by-value-copy %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_DEFAULT %s // LARGE_VALUE_COPY_DEFAULT: -Wlarge-by-value-copy=64 // RUN: %clang -### -Wlarge-by-value-copy=128 %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_JOINED %s // LARGE_VALUE_COPY_JOINED: -Wlarge-by-value-copy=128 ...
Fix a regex error breaking tests.
Fix a regex error breaking tests. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@282004 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
cd1e2d3bff92a2d91343541e2cf83287dce87c6f
src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp
src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp
/* * Darwin SecRandomCopyBytes EntropySource * (C) 2015 Daniel Seither (Kullo GmbH) * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/internal/darwin_secrandom.h> #include <Security/Security.h> namespace Botan { /** * Gather entropy from SecRandomCopyBytes */ void Darwin_Sec...
/* * Darwin SecRandomCopyBytes EntropySource * (C) 2015 Daniel Seither (Kullo GmbH) * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/internal/darwin_secrandom.h> #include <Security/Security.h> #include <Security/SecRandom.h> namespace Botan { /** * Gather entropy from SecRa...
Fix SecRandomCopyBytes call with older OS X SDKs
Fix SecRandomCopyBytes call with older OS X SDKs In 10.8 (and presumably older) versions, the header for SecRandomCopyBytes is SecRandom.h, and Security.h does not include SecRandom.h With this change, the include of Security.h may be redundant for all versions, but I have no way to test this. GH #528
C++
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,randombit/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/b...
6dad0d36a43cf98100c07730df55883e103f876d
ex/clock.tas.cpp
ex/clock.tas.cpp
#include "common.th" _start: bare_metal_init() prologue top: d <- [rel(min0)] e <- [rel(min1)] f <- [rel(sec0)] g <- [rel(sec1)] h <- d << 4 + e h <- h << 4 + f h <- h << 4 + g h -> [0x100] c <- 1 call(sleep) g <- g + 1 h <- g == 10 g <- g &~ h f <- f...
#include "common.th" _start: bare_metal_init() prologue top: d <- [rel(min0)] e <- [rel(min1)] f <- [rel(sec0)] g <- [rel(sec1)] h <- d << 4 + e h <- h << 4 + f h <- h << 4 + g h -> [0x100] c <- 1 call(sleep) g <- g + 1 h <- g == 10 g <- g &~ h f <- f...
Update clock delay for new 8-cycle instruction
Update clock delay for new 8-cycle instruction Change delay loop to four cycles per tick. Currently we use a 40MHz clock, so this is 12500000 ticks per second, which is a nice round number.
C++
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
fcdd0b808419bb32cd5b35d3467b0907bc81efd4
SpriteSheetPacker/main.cpp
SpriteSheetPacker/main.cpp
#include "MainWindow.h" #include "SpritePackerProjectFile.h" #include <QApplication> int commandLine(QCoreApplication& app); int main(int argc, char *argv[]) { QApplication app(argc, argv); #ifdef Q_OS_WIN32 QApplication::setStyle(QStyleFactory::create("Fusion")); #endif QCoreApplication::setOrganiza...
#include "MainWindow.h" #include "SpritePackerProjectFile.h" #include <QApplication> int commandLine(QCoreApplication& app); int main(int argc, char *argv[]) { QApplication app(argc, argv); QCoreApplication::setOrganizationName("amakaseev"); QCoreApplication::setOrganizationDomain("spicyminds-lab.com"); ...
Use windows native look and feel
Use windows native look and feel
C++
mit
amakaseev/sprite-sheet-packer,TheCodez/sprite-sheet-packer,amakaseev/sprite-sheet-packer,TheCodez/sprite-sheet-packer,TheCodez/sprite-sheet-packer,amakaseev/sprite-sheet-packer,amakaseev/sprite-sheet-packer,TheCodez/sprite-sheet-packer
18ce06e38dfce151bb28ef9d3084260e572ea210
quic/common/test/BufAccessorTest.cpp
quic/common/test/BufAccessorTest.cpp
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ #include <quic/common/BufAccessor.h> #include <folly/portability/GTest.h> namespace quic { TEST(SimpleBufAccessor, BasicAccess)...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ #include <quic/common/BufAccessor.h> #include <folly/portability/GTest.h> namespace quic { TEST(SimpleBufAccessor, BasicAccess)...
Fix capacity check in BufAccessor test
Fix capacity check in BufAccessor test Summary: IOBuf creates a buffer that has the capacity GE the input capacity. (Note: this ignores all push blocking failures!) Reviewed By: mjoras Differential Revision: D21302978 fbshipit-source-id: 1c815389f514fe902a7d64520357051bb9f592e1
C++
mit
facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst
edf27e61302d7a70e29d032740bd5a5fbed01ceb
server/shared/main.cpp
server/shared/main.cpp
#include <QtGui> #include <sequanto/automation.h> #include <sequanto/tree.h> #include <sequanto/QtWrapper.h> #include "../cxx/src/cxx_root.h" #include <windows.h> using namespace sequanto::automation; int main ( int argc, char * argv[] ) { SQServer server; sq_init (); sq_server_init ...
#include <QtGui> #include <sequanto/automation.h> #include <sequanto/tree.h> #include <sequanto/QtWrapper.h> #include "../cxx/src/cxx_root.h" #include "config.h" using namespace sequanto::automation; int main ( int argc, char * argv[] ) { SQServer server; sq_init (); sq_server_init ( &...
Include config.h instead of windows.h in shared library test project.
Include config.h instead of windows.h in shared library test project.
C++
apache-2.0
micronpn/sequanto-automation,seqzap/sequanto-automation,micronpn/sequanto-automation,seqzap/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,seqzap/sequanto-automation,seqzap/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,micronpn/sequanto-automation,seqzap/sequanto-automation,micronpn/seq...
8358d2f41684f6eee8aae16f6af2879dbaeab2ed
chrome/browser/extensions/extension_popup_apitest.cc
chrome/browser/extensions/extension_popup_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" IN_PROC_BROWSER_T...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" // Flaky, http://c...
Mark ExtensionApiTest.Popup as FLAKY, it is still flaky.
Mark ExtensionApiTest.Popup as FLAKY, it is still flaky. TBR=twiz BUG=46601 TEST=browser_tests Review URL: http://codereview.chromium.org/3356001 git-svn-id: http://src.chromium.org/svn/trunk/src@58208 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 560f4161b64346fee74116d2676e11f782df53ee
C++
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
ff07be0fee7ced824f7bef894313ede36b7ff1e3
core/slist_records/alloc.cc
core/slist_records/alloc.cc
#include "insect/records.h" static void __record(Record *); #include <assert.h> #include <stdlib.h> #include <string.h> static void __path_copy(RecordPath path, RecordPath *ref) { int len = strnlen(path, RECORD_PATH_MAX); assert(ref); *ref = malloc(len + 1); assert(*ref); (void) strncpy(*ref, path, len + 1); }...
#include "insect/records.h" static void __record(Record *); static void __path_copy(Path, Path *); /* FIMXE(teh): ^ inline? */ #include <assert.h> #include <stdlib.h> Record * record_new(Path path) { Record *record; assert(path); record = malloc(sizeof(Record)); assert(record); record->hits = 1; record->path...
Rewrite c-string copy helper function cleanly
Rewrite c-string copy helper function cleanly
C++
bsd-2-clause
hagemt/insect,hagemt/insect
8d8771a718f9648a55ec48798592e80de9f960e7
src/mode.cc
src/mode.cc
#include <functional> #include <boost/optional.hpp> #include "key_aliases.hh" #include "file_contents.hh" #include "contents.hh" #include "mode.hh" #include "show_message.hh" std::map < char, std::function < void (contents&, boost::optional<int>) > > global_normal_map, global_insert_map; mode::mode(const std...
#include <functional> #include <boost/optional.hpp> #include "key_aliases.hh" #include "file_contents.hh" #include "contents.hh" #include "mode.hh" #include "show_message.hh" std::map < char, std::function < void (contents&, boost::optional<int>) > > global_normal_map, global_insert_map; mode::mode(const std...
Use a little type deduction
Use a little type deduction
C++
mpl-2.0
czipperz/vick,czipperz/vick
b619aeda6b52e8aafd7eb876a145c2b20002cabf
src/hipoc/hipoc_kernel.cpp
src/hipoc/hipoc_kernel.cpp
#include <mlopen/hipoc_kernel.hpp> #include <mlopen/errors.hpp> namespace mlopen { void HIPOCKernelInvoke::run(void* args, std::size_t size) const { hipEvent_t start = nullptr; hipEvent_t stop = nullptr; void *config[] = { HIP_LAUNCH_PARAM_BUFFER_POINTER, args, HIP_LAUNCH_PARAM_BUFFER_SIZ...
#include <mlopen/hipoc_kernel.hpp> #include <mlopen/errors.hpp> namespace mlopen { void HIPOCKernelInvoke::run(void* args, std::size_t size) const { hipEvent_t start = nullptr; hipEvent_t stop = nullptr; void *config[] = { HIP_LAUNCH_PARAM_BUFFER_POINTER, args, HIP_LAUNCH_PARAM_BUFFER_SIZ...
Add statement to show kernel
Add statement to show kernel
C++
mit
ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen
b1b2f1ffef9f1d5b77a3a810d9040a6e467999c4
src/render/TextManager.cpp
src/render/TextManager.cpp
// // Created by dar on 2/11/16. // #include <gui/GuiText.h> #include "TextManager.h" TextManager::TextManager() : GuiElementRender() { this->charRender = new CharRender(); } TextManager::~TextManager() { delete this->charRender; } void TextManager::render(const GuiElement *const element, glm::mat4 projecti...
// // Created by dar on 2/11/16. // #include <gui/GuiText.h> #include "TextManager.h" TextManager::TextManager() : GuiElementRender() { this->charRender = new CharRender(); } TextManager::~TextManager() { delete this->charRender; } void TextManager::render(const GuiElement *const element, glm::mat4 projecti...
Include "scale" parameter in calculations
Include "scale" parameter in calculations
C++
mit
darsto/spooky,darsto/spooky
66e357f8e57d1169259514c16fb535ec24cfcb57
src/serialutil_chipkit.cpp
src/serialutil_chipkit.cpp
#ifdef CHIPKIT #include "serialutil.h" #include "buffers.h" #include "log.h" void readFromSerial(SerialDevice* serial, bool (*callback)(uint8_t*)) { int bytesAvailable = serial->device->available(); if(bytesAvailable > 0) { for(int i = 0; i < bytesAvailable && !queue_full(&serial->receiveQueue); ...
#ifdef CHIPKIT #include "serialutil.h" #include "buffers.h" #include "log.h" void readFromSerial(SerialDevice* serial, bool (*callback)(uint8_t*)) { int bytesAvailable = serial->device->available(); if(bytesAvailable > 0) { for(int i = 0; i < bytesAvailable && !queue_full(&serial->receiveQueue); ...
Send more bytes per batch over serial.
Send more bytes per batch over serial.
C++
bsd-3-clause
openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware
487ab4cfa8b65c414b05c3cd9d29fef1ea185e8a
test/SemaCXX/coroutine-traits-undefined-template.cpp
test/SemaCXX/coroutine-traits-undefined-template.cpp
// test/SemaCXX/coroutine-traits-undefined-template.cpp // This file contains references to sections of the Coroutines TS, which can be // found at http://wg21.link/coroutines. // RUN: %clang_cc1 -std=c++14 -fcoroutines-ts -verify %s -fcxx-exceptions -fexceptions -Wunused-result namespace std { namespace experimenta...
// This file contains references to sections of the Coroutines TS, which can be // found at http://wg21.link/coroutines. // RUN: %clang_cc1 -std=c++14 -fcoroutines-ts -verify %s -fcxx-exceptions -fexceptions -Wunused-result namespace std { namespace experimental { template<typename ...T> struct coroutine_traits { ...
Remove comment from coroutines test, NFC
[SemaCXX] Remove comment from coroutines test, NFC Summary: The file name was accidentally included when the test file was added. Test Plan: check-clang git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@336750 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
95edba5453896ff66028bb06d1c3a5778f057645
tests/auto/blackbox/testdata/configure/main.cpp
tests/auto/blackbox/testdata/configure/main.cpp
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qbs. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use th...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qbs. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use th...
Add 'std' prefix for printf() in blackbox::configure test
tests: Add 'std' prefix for printf() in blackbox::configure test We need to use the 'std' namespace prefix for all functions from the <cstdio> header. Otherwise the compilation may fails on some toolchains (e.g. on Open Watcom). Change-Id: I7824d96a9d0432c65e73f957653c865fd3754641 Reviewed-by: Ivan Komissarov <96f14e...
C++
lgpl-2.1
qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs
249cd865735feed43a0b10b1483e8e5fd7b0fa77
src/ch02/linklist_test2.cpp
src/ch02/linklist_test2.cpp
/////////////////////////////////////// /// file: linklist_test.cpp /////////////////////////////////////// #include <iostream> #include "linklist.h" using namespace std; /// /// 打印链表 /// template<typename T> void PrintList(LinkList<T> L) { cout << "("; auto p = L->next; while(p) { cout << " " << ...
/////////////////////////////////////// /// file: linklist_test2.cpp /////////////////////////////////////// #include <iostream> #include "linklist.h" using namespace std; /// /// 打印链表 /// template<typename T> void PrintList(LinkList<T> L) { cout << "("; auto p = L->next; while(p) { cout << " " <<...
Update LinkList test2 (locate and traverse)
Update LinkList test2 (locate and traverse)
C++
mit
zhuangbo/ds-cpp,zhuangbo/ds-cpp,zhuangbo/ds-cpp,zhuangbo/ds-cpp
85c41bd5cf34c491303689d3f5df2b4689e10223
gui/src/viewer/details-window.cpp
gui/src/viewer/details-window.cpp
#include "viewer/details-window.h" #include <QLabel> #include <ui_details-window.h> #include "helpers.h" #include "models/image.h" DetailsWindow::DetailsWindow(Profile *profile, QWidget *parent) : QDialog(parent), ui(new Ui::DetailsWindow), m_profile(profile) { ui->setupUi(this); } DetailsWindow::~DetailsWindow() ...
#include "viewer/details-window.h" #include <QLabel> #include <ui_details-window.h> #include "helpers.h" #include "models/image.h" DetailsWindow::DetailsWindow(Profile *profile, QWidget *parent) : QDialog(parent), ui(new Ui::DetailsWindow), m_profile(profile) { ui->setupUi(this); } DetailsWindow::~DetailsWindow() ...
Fix layout issue in details window
Fix layout issue in details window
C++
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
97f4c0734539c4e3269a8c058e6f8a25b49cf6a5
src/my_functions.cpp
src/my_functions.cpp
#include <vector> #include <string> std::string createString(){ std::string hi("Hello world!"); return hi; } std::vector<std::string> createVector(){ std::vector<std::string> my_vector; my_vector.push_back(createString()); my_vector.push_back(createString()); my_vector.push_back(createString()); return my_vect...
#include <vector> #include <string> std::string createString(){ std::string hi("Hello world!"); return hi; } std::vector<std::string> createVector(){ std::vector<std::string> my_vector; my_vector.push_back(createString()); my_vector.push_back(createString()); my_vector.push_back(createString()); return my_vect...
Add code for function test.
Add code for function test.
C++
mit
irawoodring/CIS263-Intro_to_cpp
f52627a9c54a162c3039bc14df11993c082fd41d
interpreter/cling/lib/UserInterface/RequiredSymbols.cpp
interpreter/cling/lib/UserInterface/RequiredSymbols.cpp
// request symbols #include "cling/Interpreter/Interpreter.h" #include "cling/Interpreter/CValuePrinter.h" #include "cling/Interpreter/DynamicExprInfo.h" #include "cling/Interpreter/InterpreterCallbacks.h" #include "cling/Interpreter/LookupHelper.h" #include "cling/Interpreter/ValuePrinter.h" #include "cling/Interprete...
// request symbols #include "cling/Interpreter/Interpreter.h" #include "cling/Interpreter/CValuePrinter.h" #include "cling/Interpreter/DynamicExprInfo.h" #include "cling/Interpreter/InterpreterCallbacks.h" #include "cling/Interpreter/LookupHelper.h" #include "cling/Interpreter/ValuePrinter.h" #include "cling/Interprete...
Put the symbol requester func into the proper namespace!
Put the symbol requester func into the proper namespace! git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@46987 27541ba8-7e3a-0410-8455-c3a389f83636
C++
lgpl-2.1
zzxuanyuan/root,0x0all/ROOT,CristinaCristescu/root,georgtroska/root,satyarth934/root,olifre/root,mhuwiler/rootauto,karies/root,esakellari/my_root_for_test,sawenzel/root,esakellari/my_root_for_test,vukasinmilosevic/root,sbinet/cxx-root,mhuwiler/rootauto,thomaskeck/root,omazapa/root-old,veprbl/root,pspe/root,smarinac/roo...
740438e6b7ce2d3c76d316bfa06a661d288fd6dc
src/canread_lpc1768.cpp
src/canread_lpc1768.cpp
#ifdef __LPC17XX__ #include "canread.h" CanMessage receiveCanMessage(CanBus* bus) { CAN_MSG_Type message; CAN_ReceiveMsg(bus->controller, &message); CanMessage result = {message.id, 0}; result.data = message.dataA[0]; result.data |= (message.dataA[1] << 8); result.data |= (message.dataA[2] <<...
#ifdef __LPC17XX__ #include "canread.h" #include "signals.h" extern "C" { void CAN_IRQHandler() { if((CAN_IntGetStatus(LPC_CAN1) & 0x01) == 1) { getCanBuses()[0].messageReceived = true; } else if((CAN_IntGetStatus(LPC_CAN2) & 0x01) == 1) { getCanBuses()[1].messageReceived = true; } } } ...
Handle CAN interrupts on LPC.
Handle CAN interrupts on LPC.
C++
bsd-3-clause
mgiannikouris/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,openxc/vi-firmware
7f9b5bcc09feac5bf3e473c73c5723b3b626d1f9
src/main.cpp
src/main.cpp
#include <iostream> #include <array> #include <asio/steady_timer.hpp> #include <asio.hpp> #include <thread> #include "node/raft_node.h" using namespace std; std::vector<raft_node_endpoint_t> peers{ {1ul, "localhost", 12345, 13001}, {2ul, "localhost", 12346, 13002}, {3ul, "localhost", 12347, 13...
#include <iostream> #include <array> #include <asio/steady_timer.hpp> #include <asio.hpp> #include <thread> #include "node/raft_node.h" using namespace std; std::vector<raft_node_endpoint_t> peers{ {1ul, "localhost", 12345, 13001}, {2ul, "localhost", 12346, 13002}, {3ul, "localhost", 12347, 13...
Remove usage of broken move constructor
Remove usage of broken move constructor
C++
mit
MrCrumpets/craft
81bb6dfe96c2592a805517bebb2d8df4b7631625
planning/jet/filter_sim.cc
planning/jet/filter_sim.cc
#include "planning/jet/filter_sim.hh" #include "eigen_helpers.hh" namespace planning { namespace jet { estimation::jet_filter::State kf_state_from_xlqr_state(const State& x, const Controls& u, const Paramete...
#include "planning/jet/filter_sim.hh" #include "eigen_helpers.hh" namespace planning { namespace jet { estimation::jet_filter::State kf_state_from_xlqr_state(const State& x, const Controls& u, const Paramete...
Make planning respect world frame velocity
Make planning respect world frame velocity
C++
mit
jpanikulam/experiments,jpanikulam/experiments,jpanikulam/experiments,jpanikulam/experiments
00486e2ec2bc5da6c9a34e64fed84d67f887a76b
wpilibc/wpilibC++/src/RobotState.cpp
wpilibc/wpilibC++/src/RobotState.cpp
#include "RobotState.h" RobotStateInterface* RobotState::impl = 0; void RobotState::SetImplementation(RobotStateInterface* i) { impl = i; } bool RobotState::IsDisabled() { if (impl != 0) { return impl->IsDisabled(); } return true; } bool RobotState::IsEnabled() { if (impl != 0) { ...
#include "RobotState.h" RobotStateInterface* RobotState::impl = 0; void RobotState::SetImplementation(RobotStateInterface* i) { impl = i; } bool RobotState::IsDisabled() { if (impl != 0) { return impl->IsDisabled(); } return true; } bool RobotState::IsEnabled() { if (impl != 0) { ...
Fix changes where the default value was always being returned for many of the robot state status functions.
Fix changes where the default value was always being returned for many of the robot state status functions. Change-Id: I50f11ce6d8ba4cbaa9ab7f44cd2f353e8bba72dd
C++
bsd-3-clause
PatrickPenguinTurtle/allwpilib,RAR1741/wpilib,PeterMitrano/allwpilib,RAR1741/wpilib,333fred/allwpilib,RAR1741/wpilib,333fred/allwpilib,robotdotnet/allwpilib,JLLeitschuh/allwpilib,RAR1741/wpilib,JLLeitschuh/allwpilib,PeterMitrano/allwpilib,RAR1741/wpilib,robotdotnet/allwpilib,333fred/allwpilib,333fred/allwpilib,JLLeitsc...
d6445a62eda4b2f2090813edd9d64bbf21f55868
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: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@50173 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
e72e1037c8a58b0f0ec8b92f0936b782adbdd0cf
1-common-tasks/input-streams/validate-multiple-reads.cpp
1-common-tasks/input-streams/validate-multiple-reads.cpp
// Validate multiple reads #include <sstream> #include <string> int main() { std::istringstream stream{"John Smith 32"}; std::string first_name; std::string family_name; int age; if (stream >> first_name && stream >> family_name && stream >> age) { // Use values } } // Validate reading multiple v...
// Validate multiple reads #include <sstream> #include <string> int main() { std::istringstream stream{"John Smith 32"}; std::string first_name; std::string family_name; int age; if (stream >> first_name && stream >> family_name && stream >> age) { // Use values } } // Ensure that multiple stream...
Edit the validate multiple reads sample
Edit the validate multiple reads sample
C++
cc0-1.0
rollbear/CppSamples-Samples,darongE/CppSamples-Samples,vjacquet/CppSamples-Samples,sftrabbit/CppSamples-Samples,thatbrod/CppSamples-Samples,brunotag/CppSamples-Samples,mnpk/CppSamples-Samples,tmwoz/CppSamples-Samples
73070dcffb195aaef105daa55e1f109cf751a883
src/test/orientation_test.cpp
src/test/orientation_test.cpp
#include <gtest/gtest.h> #include "../c_oriented.h" #include "../c_moveable.h" using aronnax::Vector2d; using spacegun::Moveable; using spacegun::Oriented; class OrientedTest : public testing::Test { protected: virtual void SetUp() { expectedAngle_ = 15.0; moveable_ = new Moveable(Vector2d(), Vec...
#include <gtest/gtest.h> #include "../c_oriented.h" #include "../c_moveable.h" using aronnax::Vector2d; using spacegun::Moveable; using spacegun::Oriented; class OrientedTest : public testing::Test { protected: virtual void SetUp() { expectedAngle_ = 15.0; moveable_ = new Moveable(Vector2d(), Vec...
Add oriented tests for facingNorth
Add oriented tests for facingNorth
C++
mit
msecret/space-gun
c5d2d05656d0132b12427323a8f4b880316eba8c
cirkit_unit03_driver/src/cirkit_unit03_driver_node.cpp
cirkit_unit03_driver/src/cirkit_unit03_driver_node.cpp
/****************************************************** * This is CIR-KIT 3rd robot control driver. * Author : Arita Yuta(Kyutech) ******************************************************/ #include "cirkit_unit03_driver.hpp" #include <string> #include <utility> int main(int argc, char** argv) { ros::init(argc, arg...
/****************************************************** * This is CIR-KIT 3rd robot control driver. * Author : Arita Yuta(Kyutech) ******************************************************/ #include "cirkit_unit03_driver.hpp" #include <string> #include <utility> int main(int argc, char** argv) { ros::init(argc, arg...
Update init writing to universal init
Update init writing to universal init
C++
bsd-3-clause
CIR-KIT-Unit03/cirkit_unit03_robot,CIR-KIT-Unit03/cirkit_unit03_robot
5db909256a37433c2dc526728f692ba2fdd01027
SSPSolution/SSPSolution/Progression.cpp
SSPSolution/SSPSolution/Progression.cpp
#include "Progression.h" Progression* Progression::m_instance = nullptr; Progression::Progression() { this->m_currentLevel = 0; this->m_currentCheckpoint = 0; this->m_unlockedLevels = 0; } Progression::~Progression() { } bool Progression::WriteToFile(std::string filename) { std::ofstream saveFile; saveFile.o...
#include "Progression.h" Progression* Progression::m_instance = nullptr; Progression::Progression() { this->m_currentLevel = 0; this->m_currentCheckpoint = 0; this->m_unlockedLevels = 0; } Progression::~Progression() { } bool Progression::WriteToFile(std::string filename) { std::ofstream saveFile; saveFile.o...
ADD print the saved data to the save file
ADD print the saved data to the save file
C++
apache-2.0
Chringo/SSP,Chringo/SSP
fc0c81f5f44b72ca959e8c7fe868fb576791d131
List/list.cpp
List/list.cpp
#include <iostream> #include "list.h" int List::numberOfNodes = 0; void List::addToHead(int value) { node *temp=new node; temp->data=value; temp->next=head; head=temp; numberOfNodes++; } void List::addToTail(int value) { node *temp = new node; temp->data = value; temp->next = NULL; if(head == NU...
#include <iostream> #include "list.h" int List::numberOfNodes = 0; void List::addToHead(int value) { node *temp=new node; temp->data=value; temp->next=head; head=temp; numberOfNodes++; } void List::addToTail(int value) { node *temp = new node; temp->data = value; temp->next = NULL; if(head == NULL)...
Change 4 spaces to tab
Change 4 spaces to tab
C++
mit
danielcabralsilveira/algorithms
7055ff61be2645f8206f116574efcfab3f679f14
ab/src/Memory.cpp
ab/src/Memory.cpp
#include <Ab/Config.hpp> #include <Ab/Memory.hpp> namespace Ab { const MemoryConfig Memory::defaultConfig_; } // namespace Ab
#include <Ab/Config.hpp> #include <Ab/Memory.hpp> namespace Ab { constexpr const MemoryConfig Memory::defaultConfig_; } // namespace Ab
Add constexpr keyword to inline inited variable
Add constexpr keyword to inline inited variable 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
fbfd1e6c63cc69c7ef545de834752f15d585a9b7
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. Former-commit-id: 7c0144cf1e95caa1d49b76543638e7e55fed6f6a
C++
mit
darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide
680b7d2e17be0e72b9668508d989bc99a948e65d
bi/birch.cpp
bi/birch.cpp
/** * @file * * The driver program. */ #include "bi/build/Driver.hpp" #include "bi/exception/DriverException.hpp" #include "bi/build/misc.hpp" #include <iostream> int main(int argc, char** argv) { using namespace bi; try { /* first option (should be a program name) */ std::string prog; if (argc > ...
/** * @file * * The driver program. */ #include "bi/build/Driver.hpp" #include "bi/exception/DriverException.hpp" #include "bi/build/misc.hpp" #include <iostream> int main(int argc, char** argv) { using namespace bi; try { /* first option (should be a program name) */ std::string prog; if (argc > ...
Return code of driver program now non-zero on error.
Return code of driver program now non-zero on error.
C++
apache-2.0
lawmurray/Birch,lawmurray/Birch,lawmurray/Birch
7189d538597f4581655fe30bc833df8038783ce3
third_party/tcmalloc/win_allocator.cc
third_party/tcmalloc/win_allocator.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. // This is a simple allocator based on the windows heap. extern "C" { HANDLE win_heap; bool win_heap_init(bool use_lfh) { win_heap = HeapCreate(0...
// 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. // This is a simple allocator based on the windows heap. extern "C" { HANDLE win_heap; bool win_heap_init(bool use_lfh) { win_heap = HeapCreate(0...
Fix the windows allocator to behave properly on realloc.
Fix the windows allocator to behave properly on realloc. The spec says that calling realloc(ptr, 0) should free ptr and return NULL. BUG=none TEST=none Review URL: http://codereview.chromium.org/196041 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@25612 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,Cryst...
93a720767bd1f99424d6ecd129fa8d1722a9230a
src/Moves/Queenside_Castle.cpp
src/Moves/Queenside_Castle.cpp
#include "Moves/Queenside_Castle.h" #include "Moves/Move.h" #include "Game/Board.h" #include "Pieces/Piece.h" Queenside_Castle::Queenside_Castle() : Move(-2, 0) { } bool Queenside_Castle::move_specific_legal(const Board& board, char file_start, int rank_start) const { return ! board.piece_has_moved(file_star...
#include "Moves/Queenside_Castle.h" #include "Moves/Move.h" #include "Game/Board.h" #include "Pieces/Piece.h" Queenside_Castle::Queenside_Castle() : Move(-2, 0) { } bool Queenside_Castle::move_specific_legal(const Board& board, char file_start, int rank_start) const { return ! board.piece_has_moved(file_star...
Put fast legality checks first
Put fast legality checks first
C++
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
9971c2711733ec84439627094feb8c32a84bc91d
KLog/main.cpp
KLog/main.cpp
/* @ 0xCCCCCCCC */ int main() { return 0; }
/* @ 0xCCCCCCCC */ #include <conio.h> #include <random> #include <sstream> #include "klog/klog_worker.h" void WorkerTest() { klog::LogWorker worker(std::wstring(L"test.log"), std::chrono::seconds(3)); std::random_device rd; std::default_random_engine engine(rd()); std::uniform_int_distribution<> di...
Add quick test for logging worker.
Add quick test for logging worker.
C++
mit
kingsamchen/KLog
448c703aad7255d449dfee3e263c026c588d364b
src/shapes/ShapeSphere.cpp
src/shapes/ShapeSphere.cpp
#include "./ShapeSphere.hpp" #include "math/misc.hpp" #include "math/Sphere.hpp" #include <cmath> using namespace yks; Optional<float> ShapeSphere::hasIntersection(const Ray& r) const { const Ray local_ray = transform.localFromParent * r; return intersect_with_sphere(vec3_0, 1.0f, local_ray); } Optional<Intersecti...
#include "./ShapeSphere.hpp" #include "math/misc.hpp" #include "math/Sphere.hpp" #include <cmath> using namespace yks; Optional<float> ShapeSphere::hasIntersection(const Ray& r) const { const Ray local_ray = transform.localFromParent * r; return intersect_with_sphere(vec3_0, 1.0f, local_ray); } Optional<Intersecti...
Fix normal calculation for scaled spheres.
Fix normal calculation for scaled spheres.
C++
apache-2.0
yuriks/NoiseRay,yuriks/NoiseRay
5094de16eb87388fb24c7da9f128fb1ea84b1825
src/test/map/TestLevel.cpp
src/test/map/TestLevel.cpp
#include <stdexcept> #include "gtest/gtest.h" #include "map/Level.h" #include "map/Tile.h" TEST(LevelTest, DefaultLevelIsWalls) { Level l1(10, 10); EXPECT_EQ(WallTile, l1.getTile(5, 5)); } TEST(LevelTest, LevelGetTile) { Level l1(10, 10); EXPECT_NO_THROW(l1.getTile(5, 5)); EXPECT_THROW(l1.getTile(50, 50), std...
#include <stdexcept> #include "gtest/gtest.h" #include "map/Level.h" #include "map/Tile.h" TEST(LevelTest, DefaultLevelIsWalls) { Level l1(10, 10); EXPECT_EQ(WallTile, l1.getTile(5, 5)); } TEST(LevelTest, LevelGetTile) { Level l1(10, 10); EXPECT_NO_THROW(l1.getTile(9, 9)); EXPECT_THROW(l1.getTile(10, 10), std...
Modify Level tests to focus on boundaries.
Modify Level tests to focus on boundaries.
C++
mit
Kromey/roglick
e45f960fb79e7a779b6781710343458de1cc1075
test/asan/TestCases/asan_and_llvm_coverage_test.cc
test/asan/TestCases/asan_and_llvm_coverage_test.cc
// RUN: %clangxx_asan -coverage -O0 %s -o %t // RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s // XFAIL: android #include <stdio.h> int foo() { return 1; } int XXX = foo(); int main() { printf("PASS\n"); // CHECK: PASS }
// RUN: %clangxx_asan -coverage -O0 %s -o %t // RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s // XFAIL: android // We don't really support running tests using profile runtime on Windows. // UNSUPPORTED: win32 #include <stdio.h> int foo() { return 1; } int XXX = foo(); int main() { print...
Disable test that uses profile runtime on Windows.
[ASan] Disable test that uses profile runtime on Windows. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@260561 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
bd7fd7f9058d9e165e7b8faec423fa0cc2f441a5
src/libEGL/AttributeMap.cpp
src/libEGL/AttributeMap.cpp
// // Copyright (c) 2014 The ANGLE 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 "libEGL/AttributeMap.h" namespace egl { AttributeMap::AttributeMap() { } AttributeMap::AttributeMap(const EGLint *attributes) {...
// // Copyright (c) 2014 The ANGLE 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 "libEGL/AttributeMap.h" namespace egl { AttributeMap::AttributeMap() { } AttributeMap::AttributeMap(const EGLint *attributes) {...
Fix an incorrect iteration over EGL attributes.
Fix an incorrect iteration over EGL attributes. BUG=angle:490 Change-Id: If7a86ee0a5226f2b45e26bbadf4a84f8f605d1c2 Reviewed-on: https://chromium-review.googlesource.com/227231 Reviewed-by: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org> Tested-by: Geoff Lang <b6fc25fe0362055230985c05cbfa8adb741cc...
C++
bsd-3-clause
crezefire/angle,mikolalysenko/angle,ghostoy/angle,mrobinson/rust-angle,nandhanurrevanth/angle,larsbergstrom/angle,mrobinson/rust-angle,ecoal95/angle,MSOpenTech/angle,ecoal95/angle,mybios/angle,crezefire/angle,mrobinson/rust-angle,csa7mdm/angle,ppy/angle,vvuk/angle,ghostoy/angle,bsergean/angle,mybios/angle,mikolalysenko...
1e62dfcf98c751c52ce1c824ee7503cb5db795aa
content/renderer/render_view_impl_android.cc
content/renderer/render_view_impl_android.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/render_view_impl.h" #include "base/command_line.h" #include "base/message_loop.h" #include "cc/trees/layer_tree_host.h" #i...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/render_view_impl.h" #include "base/command_line.h" #include "base/message_loop.h" #include "cc/trees/layer_tree_host.h" #i...
Remove DCHECK on the compositor in OnEnableHidingTopControls.
Remove DCHECK on the compositor in OnEnableHidingTopControls. It is crashing our tests. Removing while I investigate whether these IPCs are getting sent before the compositor was initialized or after it died. BUG=224511 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/13142006 git-svn-id: de016e52bd17...
C++
bsd-3-clause
M4sse/chromium.src,Jonekee/chromium.src,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,jaruba/chromium.src,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,Jonekee/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk,ltilve/chromium,pozdnyakov/chromium-c...
e7f170dd9a121bdb67a4c5370c4b8115d864ec0e
src/main.cpp
src/main.cpp
#include "main.h" #include <boost/program_options.hpp> #include <iostream> namespace po = boost::program_options; using namespace std; int main(int argc, char **argv) { po::options_description program_desc("Simplicity window manager"); program_desc.add_options() ("help", "Display usage") ; po::variables_map ...
#include "main.h" #include <boost/program_options.hpp> #include <iostream> namespace po = boost::program_options; using namespace std; void print_version(void); int main(int argc, char **argv) { po::options_description program_desc("Simplicity window manager"); program_desc.add_options() ("help", "Display u...
Add version command line option
Add version command line option
C++
mit
durandj/simplicity,durandj/simplicity
97c363fc7f0110684faee768dd9006f3c6022b6c
src/main.cpp
src/main.cpp
/** * Assimp2XML3D * * Copyright (c)2015, Christian Schlinkmann * * **/ #include <assimp/version.h> #include <assimp/postprocess.h> #include <assimp/scene.h> #include <assimp/Importer.hpp> #include <assimp/Exporter.hpp> #include <iostream> int invalidUsageExit() { std::cout << "usage: assimp2xml3d [FLAGS] inputFile...
/** * Assimp2XML3D * * Copyright (c)2015, Christian Schlinkmann * * **/ #include <assimp/version.h> #include <assimp/postprocess.h> #include <assimp/scene.h> #include <assimp/Importer.hpp> #include <assimp/Exporter.hpp> #include <iostream> extern Assimp::Exporter::ExportFormatEntry Assimp2XML3D_desc; int invalidUsa...
Add the barebones logic needed to import a scene into Assimp and start exporting it
Add the barebones logic needed to import a scene into Assimp and start exporting it
C++
bsd-3-clause
csvurt/assimp2xml3d
901f9025803d12a8ce2a8b361ba39d7af3267071
src/main.cpp
src/main.cpp
#include <iostream> #include <stdexcept> #include <string> #include "application.hpp" #include <GL/glew.h> void init_glew() { GLenum err = glewInit(); if (GLEW_OK != err) { throw std::runtime_error(reinterpret_cast<const char *>(glewGetErrorString(err))); } } int main(int argc, char const *ar...
#include <iostream> #include <stdexcept> #include <string> #include "application.hpp" #include <GL/glew.h> void init_sdl() { if (SDL_Init(SDL_INIT_EVERYTHING) != 0) { throw std::runtime_error(SDL_GetError()); } } void init_glew() { GLenum err = glewInit(); if (GLEW_OK != err) { ...
Add error handling to sdl init.
Add error handling to sdl init.
C++
bsd-2-clause
mdsitton/atlas-test,mdsitton/atlas-test
8276c26902419d4687c73324d78cb360aeeda09a
src/test.cpp
src/test.cpp
#include <cstdlib> #include <iostream> #include <boost/asio.hpp> #include <boost/thread.hpp> #include <proxylib/proxylib.h> void signal_handler(int signal) { fprintf(stderr, "Received signal %d\nExiting...\n", signal); exit(0); } void install_sighandlers() { signal(SIGHUP, SIG_IGN); signal(SIGINT, signal_handler)...
#include <cstdlib> #include <iostream> #include <boost/asio.hpp> #include <boost/thread.hpp> #include <proxylib/proxylib.h> void signal_handler(int signal) { std::cerr << "Received signal " << signal << "\nExiting..." << std::endl; exit(0); } void install_sighandlers() { signal(SIGHUP, SIG_IGN); signal(SIGINT, s...
Use std ostream instead of fprintf.
Use std ostream instead of fprintf.
C++
mit
jweyrich/proxylib,jweyrich/proxylib
8d527c54f228c334ff0b1630facb7bf18ee5d8fb
Infrastructure/breakpad.cpp
Infrastructure/breakpad.cpp
#include "crash_reporting.h" #include "infrastructure/breakpad.h" #include <fmt/format.h> #include "platform/windows.h" Breakpad::Breakpad(const std::wstring &crashDumpFolder, bool fullDump) { mHandler = std::make_unique<InProcessCrashReporting>(crashDumpFolder, fullDump, [this](const std::wstring &minid...
#include "crash_reporting.h" #include "infrastructure/breakpad.h" #include <fmt/format.h> #include "platform/windows.h" #include <infrastructure/stringutil.h> #include <filesystem> #include <Shlwapi.h> namespace fs = std::filesystem; Breakpad::Breakpad(const std::wstring &crashDumpFolder, bool fullDump)...
Copy logfile when crashed so users don't have to do so manually
Copy logfile when crashed so users don't have to do so manually
C++
mit
GrognardsFromHell/TemplePlus,GrognardsFromHell/TemplePlus,GrognardsFromHell/TemplePlus,GrognardsFromHell/TemplePlus,GrognardsFromHell/TemplePlus
58d33dfa0e2313d8b5966d2926bc54370c5bf399
chrome/browser/extensions/extension_function.cc
chrome/browser/extensions/extension_function.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_function.h" #include "chrome/browser/extensions/extension_function_dispatcher.h" void ExtensionFunctio...
// 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_function.h" #include "chrome/browser/extensions/extension_function_dispatcher.h" void ExtensionFunctio...
Check that the ExtensionFunction has a callback for attempting to send a response.
Check that the ExtensionFunction has a callback for attempting to send a response. Review URL: http://codereview.chromium.org/63130 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@13406 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
494fb5ee696a12a95b7c3287bee0211d7799eec0
Spike/Backend/Context.cpp
Spike/Backend/Context.cpp
#include "Context.hpp" Context* _global_ctx = nullptr; namespace Backend { void init_global_context() { if (!_global_ctx) _global_ctx = new Context; // TODO: Add other device types (esp CUDA) _global_ctx->device = SPIKE_DEVICE_DUMMY; } Context* get_current_context() { return _global_ctx; ...
#include "Context.hpp" Context* _global_ctx = nullptr; namespace Backend { void init_global_context() { if (!_global_ctx) _global_ctx = new Context; // TODO: Add other device types (esp CUDA) #ifdef SPIKE_WITH_CUDA _global_ctx->device = SPIKE_DEVICE_CUDA; #else _global_ctx->device = SPIKE_DEVI...
Switch default device type to CUDA if available; now to fix runtime errors and TODO items
Switch default device type to CUDA if available; now to fix runtime errors and TODO items
C++
mit
OFTNAI/Spike,OFTNAI/Spike
905cba4c0107520616c2b95515042b283aab28c4
JasonType.cpp
JasonType.cpp
#include "JasonType.h" using JasonType = triagens::basics::JasonType; //////////////////////////////////////////////////////////////////////////////// /// @brief get the name for a Jason type //////////////////////////////////////////////////////////////////////////////// char const* triagens::basics::JasonType...
#include "JasonType.h" using JasonType = triagens::basics::JasonType; //////////////////////////////////////////////////////////////////////////////// /// @brief get the name for a Jason type //////////////////////////////////////////////////////////////////////////////// char const* triagens::basics::JasonType...
Add long types to names.
Add long types to names.
C++
apache-2.0
arangodb/velocypack,arangodb/Jason,arangodb/Jason,arangodb/velocypack,arangodb/Jason,arangodb/Jason,arangodb/velocypack,arangodb/velocypack
3f7fc71e5e307a27dcb4ac39931dfc0d0984495b
MiNodePIR.cpp
MiNodePIR.cpp
#include "MiNodePIR.h" MiNodePIR::MiNodePIR() : pin(NULL) { this->baseId = MINODE_ID_MODULE_PIR; } MiNodePIR::~MiNodePIR() { if(pin) { delete pin; } } void MiNodePIR::attach(ConnName connName) { if(this->cn != MN_NC) { return; } MiNodeComponent::initConnector(connName); PinName pinName = MiNo...
#include "MiNodePIR.h" MiNodePIR::MiNodePIR() : pin(NULL) { this->baseId = MINODE_ID_MODULE_PIR; } MiNodePIR::~MiNodePIR() { if(pin) { delete pin; } } void MiNodePIR::attach(ConnName connName) { if(this->cn != MN_NC) { return; } MiNodeComponent::initConnector(connName); PinName pinName = MiNo...
Modify the trigger condition of PIR
Modify the trigger condition of PIR
C++
mit
minodekit/pxt-minode,minodekit/pxt-minode
edec2ee3bcde5ade31a76e329dcc4ac0fa7c7d11
test/Tooling/clang-check-pwd.cpp
test/Tooling/clang-check-pwd.cpp
// RUN: rm -rf %t // RUN: mkdir %t // RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp","file":"%t/test.cpp"}]' > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" // RUN: PWD="%t" clang-check "%t" "test.cpp" 2>&1|FileCheck %s // FIXME: Make the above easier. // CHECK: C++ requires invalid; // FIXM...
// RUN: rm -rf %t // RUN: mkdir %t // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" // RUN: PWD="%t" clang-check "%t" "test.cpp" 2>&1|FileCheck %s // FIXME: Make the above easier. // CHECK: C++ requires inval...
Fix quoting to allow shell expansion to occur for shell variables introduced by the test harness' expansion of %t.
Fix quoting to allow shell expansion to occur for shell variables introduced by the test harness' expansion of %t. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@154443 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
6c1f810f14f95517d820008d96edf84d7d710101
en-2015-10-03-structures-and-member-initializers-in-cpp/cpp11.cpp
en-2015-10-03-structures-and-member-initializers-in-cpp/cpp11.cpp
// C++11 code with initializers. // // g++ -std=c++11 -pedantic -fsyntax-only cpp11.cpp // clang++ -std=c++11 -pedantic -fsyntax-only cpp11.cpp struct A { int i = 0; double j = 0.0; }; int main() { A a; // OK, a.i is 0 and a.j is 0.0 A b = {}; // OK, b.i is 0 and b.j is 0.0 A ...
// C++11 code with initializers. // // g++ -std=c++11 -pedantic -fsyntax-only cpp11.cpp // clang++ -std=c++11 -pedantic -fsyntax-only cpp11.cpp struct A { int i = 0; double j = 0.0; }; int main() { A a; // OK, a.i is 0 and a.j is 0.0 A b = {}; // OK, b.i is 0 and b.j is 0.0 A ...
Replace non-ASCII quotes from GCC with ASCII quotes.
en-2015-10-03: Replace non-ASCII quotes from GCC with ASCII quotes.
C++
bsd-3-clause
s3rvac/blog,s3rvac/blog,s3rvac/blog,s3rvac/blog
9353636427a66a1e1d14d41da6455c6a0dea4984
luna/main.cpp
luna/main.cpp
#include <QApplication> #include <QDeclarativeView> #include <QUrl> int main(int argc, char** argv) { // FIXME: Use the (new?) harmattan booster!! QApplication app(argc, argv); QDeclarativeView viewer; viewer.setSource(QUrl("qrc:/qml/main.qml")); viewer.showFullScreen(); return app.exec(); }
#include <QApplication> #include <QDeclarativeView> #include <QUrl> #include <MDeclarativeCache> Q_DECL_EXPORT int main(int argc, char** argv) { QApplication* app = MDeclarativeCache::qApplication(argc, argv); QDeclarativeView viewer; viewer.setSource(QUrl("qrc:/qml/main.qml")); viewer.showFullScreen(...
Make luna app boostable to reduce the start up time.
Make luna app boostable to reduce the start up time.
C++
lgpl-2.1
snowshoe/snowshoe,qtproject/qt-apps-snowshoe,snowshoe/snowshoe,qtproject/qt-apps-snowshoe,qtproject/qt-apps-snowshoe,snowshoe/snowshoe
4f598d5c528f370172f8364832d18fe2e35d6f84
test/sanitizer_common/TestCases/pthread_mutexattr_get.cc
test/sanitizer_common/TestCases/pthread_mutexattr_get.cc
// RUN: %clangxx -O0 %s -o %t && %run %t // XFAIL: arm-linux-gnueabi #include <assert.h> #include <pthread.h> int main(void) { pthread_mutexattr_t ma; int res = pthread_mutexattr_init(&ma); assert(res == 0); res = pthread_mutexattr_setpshared(&ma, 1); assert(res == 0); int pshared; res = pthread_mutexat...
// RUN: %clangxx -O0 %s -o %t && %run %t #include <assert.h> #include <pthread.h> int main(void) { pthread_mutexattr_t ma; int res = pthread_mutexattr_init(&ma); assert(res == 0); res = pthread_mutexattr_setpshared(&ma, 1); assert(res == 0); int pshared; res = pthread_mutexattr_getpshared(&ma, &pshared)...
Remove ARM XFAIL from passing test
Remove ARM XFAIL from passing test git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@211608 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
8a8ee33f48ee26968a16052c8cf773cb2c824cc5
ReactCommon/fabric/graphics/platform/android/Color.cpp
ReactCommon/fabric/graphics/platform/android/Color.cpp
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Color.h" namespace facebook { namespace react { SharedColor colorFromComponents(ColorComponents components) { return Share...
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Color.h" namespace facebook { namespace react { SharedColor colorFromComponents(ColorComponents components) { float ratio ...
Fix color conversions for android
Fix color conversions for android Summary: This diff fixes the color conversions for Android Reviewed By: shergin Differential Revision: D9093561 fbshipit-source-id: a17e61c58be511bd463dc0b21b632dc24066b8b6
C++
mit
facebook/react-native,exponent/react-native,arthuralee/react-native,janicduplessis/react-native,hammerandchisel/react-native,myntra/react-native,myntra/react-native,pandiaraj44/react-native,exponent/react-native,myntra/react-native,myntra/react-native,arthuralee/react-native,exponentjs/react-native,pandiaraj44/react-na...