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
4aefbb8b376b746eac3ca8d15989d903210b1624
Tests/main.cpp
Tests/main.cpp
#include <stdio.h> #include <Logging.h> #include <ZipFile.h> int main() { v::Log::Level = v::Log::LogLevel_Trace; v::Log::Debug("Creating zip file"); { v::ZipFile zip; zip.Read("meow.zip"); s::StackArray<v::ZipEntry> entries; zip.GetEntries(entries); for (auto &entry : entries) { v::Log::Debug("Zi...
#include <stdio.h> #include <Logging.h> #include <ZipFile.h> int main() { v::Log::Level = v::Log::LogLevel_Trace; v::Log::Debug("Reading zip file test.zip"); try { v::ZipFile zip; zip.Read("test.zip"); s::StackArray<v::ZipEntry> entries; zip.GetEntries(entries); for (auto &entry : entries) { v::Lo...
Clean up and error example
Clean up and error example
C++
mit
AngeloG/Vinyl,AngeloG/Vinyl
950a493b41a13ff11f1fa97f38f9576c41b668d6
bindings/python/mapnik_text_symbolizer.cpp
bindings/python/mapnik_text_symbolizer.cpp
/* This file is part of python_mapnik (c++/python mapping toolkit) * Copyright (C) 2005 Artem Pavlenko, Jean-Francois Doyon * * Mapnik is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * o...
/* This file is part of python_mapnik (c++/python mapping toolkit) * Copyright (C) 2005 Artem Pavlenko, Jean-Francois Doyon * * Mapnik is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * o...
Add support for halo's to TextSymbolizer().
Add support for halo's to TextSymbolizer(). git-svn-id: 06a2cde72a096d93ff72b88e3e6711b8f00772a4@184 d397654b-2ff0-0310-9e29-ba003691a0f9
C++
lgpl-2.1
semprebon/mapnik,semprebon/mapnik,semprebon/mapnik,semprebon/mapnik,semprebon/mapnik
30d285d0063cdcb70d47c8619434bcbc057ab9d7
src/allocators/page_heap.cc
src/allocators/page_heap.cc
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #include "allocators/page_heap.h" #include "common.h" #include "log.h" #include "system-alloc.h" n...
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #include "allocators/page_heap.h" #include "common.h" #include "log.h" #include "system-alloc.h" n...
Use public API for inserting a block in refill.
Use public API for inserting a block in refill. Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
C++
bsd-2-clause
cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc
a36d68413be7235ed94b786a5ac53cd43a07444f
test/functionalities/thread/jump/main.cpp
test/functionalities/thread/jump/main.cpp
//===-- main.cpp ------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- main.cpp ------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix the thread jump test case for 32-bit inferiors. A jump was going back to a function call using a source line number. However, the parameters being passed to the function were setup before the instruction we jumped to. In other words, the source line was associated with assembly after the function parameters had bee...
Fix the thread jump test case for 32-bit inferiors. A jump was going back to a function call using a source line number. However, the parameters being passed to the function were setup before the instruction we jumped to. In other words, the source line was associated with assembly after the function parameters had bee...
C++
apache-2.0
apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb
6eb47da7ed9da877fddd0e7e30e95955d9e5e784
test/Modules/submodules.cpp
test/Modules/submodules.cpp
// RUN: rm -rf %t // RUN: %clang_cc1 -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/submodules %s -verify __import_module__ std.vector; __import_module__ std.typetraits; // expected-error{{no submodule named 'typetraits' in module 'std'; did you mean 'type_traits'?}} __import_module__ std.vector.compare; // ...
// RUN: rm -rf %t // RUN: %clang_cc1 -Eonly -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/submodules %s -verify // RUN: %clang_cc1 -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/submodules %s -verify __import_module__ std.vector; __import_module__ std.typetraits; // expected-error{{no submodule na...
Add preprocessor-only test for submodule imports
Add preprocessor-only test for submodule imports git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@145490 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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/cl...
30144698a5778eeabdc1cad225a0f742e9a6282f
main.cpp
main.cpp
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include "applications.h" #include "iconprovider.h" #include "process.h" /** * @todo: Config file in ~/.config/qmldmenu/ * @todo: SHIFT(ENTER) for sudo * @todo: TAB For command (term /{usr}/bin/) / app (.desktop) mode */ int main(in...
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QtQml> #include "applications.h" #include "iconprovider.h" #include "process.h" /** * @todo: Config file in ~/.config/qmldmenu/ * @todo: SHIFT(ENTER) for sudo * @todo: TAB For command (term /{usr}/bin/) / app (.desktop) mod...
Fix compilation on Ubuntu 16.04
Fix compilation on Ubuntu 16.04
C++
mit
bayi/qdmenu,bayi/qdmenu,bayi/qdmenu
a659032d40d0de46959610e8686dd18908ad2997
branches/ultimate-repo/reposerver/main.cpp
branches/ultimate-repo/reposerver/main.cpp
/** @file main.cpp * @brief Главный файл сервера репозитория * */ #include <QCoreApplication> #include <QTextCodec> #include "server.h" int main(int argc, char *argv[]) { QTextCodec *codec = QTextCodec::codecForName("UTF-8"); QTextCodec::setCodecForCStrings(codec); QCoreApplication app(argc, argv); int port ...
/** @file main.cpp * @brief Главный файл сервера репозитория * */ #include <QCoreApplication> #include <QTextCodec> #include <QFile> #include "server.h" int main(int argc, char *argv[]) { QTextCodec *codec = QTextCodec::codecForName("UTF-8"); QTextCodec::setCodecForCStrings(codec); QCoreApplication app(argc, a...
Add '-e' cmd key to reposerver which means 'immediate exterminatus'.
Add '-e' cmd key to reposerver which means 'immediate exterminatus'.
C++
apache-2.0
qreal/qreal,Ashatta/qreal,iakov/qreal,iakov/qreal,Julia-Khramyshkina/qreal,Julia-Khramyshkina/qreal,RomanBelkov/qreal,Julia-Khramyshkina/qreal,anastasia143/qreal,dvvrd/qreal,Ashatta/qreal,tara-sova/qreal,Julia-Khramyshkina/qreal,dvvrd/qreal,tara-sova/qreal,DenisKogutich/qreal,DenisKogutich/qreal,RomanBelkov/qreal,danil...
be80b1f4757d7c3c8227d551b4596ee638eb1b55
main.cpp
main.cpp
#include <QGuiApplication> #include <QQuickView> #include "sailfishapplication.h" Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QGuiApplication> app(Sailfish::createApplication(argc, argv)); QScopedPointer<QQuickView> view(Sailfish::createView("main.qml")); Sailfish::showView(view....
#include <QGuiApplication> #include <QQuickView> #include <QQmlContext> #include "sailfishapplication.h" #include "servercomm.h" Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QGuiApplication> app(Sailfish::createApplication(argc, argv)); QScopedPointer<QQuickView> view(Sailfish::createView(...
Connect the C++ classes with QML
Connect the C++ classes with QML
C++
bsd-2-clause
andreagrandi/sailsoma
5cde53b0257987a025ce36d142f08bfcf97618e1
lib/CodeGen/GlobalISel/EmptyFile.cpp
lib/CodeGen/GlobalISel/EmptyFile.cpp
//===-- llvm/CodeGen/GlobalISel/EmptyFile.cpp ------ EmptyFile ---*- C++ -*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- llvm/CodeGen/GlobalISel/EmptyFile.cpp ------ EmptyFile ---*- C++ -*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix a ranlib warning about empty TOC.
[GlobalISel] Fix a ranlib warning about empty TOC. Fixes PR26733 git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@262057 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,app...
5459242e934309842d71d2b3e064294f2f5b28cb
Wangscape/OptionsManager.cpp
Wangscape/OptionsManager.cpp
#include "OptionsManager.h" #include <fstream> #include <iostream> #include <boost/filesystem.hpp> #include <spotify/json.hpp> #include "codecs/OptionsCodec.h" #include "logging/Logging.h" OptionsManager::OptionsManager(std::string optionsFilename) { loadOptions(optionsFilename); } void OptionsManager::loadOp...
#include "OptionsManager.h" #include <fstream> #include <iostream> #include <boost/filesystem.hpp> #include <spotify/json.hpp> #include "codecs/OptionsCodec.h" #include "logging/Logging.h" OptionsManager::OptionsManager(std::string optionsFilename) { loadOptions(optionsFilename); } void OptionsManager::loadOp...
Remove extra call to create_directories
Remove extra call to create_directories
C++
mit
Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape
fbb46aca6552eb9ab2d0d9ebdbc279843441ddbf
src/Watermark/View/WatermarkDataFactory.cpp
src/Watermark/View/WatermarkDataFactory.cpp
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "WatermarkDataFactory.h" namespace ExampleApp { namespace Watermark { namespace View { WatermarkDataFactory::WatermarkDataFactory(const std::string& appName, con...
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "WatermarkDataFactory.h" namespace ExampleApp { namespace Watermark { namespace View { WatermarkDataFactory::WatermarkDataFactory(const std::string& appName, con...
Update eegeo reference in company watermark info page. Buddy: Vimmy.
Update eegeo reference in company watermark info page. Buddy: Vimmy.
C++
bsd-2-clause
wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/w...
99feb47808825f1cc36526803e6d2834a6b00792
test/test_matrix_constructors.cpp
test/test_matrix_constructors.cpp
#include "catch.hpp" #include "matrix.h" TEST_CASE( "Test matrix", "[matrix]" ) { matrix<int> m0; REQUIRE( m0.rows() == 0 ); REQUIRE( m0.columns() == 0 ); matrix<int> m3_4(3,4); REQUIRE( m3_4.rows() == 3 ); REQUIRE( m3_4.columns() == 4 ); matrix<int> m_init_2 = {}; REQUIRE( m_init_2.rows() == 0 ); ...
#include "catch.hpp" #include "matrix.h" TEST_CASE( "Test default constructor", "[matrix][constructors]" ) { matrix<int> m0; REQUIRE( m0.rows() == 0 ); REQUIRE( m0.columns() == 0 ); } TEST_CASE( "Test size constructor", "[matrix][constructors]" ) { matrix<int> m3_4(3,4); REQUIRE( m3_4.rows() == 3 ); REQUI...
Split tests to multiple test cases.
Split tests to multiple test cases.
C++
mit
actinium/cppMatrix,actinium/cppMatrix
1a9e6bd291c573299c8037d4edf2ff4d8e8d24fd
srand.cc
srand.cc
#include <stdlib.h> #include <v8.h> #include <nan.h> #include <node.h> using namespace node; using namespace v8; extern "C" void init (Handle<Object>); NAN_METHOD(Random) { NanScope(); NanReturnValue(NanNew<Number>(rand()/((double)RAND_MAX + 1))); } NAN_METHOD(Rand) { NanScope(); NanReturnValue(NanNew<Inte...
#include <stdlib.h> #include <v8.h> #include <nan.h> #include <node.h> #include <cstdlib> using namespace node; using namespace v8; extern "C" void init (Handle<Object>); NAN_METHOD(Random) { NanScope(); NanReturnValue(NanNew<Number>(rand()/((double)RAND_MAX + 1))); } NAN_METHOD(Rand) { NanScope(); NanRetu...
Add cstdlib.h to compile in CircleCI
Add cstdlib.h to compile in CircleCI
C++
isc
isaacs/node-srand,isaacs/node-srand,isaacs/node-srand
36d9f294eebaf9e5ba231c00c7c0d50fd2a98a94
test/Frontend/macro_defined_type.cpp
test/Frontend/macro_defined_type.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s #define NODEREF __attribute__((noderef)) void Func() { int NODEREF i; // expected-warning{{'noderef' can only be used on an array or pointer type}} int NODEREF *i_ptr; // There should be no difference whether a macro defined type is used or not. auto __attribute__(...
// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux-gnu %s #define NODEREF __attribute__((noderef)) void Func() { int NODEREF i; // expected-warning{{'noderef' can only be used on an array or pointer type}} int NODEREF *i_ptr; // There should be no difference whether a macro defined type is used or n...
Add target triple to test.
Add target triple to test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@360465 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,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
fb3e375830112a348f403940f0e3900f1f203e9f
src/io/register_loader_saver_lcp.cpp
src/io/register_loader_saver_lcp.cpp
/** * \file register_loader_saver_lcp.cpp * Defines IO for a GCSA LCPArray from stream files. */ #include <vg/io/registry.hpp> #include <gcsa/gcsa.h> #include <gcsa/algorithms.h> namespace vg { namespace io { using namespace std; using namespace vg::io; void register_loader_saver_lcp() { Registry::register...
/** * \file register_loader_saver_lcp.cpp * Defines IO for a GCSA LCPArray from stream files. */ #include <vg/io/registry.hpp> #include <gcsa/gcsa.h> #include <gcsa/algorithms.h> namespace vg { namespace io { using namespace std; using namespace vg::io; void register_loader_saver_lcp() { std::uint32_t magi...
Use a magic number with the LCP array as well
Use a magic number with the LCP array as well
C++
mit
ekg/vg,ekg/vg,ekg/vg
88718fdce790cfc5c12160f2dfcc8323e20c5681
pc/ice_transport.cc
pc/ice_transport.cc
/* * Copyright 2019 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
/* * Copyright 2019 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
Fix comment - ice transport is cleared on the networking thread.
Fix comment - ice transport is cleared on the networking thread. Bug: chromium:907849 Change-Id: I15afe28d3fb2a175a6e2e7491dc33d36f9f9cd32 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132008 Commit-Queue: Marina Ciocea <0d7dc322100a0f119aa371866dde220cf322deae@webrtc.org> Commit-Queue: Harald Alvestrand...
C++
bsd-3-clause
TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc
d47a857305537eb52b15f83b209cfa1f4f2bdd4b
src/junior-simple.cpp
src/junior-simple.cpp
#include "junior-simple.h" #include <vector> namespace junior { std::vector<window> windows; window& create_window(const wchar_t* title) { windows.push_back(window(title)); return windows.back(); } inline window& main_window() { return windows.front(); } void draw_line(const int ...
#include "junior-simple.h" #include <vector> #include <Windows.h> namespace junior { std::vector<window> windows; window& create_window(const wchar_t* title) { ShowWindow(GetConsoleWindow(), SW_HIDE); windows.push_back(window(title)); return windows.back(); } inline window& main_window(...
Hide console window when creating a new window using simple API
Hide console window when creating a new window using simple API
C++
mit
labandierra/junior,labandierra/junior
08ca4e22625174d7135b5393575ccbcd2f51629f
Sources/Rosetta/Actions/Targeting.cpp
Sources/Rosetta/Actions/Targeting.cpp
// This code is based on Sabberstone project. // Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva // Hearthstone++ is hearthstone simulator using C++ with reinforcement learning. // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon #include <Rosetta/Actions/Targeting.hpp> #include <Rosetta/Ga...
// This code is based on Sabberstone project. // Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva // Hearthstone++ is hearthstone simulator using C++ with reinforcement learning. // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon #include <Rosetta/Actions/Targeting.hpp> #include <Rosetta/Ga...
Add 'break' in switch-case statement
fix: Add 'break' in switch-case statement
C++
mit
Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp
08f6956a7ea359aeb848996019c3f0ef09c1319f
26.cpp
26.cpp
class Solution { public: int removeDuplicates(vector<int>& nums) { if(nums.size()==0) return 0; for(int i=0;i<nums.size()-1;i++){ int j=i+1; while(nums[j]==nums[i] && j<nums.size()){ j++; } nums.erase(nums.begin()+i+1,nums.begin()+j); ...
class Solution { public: int removeDuplicates(vector<int>& nums) { if(nums.size()==0) return 0; for(int i=0;i<nums.size()-1;i++){ int j=i+1; while(nums[j]==nums[i] && j<nums.size()){ j++; } nums.erase(nums.begin()+i+1,nums.begin()+j); ...
Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array
C++
mit
zfang399/LeetCode-Problems
617bd2bc83f4db5c0584957d697b5dd677cf62d3
EScript/main.cpp
EScript/main.cpp
// main.cpp // This file is part of the EScript programming language. // See copyright notice in EScript.h // ------------------------------------------------------ #ifdef ES_BUILD_APPLICATION #include <cstdlib> #include <iostream> #include <string> #include "../EScript/EScript.h" using namespace EScript; int main(i...
// main.cpp // This file is part of the EScript programming language. // See copyright notice in EScript.h // ------------------------------------------------------ #ifdef ES_BUILD_APPLICATION #include <cstdlib> #include <iostream> #include <string> #include <utility> #include "../EScript/EScript.h" int main(int argc...
Change EScript application to support executing a string from a pipe/from stdin.
Change EScript application to support executing a string from a pipe/from stdin. git-svn-id: 5176f51f660287824ea2012221d52a93094db7fd@194 5693b1fc-3b75-4070-9b6b-3ce3692a40d5
C++
mit
eikel/EScript,ClaudiusJ/EScript,ClaudiusJ/EScript,eikel/EScript,EScript/EScript,EScript/EScript
ada92363bd7624a7bc76ba8da3b1ef264a2e830e
lib/tsan/output_tests/race_on_heap.cc
lib/tsan/output_tests/race_on_heap.cc
#include <pthread.h> #include <stdlib.h> #include <stdio.h> void *Thread1(void *p) { *(int*)p = 42; return 0; } void *Thread2(void *p) { *(int*)p = 44;; return 0; } void *alloc() { return malloc(99); } void *AllocThread(void*) { return alloc(); } int main() { void *p = 0; pthread_t t[2]; pthread_...
#include <pthread.h> #include <stdlib.h> #include <stdio.h> void *Thread1(void *p) { *(int*)p = 42; return 0; } void *Thread2(void *p) { *(int*)p = 44; return 0; } void *alloc() { return malloc(99); } void *AllocThread(void* arg) { return alloc(); } int main() { void *p = 0; pthread_t t[2]; pthre...
Fix style warinings in output test
[TSan] Fix style warinings in output test git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@162980 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
e51d2d53f1ee27720fee34e5858054f9ac1418a8
src/tests/test_workfactor.cpp
src/tests/test_workfactor.cpp
/* * (C) 2016 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "tests.h" #if defined(BOTAN_HAS_PUBLIC_KEY_CRYPTO) #include <botan/workfactor.h> #endif namespace Botan_Tests { class PK_Workfactor_Tests : public Text_Based_Test { public: PK_Workfactor_Tests...
/* * (C) 2016 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "tests.h" #if defined(BOTAN_HAS_PUBLIC_KEY_CRYPTO) #include <botan/workfactor.h> #endif namespace Botan_Tests { #if defined(BOTAN_HAS_PUBLIC_KEY_CRYPTO) class PK_Workfactor_Tests : public Text_Based_Test ...
Add missing macro check in test
Add missing macro check in test
C++
bsd-2-clause
randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-S...
317776740588104aff474e671ea307a70ce7548c
src/core/various.cpp
src/core/various.cpp
#include "various.hpp" #include <fstream> #include <iostream> #include <memory> std::string utils::slurp_file(std::string const& path) { std::ifstream file = std::ifstream(path); if (!file.is_open()) { std::cerr << "Failed to open \"" << path << "\"" << std::endl; return std::string(""); } file.seek...
#include "various.hpp" #include "core/Log.h" #include <fstream> #include <iostream> #include <memory> std::string utils::slurp_file(std::string const& path) { std::ifstream file = std::ifstream(path); if (!file.is_open()) { LogError("Failed to open \"%s\"", path.c_str()); return std::string(""); } ...
Use the logging functions in `utils::slurp_file()`
Use the logging functions in `utils::slurp_file()` Use `LogError` rather `std::cerr` as the former will also log to the _log.txt_ file.
C++
unlicense
LUGGPublic/CG_Labs,LUGGPublic/CG_Labs
0f796ace75e069679520a0b80bf965b4c991a7f4
src/libGLESv2/Error.cpp
src/libGLESv2/Error.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. // // Error.cpp: Implements the gl::Error class which encapsulates an OpenGL error // and optional error message. #include "libGLESv2/Error.h...
// // 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. // // Error.cpp: Implements the gl::Error class which encapsulates an OpenGL error // and optional error message. #include "libGLESv2/Error.h...
Fix compilation error due to bad merge.
Fix compilation error due to bad merge. Change-Id: I54b3e0423e41b86b28d93fdce8d4d2d3304d56cf Reviewed-on: https://chromium-review.googlesource.com/213822 Reviewed-by: Geoff Lang <b6fc25fe0362055230985c05cbfa8adb741ccc0f@chromium.org> Tested-by: Geoff Lang <b6fc25fe0362055230985c05cbfa8adb741ccc0f@chromium.org>
C++
bsd-3-clause
ecoal95/angle,crezefire/angle,ghostoy/angle,mrobinson/rust-angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,ppy/angle,ecoal95/angle,vvuk/angle,vvuk/angle,larsbergstrom/angle,mikolalysenko/angle,MIPS/external-chromium_org-third_party-angle,csa7mdm/angle,larsbergstrom/angle,mikolalysenko/angle,android-i...
a95ba7dbf67dbbda1520002ddd3fcb8561d4a362
test/test_libx6.cpp
test/test_libx6.cpp
#include "catch.hpp" #include "libx6adc.h" TEST_CASE("board present", "[get_num_devices]"){ SECTION("at least one board present"){ unsigned numDevices; get_num_devices(&numDevices); REQUIRE( numDevices >= 1); } } TEST_CASE("board temperature is sane", "[get_logic_temperature]"){ connect_x6(0); SECTION(...
#include "catch.hpp" #include "libx6adc.h" TEST_CASE("board present", "[get_num_devices]"){ SECTION("at least one board present"){ unsigned numDevices; get_num_devices(&numDevices); REQUIRE( numDevices >= 1); } } TEST_CASE("board temperature is sane", "[get_logic_temperature]"){ connect_x6(0); SECTION(...
Consolidate firmware version checks into single section
Consolidate firmware version checks into single section Save connect/disconnect time
C++
apache-2.0
BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6
41258a421408ee2593fca931a3aa0ea3c8a787ea
questions/lineedit-frame-37831979/main.cpp
questions/lineedit-frame-37831979/main.cpp
// https://github.com/KubaO/stackoverflown/tree/master/questions/lineedit-frame-37831979 #include <QtWidgets> #include <QtUiTools> const char ui[] = R"EOF( <ui version="4.0"> <class>Form</class> <widget class="QWidget" name="Form"> <layout class="QFormLayout" name="formLayout"> <item row="0" column="0"> ...
// https://github.com/KubaO/stackoverflown/tree/master/questions/lineedit-frame-37831979 #include <QtWidgets> #include <QtUiTools> const char ui[] = R"EOF( <ui version="4.0"> <class>Form</class> <widget class="QWidget" name="Form"> <layout class="QFormLayout" name="formLayout"> <item row="0" column="0"> ...
Tweak to indicate that different sizes still work.
Tweak to indicate that different sizes still work.
C++
unlicense
KubaO/stackoverflown,KubaO/stackoverflown,KubaO/stackoverflown
0eadba7d78715d90316d0c6431a621d820289e9d
src/labelling/labels.cpp
src/labelling/labels.cpp
#include "./labels.h" #include <vector> std::function<void()> Labels::subscribe(std::function<void(const Label &)> subscriber) { int erasePosition = subscribers.size(); subscribers.push_back(subscriber); return [this, erasePosition]() { subscribers.erase(subscribers.begin() + erasePosition); }; } void...
#include "./labels.h" #include <vector> std::function<void()> Labels::subscribe(std::function<void(const Label &)> subscriber) { int erasePosition = subscribers.size(); subscribers.push_back(subscriber); return [this, erasePosition]() { subscribers.erase(subscribers.begin() + erasePosition); }; } void...
Fix error in Labels::getLabels: Wrong constructor for vector.
Fix error in Labels::getLabels: Wrong constructor for vector.
C++
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
520d36f8253f23a905a9e1a2ace4a157a0148749
test/xray/TestCases/Posix/arg1-logging-implicit-this.cc
test/xray/TestCases/Posix/arg1-logging-implicit-this.cc
// Intercept the implicit 'this' argument of class member functions. // // RUN: %clangxx_xray -g -std=c++11 %s -o %t // RUN: rm log-args-this-* || true // RUN: XRAY_OPTIONS="patch_premain=true verbosity=1 xray_logfile_base=log-args-this-" %run %t // // XFAIL: freebsd || arm || aarch64 || mips // UNSUPPORTED: powerpc64l...
// Intercept the implicit 'this' argument of class member functions. // // RUN: %clangxx_xray -g -std=c++11 %s -o %t // RUN: rm log-args-this-* || true // RUN: XRAY_OPTIONS="patch_premain=true verbosity=1 xray_logfile_base=log-args-this-" %run %t // // XFAIL: FreeBSD || arm || aarch64 || mips // UNSUPPORTED: powerpc64l...
Fix supposely failing test for FreeBSD
[XRay] Fix supposely failing test for FreeBSD One test was marked as XFAIL for FreeBSD however still running when launching make check-xray Reviewers: krytarowski, vitalybuka Reviewed By: dberris Differential Revision: https://reviews.llvm.org/D47622 git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@333733 91...
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
db11ca8caa9f3209effe309f44e314f366894281
src/openvrupdateslavecallback.cpp
src/openvrupdateslavecallback.cpp
/* * openvrupdateslavecallback.cpp * * Created on: Dec 18, 2015 * Author: Chris Denham */ #include "openvrupdateslavecallback.h" void OpenVRUpdateSlaveCallback::updateSlave(osg::View& view, osg::View::Slave& slave) { if (m_cameraType == LEFT_CAMERA) { m_device->updatePose(); } osg::Vec3 position = m...
/* * openvrupdateslavecallback.cpp * * Created on: Dec 18, 2015 * Author: Chris Denham */ #include "openvrupdateslavecallback.h" void OpenVRUpdateSlaveCallback::updateSlave(osg::View& view, osg::View::Slave& slave) { if (m_cameraType == LEFT_CAMERA) { m_device->updatePose(); } osg::Vec3 position = m...
Fix problem that caused left and right eyes to have the exact same image.
Fix problem that caused left and right eyes to have the exact same image.
C++
bsd-3-clause
ChrisDenham/osgopenvrviewer
007ae02de7db219aa31ccc08caf6c94827072742
Cheese.cpp
Cheese.cpp
/Od /I "P:\PROJEKTE\GERTICO\Win32VC80\ACE+TAO-5.6.5" /I "C:\FHG\GERTICO" /I "..\..\..\..\LevelTwo\common\include" /I "..\..\..\..\LevelCommonIEEE\include" /I "..\..\..\..\LevelCommonIEEE\include\RTI_1516" /I "..\..\..\..\LevelTwo\phase_III" /D "_WIN32_" /D "WIN32" /D "_UT_DEBUG" /D "_NDEBUG" /D "_CONSOLE" /...
/Od /I "P:\PROJEKTE\GERTICO\Win32VC80\ACE+TAO-5.6.5" /I "C:\FHG\GERTICO" /I "..\..\..\..\LevelTwo\common\include" /I "..\..\..\..\LevelCommonIEEE\include" /I "..\..\..\..\LevelCommonIEEE\include\RTI_1516" /I "..\..\..\..\LevelTwo\phase_III" /D "_WIN32_" /D "WIN32" /D "_UT_DEBUG" /D "_NDEBUG" /D "_CONSOLE" /...
Use maus instead of mouse.
Use maus instead of mouse.
C++
apache-2.0
ducana/Cheese
72ece6968507fe2b8baae7e10a9aec3bc148026a
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: http://src.chromium.org/svn/trunk/src@50173 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: d6445a62eda4b2f2090813edd9d64bbf21f55868
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...
ebf5bf2d19cb9c59615082b8f6fc75fdb1b2dc79
browser/api/atom_api_recorded_object.cc
browser/api/atom_api_recorded_object.cc
// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_API_ATOM_API_RECORDED_OBJECT_ #define ATOM_BROWSER_API_ATOM_API_RECORDED_OBJECT_ #include "browser/api/atom_api_recorded_object.h" #incl...
// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_API_ATOM_API_RECORDED_OBJECT_ #define ATOM_BROWSER_API_ATOM_API_RECORDED_OBJECT_ #include "browser/api/atom_api_recorded_object.h" #incl...
Remove recorded object from registry in desturctor.
Remove recorded object from registry in desturctor.
C++
mit
trigrass2/electron,farmisen/electron,Floato/electron,dahal/electron,twolfson/electron,thompsonemerson/electron,aliib/electron,faizalpribadi/electron,gerhardberger/electron,thingsinjars/electron,noikiy/electron,adamjgray/electron,shockone/electron,kikong/electron,benweissmann/electron,bwiggs/electron,aecca/electron,the-...
c9d93d187adb1a8abbba1d5bebac2b6a0182c640
src/miniMAT/miniMAT.cpp
src/miniMAT/miniMAT.cpp
#include <iostream> #include <string> #include <memory> #include <Lexer.hpp> #include <Parser.hpp> #include <Visitors.hpp> int main() { std::string input_line; double ans = 0; std::cout << "miniMAT: It's like MATLAB, but smaller." << std::endl; std::cout << "Copyright (C) 2014 Federico Menozzi" << ...
#include <iostream> #include <string> #include <memory> #include <Lexer.hpp> #include <Parser.hpp> #include <Visitors.hpp> int main() { std::string input_line; double ans = 0; std::cout << "miniMAT: It's like MATLAB, but smaller." << std::endl; std::cout << "Copyright (C) 2014 Federico Menozzi" << ...
Adjust output when user enters 'ans'
Adjust output when user enters 'ans'
C++
mit
fmenozzi/miniMAT,fmenozzi/miniMAT
74dddd49162382879f70cf035e124e9510e49cb5
test/Modules/pr21547.cpp
test/Modules/pr21547.cpp
// RUN: rm -rf %t // RUN: %clang_cc1 -I%S/Inputs/PR21547 -verify %s // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/PR21547 -verify %s #include "Inputs/PR21547/FirstHeader.h" //expected-no-diagnostics
// RUN: rm -rf %t // RUN: %clang_cc1 -I%S/Inputs/PR21547 -verify %s // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/PR21547 -verify %s // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/PR21547 -emit-llvm-only %s #include "Inputs/PR21547/Firs...
Add -emit-llvm-only to the regression test for PR21547.
Add -emit-llvm-only to the regression test for PR21547. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@264939 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
ce5983a19640083e52829a7692c7936933118bb0
src/libOL_test/main.cpp
src/libOL_test/main.cpp
// Copyright (c) 2014 Andrew Toulouse. // Distributed under the MIT License. #include <iostream> #include <fstream> #include <libOL/File.h> int main(int argc, const char * argv[]) { std::ifstream ifs("/Users/toulouse/code/lol/lmao/rofl/22923174.rofl", std::ios::binary); libol::File file = libol::File::deco...
// Copyright (c) 2014 Andrew Toulouse. // Distributed under the MIT License. #include <iostream> #include <fstream> #include <libOL/File.h> #include <libOL/Chunks.h> int main(int argc, const char * argv[]) { std::ifstream ifs("/Users/toulouse/code/lol/lmao/rofl/22923174.rofl", std::ios::binary); libol::Fil...
Add some test code for decryption
Add some test code for decryption
C++
mit
loldevs/libOL,loldevs/libOL
ac171513cc8696710958f7ea1620e35cee488662
test/unit/main.cc
test/unit/main.cc
#define CAF_TEST_NO_MAIN #include <caf/test/unit_test_impl.hpp> #include "vast/announce.h" int main(int argc, char** argv) { vast::announce_types(); return caf::test::main(argc, argv); }
#define CAF_TEST_NO_MAIN #include <caf/test/unit_test_impl.hpp> #include "vast/announce.h" #include "vast/config.h" #ifdef VAST_MACOS #include <sys/resource.h> // setrlimit #endif namespace { bool adjust_resource_limits() { #ifdef VAST_MACOS auto rl = ::rlimit{4096, 8192}; auto result = ::setrlimit(RLIMIT_NOFIL...
Increase low default ulimit -n of 256 on Mac OS
Increase low default ulimit -n of 256 on Mac OS The low default ulimit -n of 256 on Mac OS caused unit tests to fail.
C++
bsd-3-clause
vast-io/vast,vast-io/vast,mavam/vast,pmos69/vast,mavam/vast,pmos69/vast,mavam/vast,vast-io/vast,vast-io/vast,pmos69/vast,vast-io/vast,mavam/vast,pmos69/vast
133ca80b6b7451bf0af1bed7ef6f3928a0a1d5a3
test/SemaCXX/delete.cpp
test/SemaCXX/delete.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: cp %s %t // RUN: %clang_cc1 -fixit -x c++ %t // RUN: FileCheck -input-file=%t %s void f(int a[10][20]) { // CHECK: delete[] a; delete a; // expected-warning {{'delete' applied to a pointer-to-array type}} }
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: cp %s %t // RUN: %clang_cc1 -fixit -x c++ %t // RUN: %clang_cc1 -E -o - %t | FileCheck %s void f(int a[10][20]) { // CHECK: delete[] a; delete a; // expected-warning {{'delete' applied to a pointer-to-array type}} }
Fix a test case where FileCheck is used to test code corrected by -fixit. If the code file is not run through the preproccessor to remove comments, then FileCheck will match the strings within the CHECK commands rendering the test useless.
Fix a test case where FileCheck is used to test code corrected by -fixit. If the code file is not run through the preproccessor to remove comments, then FileCheck will match the strings within the CHECK commands rendering the test useless. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@141911 91177308-0d34-0410...
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
3d32bb03685c78a0327d741501b15fe40c4f980b
test/CodeGenCXX/debug-info-pubtypes.cpp
test/CodeGenCXX/debug-info-pubtypes.cpp
// REQUIRES: x86-64-registered-target // RUN: %clang -cc1 -triple x86_64-apple-darwin10 -g -fno-limit-debug-info -S %s -o %t // RUN: FileCheck %s < %t //CHECK: .asciz "G" //CHECK-NEXT: .long 0 //CHECK-NEXT: Lpubtypes_end1: class G { public: void foo(); }; void G::foo() { }
// REQUIRES: x86-64-registered-target // RUN: %clang -cc1 -triple x86_64-apple-darwin10 -g -fno-limit-debug-info -S %s -o %t // RUN: FileCheck %s < %t // FIXME: This testcase shouldn't rely on assembly emission. //CHECK: Lpubtypes_begin1: //CHECK: .asciz "G" //CHECK-NEXT: .long 0 //CHECK-NEXT: Lpubtype...
Update test for llvm assembly output change. Also add a fixme that this shouldn't be relying on assembly emission.
Update test for llvm assembly output change. Also add a fixme that this shouldn't be relying on assembly emission. For the record we should check the metadata output from the front end and then check in the backend that such a thing emits a pubtypes entry. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@151851 9...
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
900305fcff57864feab4546c4686f02318eb91a3
source/main.cpp
source/main.cpp
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <3ds.h> #include "constants.h" #include "patches.h" #define log(...) fprintf(stderr, __VA_ARGS__) int main(int argc, char** argv) { gfxInitDefault(); consoleInit(GFX_TOP, NULL); GetVersionConstants(); PatchSrvAccess(); svcBackdoor(Patch...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <3ds.h> #include "constants.h" #include "patches.h" #define log(...) fprintf(stderr, __VA_ARGS__) int main(int argc, char** argv) { gfxInitDefault(); consoleInit(GFX_TOP, NULL); GetVersionConstants(); PatchSrvAccess(); // ONLY UNCOMMENT AFT...
Disable process patching by default (probably wasn't a good idea to patch with all zeroes)
Disable process patching by default (probably wasn't a good idea to patch with all zeroes)
C++
apache-2.0
archshift/service-patch,archshift/service-patch
b21c11d655027ae439be83af84f9bce3ab0f728b
test/SemaCXX/cxx11-crashes.cpp
test/SemaCXX/cxx11-crashes.cpp
// RUN: %clang_cc1 -std=c++11 -verify %s // rdar://12240916 stack overflow. namespace rdar12240916 { struct S2 { S2(const S2&); S2(); }; struct S { // expected-note {{not complete}} S x; // expected-error {{incomplete type}} S2 y; }; S foo() { S s; return s; } struct S3; // expected-note {{forward decl...
// RUN: %clang_cc1 -std=c++11 -verify %s // rdar://12240916 stack overflow. namespace rdar12240916 { struct S2 { S2(const S2&); S2(); }; struct S { // expected-note {{not complete}} S x; // expected-error {{incomplete type}} S2 y; }; S foo() { S s; return s; } struct S3; // expected-note {{forward decl...
Add a test case for the stack overflow in rdar://12542261
Add a test case for the stack overflow in rdar://12542261 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@166858 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
ece61ad3df7b6bbf3104318dde66677cac57f13a
src/core.cpp
src/core.cpp
/* * Copyright (C) 2017 Incognito * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
/* * Copyright (C) 2017 Incognito * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Fix crash when player connects
Fix crash when player connects Fixes #248.
C++
apache-2.0
samp-incognito/samp-streamer-plugin,samp-incognito/samp-streamer-plugin
02ab7cd3bd04ae288f73cb1d3641ed1542a28995
test/lsan/TestCases/leak_check_before_thread_started.cc
test/lsan/TestCases/leak_check_before_thread_started.cc
// Regression test for http://llvm.org/bugs/show_bug.cgi?id=21621 // This test relies on timing between threads, so any failures will be flaky. // RUN: LSAN_BASE="use_stacks=0:use_registers=0" // RUN: %clangxx_lsan %s -std=c++11 -o %t // RUN: %run %t #include <thread> #include <chrono> void func() { std::this_th...
// Regression test for http://llvm.org/bugs/show_bug.cgi?id=21621 // This test relies on timing between threads, so any failures will be flaky. // RUN: LSAN_BASE="use_stacks=0:use_registers=0" // RUN: %clangxx_lsan %s -o %t // RUN: %run %t #include <assert.h> #include <pthread.h> #include <stdlib.h> #include <unistd.h>...
Rewrite the test from r223419 to not use C++11.
[LSan] Rewrite the test from r223419 to not use C++11. This was causing build failures on llvm-clang-lld-x86_64-centos-6.5 for some reason. Anyway, the new way is better because we no longer rely on std::thread implementation details. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@223480 91177308-0d34-0410-b5e6...
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
79c684f789ab15b37d1b12a866c5275f00aa159f
src/main.cpp
src/main.cpp
/// \file main.cpp #include "HelloTriangleApplication.hpp" #include "VDeleter.hpp" // waf-generated header #include "config.hpp" #define DOCTEST_CONFIG_IMPLEMENT #include "doctest.h" #define GLFW_INCLUDE_VULKAN #include <GLFW/glfw3.h> #include <iostream> #include <string> int main(int argc, char* argv[]) { i...
/// \file main.cpp #include "HelloTriangleApplication.hpp" #include "VDeleter.hpp" // waf-generated header #include "config.hpp" #define DOCTEST_CONFIG_IMPLEMENT #include "doctest.h" #define GLFW_INCLUDE_VULKAN #include <GLFW/glfw3.h> #include <iostream> #include <string> int main(int argc, char* argv[]) { i...
Bring doctest code to better doctest 1.1 usage
Bring doctest code to better doctest 1.1 usage
C++
mit
atimholt/going-through-Vulkan-Tutorial
35ec4235a2e8e198b8b949100cd1c5f5cdaf8ae9
ReQL-expr-test.cpp
ReQL-expr-test.cpp
#include "ReQL-test.hpp" #include "catch.h" using namespace ReQL; TEST_CASE("Connection", "[c++][connect]") { Connection conn = connect(); REQUIRE(conn.isOpen()); } TEST_CASE("Expr", "[c][expr]") { SECTION("string") { _ReQL_Op_t string; const uint32_t size = 12; uint8_t buf[size] = "Hello World...
#include "ReQL-test.hpp" #include "catch.h" #include <limits> using namespace ReQL; TEST_CASE("Connection", "[c++][connect]") { Connection conn = connect(); REQUIRE(conn.isOpen()); } TEST_CASE("Expr", "[c][expr]") { SECTION("number") { _ReQL_Op_t num; const double val = 42.0; _reql_number_init...
Add number c constructor tests.
Add number c constructor tests.
C++
apache-2.0
grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core
109c982726c5aac856de36955f2d06f1840fcbdf
Tests/src/main.cpp
Tests/src/main.cpp
#include <cppunit/BriefTestProgressListener.h> #include <cppunit/CompilerOutputter.h> #include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/TestResult.h> #include <cppunit/TestResultCollector.h> #include <cppunit/TestRunner.h> #include "Suite.h" #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 #define WIN32_...
#include <cppunit/BriefTestProgressListener.h> #include <cppunit/CompilerOutputter.h> #include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/TestResult.h> #include <cppunit/TestResultCollector.h> #include <cppunit/TestRunner.h> #include "Suite.h" #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 #define WIN32_...
Write test results to a file for easier examination
Write test results to a file for easier examination
C++
mit
digimatic/ogre,digimatic/ogre,digimatic/ogre,digimatic/ogre,digimatic/ogre,digimatic/ogre,digimatic/ogre
8536bb41e1adc69058fd59e63e8eff561ec1c320
src/main.cpp
src/main.cpp
// // main.cpp // MacGPusher // // Created by Nyxouf on 6/23/13. // Copyright (c) 2013 MacGeneration. All rights reserved. // #include "global.hpp" #include "MMGAPNSConnection.hpp" #include "MMGDevice.hpp" #include "MMGPayload.hpp" int main(int argc, const char* argv[]) { // Create a device object const unsign...
// // main.cpp // MacGPusher // // Created by Nyx0uf on 6/23/13. // Copyright (c) 2013 MacGeneration. All rights reserved. // #include "global.hpp" #include "MMGAPNSConnection.hpp" #include "MMGDevice.hpp" #include "MMGPayload.hpp" int main(int argc, const char* argv[]) { // Create a device object const unsign...
Update example to use private key password
Update example to use private key password
C++
bsd-2-clause
gfxcc/MacGPusher,MacGeneration/MacGPusher
2dd7ab4b9331379d918bf48d84997ede2ef9b7f6
ouzel/network/Network.cpp
ouzel/network/Network.cpp
// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #ifdef _WIN32 #define NOMINMAX #include <winsock2.h> #else #include <sys/socket.h> #include <netinet/in.h> #include <poll.h> #endif #include "Network.hpp" #include "utils/Log.hpp" namespace ouzel { namespace network { Net...
// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #ifdef _WIN32 #define NOMINMAX #include <winsock2.h> #else #include <sys/socket.h> #include <netinet/in.h> #include <poll.h> #endif #include "Network.hpp" #include "utils/Log.hpp" namespace ouzel { namespace network { Net...
Initialize Winsock only on Windows
Initialize Winsock only on Windows
C++
unlicense
elnormous/ouzel,elvman/ouzel,elnormous/ouzel,elvman/ouzel,elnormous/ouzel
da840009c653fa967efe26d5e4f4193f8412c414
test/Database.cpp
test/Database.cpp
#include "Database.h" #include <iostream> #include <sqlite3.h> #include <string> #include <vector> using namespace std; Database::Database(string filename) { char filenameCharArray[100]; strcpy(filenameCharArray, filename.c_str()); sqlite3_open(filenameCharArray, &db); } Database::~Database() { sqlite3_close(...
#include "Database.h" #include <iostream> #include <sqlite3.h> #include <string> #include <vector> using namespace std; Database::Database(string filename) { char filenameCharArray[100]; strcpy(filenameCharArray, filename.c_str()); sqlite3_open(filenameCharArray, &db); } Database::~Database() { sqlite3_close(...
Add error messages for sqlite
Add error messages for sqlite
C++
mit
honestcomrade/grade-plus
4d944f8bf34905ceed8e33794d177e694602e69f
third-party/qt/examples/texteditor/mdi_background.cpp
third-party/qt/examples/texteditor/mdi_background.cpp
#include <QtGui> #include "mdi_background.h" void QMdiAreaWBackground::resizeEvent(QResizeEvent *reEvent) { size = reEvent->size(); resize(size); QMdiArea::resizeEvent(reEvent); } void QMdiAreaWBackground::resize(QSize& size) { setBackground(i.scaled(size));//,Qt::KeepAspectRatio); } ...
#include <QtGui> #include "mdi_background.h" void QMdiAreaWBackground::resizeEvent(QResizeEvent *reEvent) { size = reEvent->size(); resize(size); QMdiArea::resizeEvent(reEvent); } void QMdiAreaWBackground::resize(QSize& size) { /* XXX Conversion of image to the ARGB32 format is placed here because of setBackroung...
Change of wallpaper works on vnc
qt: Change of wallpaper works on vnc
C++
bsd-2-clause
vrxfile/embox-trik,mike2390/embox,Kefir0192/embox,gzoom13/embox,Kakadu/embox,vrxfile/embox-trik,abusalimov/embox,mike2390/embox,vrxfile/embox-trik,Kefir0192/embox,embox/embox,embox/embox,Kefir0192/embox,gzoom13/embox,embox/embox,gzoom13/embox,abusalimov/embox,abusalimov/embox,abusalimov/embox,Kakadu/embox,Kefir0192/emb...
3fb2decd5abaf2539d89837c15812c02e3374442
src/Bull/Core/System/Win32/ClipboardImpl.cpp
src/Bull/Core/System/Win32/ClipboardImpl.cpp
#include <cstring> #include <Bull/Core/Log/Log.hpp> #include <Bull/Core/Support/Win32/Windows.hpp> #include <Bull/Core/System/Win32/ClipboardImpl.hpp> namespace Bull { namespace prv { void ClipboardImpl::flush() { if(OpenClipboard(nullptr)) { EmptyClipb...
#include <cstring> #include <Bull/Core/Exception/Throw.hpp> #include <Bull/Core/Support/Win32/Win32Error.hpp> #include <Bull/Core/Support/Win32/Windows.hpp> #include <Bull/Core/System/Win32/ClipboardImpl.hpp> namespace Bull { namespace prv { void ClipboardImpl::flush() { if(OpenCli...
Throw Win32Error in case of failure instead of just writing the log
[Core/Clipboard] Throw Win32Error in case of failure instead of just writing the log
C++
mit
siliace/Bull
30d7f2d34beff381771a76519ee1865f98d21990
programs/one/src/main.cpp
programs/one/src/main.cpp
//======================================================================= // Copyright Baptiste Wicht 2013-2014. // 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 2013-2014. // 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) //================================================...
Modify one to use system call
Modify one to use system call
C++
mit
wichtounet/thor-os,wichtounet/thor-os
db5ea859782e583a209c8c4dd1920d0d14b0a6f8
src/test/test_gridcoin.cpp
src/test/test_gridcoin.cpp
#define BOOST_TEST_MODULE Gridcoin Test Suite #include <boost/test/unit_test.hpp> #include "db.h" #include "main.h" #include "wallet.h" CWallet* pwalletMain; CClientUIInterface uiInterface; extern bool fPrintToConsole; extern void noui_connect(); struct TestingSetup { TestingSetup() { fPrintToDebugger =...
#define BOOST_TEST_MODULE Gridcoin Test Suite #include <boost/test/unit_test.hpp> #include "db.h" #include "main.h" #include "wallet.h" CWallet* pwalletMain; CClientUIInterface uiInterface; extern bool fPrintToConsole; extern void noui_connect(); struct TestingSetup { TestingSetup() { fPrintToDebugger =...
Use fast block indices for faster test runner loading.
Use fast block indices for faster test runner loading.
C++
mit
theMarix/Gridcoin-Research,theMarix/Gridcoin-Research,Lederstrumpf/Gridcoin-Research,gridcoin/Gridcoin-Research,fooforever/Gridcoin-Research,theMarix/Gridcoin-Research,Lederstrumpf/Gridcoin-Research,caraka/gridcoinresearch,Git-Jiro/Gridcoin-Research,theMarix/Gridcoin-Research,Git-Jiro/Gridcoin-Research,Git-Jiro/Gridcoi...
1b418d7c8f21c9b1c019f02e485b1c3c287dabca
src/throw_out_of_range.cpp
src/throw_out_of_range.cpp
#include <Arduino.h> //TODO(edcoyne): remove this when it is present upstream. // Currently this is needed to use std::string on Arduino. namespace std{ void __throw_out_of_range(const char* str) { panic(); } }
#include <Arduino.h> //TODO(edcoyne): remove this when it is present upstream. // Currently this is needed to use std::string on Arduino. namespace std{ void __attribute__((weak)) __throw_out_of_range(const char* str) { panic(); } }
Change function to weak declaration
Change function to weak declaration
C++
apache-2.0
FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino
5785f9451e1ecb2e8f28fc9e62183de08c456fce
proctor/src/main.cpp
proctor/src/main.cpp
#include <omp.h> #include "proctor/detector.h" #include "proctor/proctor.h" #include "proctor/scanning_model_source.h" using pcl::proctor::Detector; //using pcl::proctor::ProctorMPI; using pcl::proctor::Proctor; using pcl::proctor::ScanningModelSource; Detector detector; Proctor proctor; int main(int argc, char **a...
#include <omp.h> #include "proctor/detector.h" #include "proctor/proctor.h" #include "proctor/scanning_model_source.h" using pcl::proctor::Detector; //using pcl::proctor::ProctorMPI; using pcl::proctor::Proctor; using pcl::proctor::ScanningModelSource; Detector detector; Proctor proctor; int main(int argc, char **a...
Use sleep instead of a busy-wait while loop to retain the output.
Use sleep instead of a busy-wait while loop to retain the output. git-svn-id: 5398946ba177a3e438c2dae55e2cdfc2fb96c905@3867 a9d63959-f2ad-4865-b262-bf0e56cfafb6
C++
bsd-3-clause
jeppewalther/kinfu_segmentation,cascheberg/pcl,chenxingzhe/pcl,DaikiMaekawa/pcl,zavataafnan/pcl-truck,chatchavan/pcl,shivmalhotra/pcl,starius/pcl,shangwuhencc/pcl,mikhail-matrosov/pcl,soulsheng/pcl,soulsheng/pcl,starius/pcl,closerbibi/pcl,jakobwilm/pcl,shangwuhencc/pcl,damienjadeduff/pcl,jakobwilm/pcl,damienjadeduff/pc...
5033c2347c46f434c027210c101e4975cad2bd5a
src/version.cpp
src/version.cpp
/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that ...
/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that ...
Add conditional preprocessor for nomlib's install prefix under Windows
Add conditional preprocessor for nomlib's install prefix under Windows
C++
bsd-2-clause
i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib
a9a9f75146074b41cf6b73de1ef19037521bee56
src/bindings/javascript/logger.cpp
src/bindings/javascript/logger.cpp
#include <emscripten/bind.h> #include "libcellml/logger.h" using namespace emscripten; EMSCRIPTEN_BINDINGS(libcellml_logger) { class_<libcellml::Logger>("Logger") .function("addIssue", &libcellml::Logger::addIssue) .function("removeAllIssues", &libcellml::Logger::removeAllIssues) .func...
#include <emscripten/bind.h> #include "libcellml/logger.h" using namespace emscripten; EMSCRIPTEN_BINDINGS(libcellml_logger) { class_<libcellml::Logger>("Logger") .function("addIssue", &libcellml::Logger::addIssue) .function("removeAllIssues", &libcellml::Logger::removeAllIssues) .func...
Add missing API from Javascript bindings Logger class.
Add missing API from Javascript bindings Logger class.
C++
apache-2.0
hsorby/libcellml,cellml/libcellml,nickerso/libcellml,cellml/libcellml,cellml/libcellml,hsorby/libcellml,nickerso/libcellml,nickerso/libcellml,nickerso/libcellml,hsorby/libcellml,hsorby/libcellml,cellml/libcellml
849c17ec040bf439f3b6751b573bc7e12f2654a7
chrome/browser/extensions/extension_infobar_apitest.cc
chrome/browser/extensions/extension_infobar_apitest.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" #if defined(TOOLKI...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" #if defined(TOOLKI...
Disable ExtensionApiTest.Infobars on Mac, as it is flaky.
Disable ExtensionApiTest.Infobars on Mac, as it is flaky. BUG=60990 TEST=ExtensionApiTest.Infobars Review URL: http://codereview.chromium.org/6798005 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@80553 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
e438dc7b163dd575d7ec34fe1c8c374162a0423a
sm_common/test/assert_macros_always_assert.cpp
sm_common/test/assert_macros_always_assert.cpp
#include <gtest/gtest.h> #ifndef NDEBUG #define NDEBUG #endif #define SM_ALWAYS_ASSERT #include <sm/assert_macros.hpp> TEST(SmCommonTestSuite,testAssertMacrosAlwaysAssert) { SM_DEFINE_EXCEPTION(Exception, std::runtime_error); EXPECT_THROW( SM_ASSERT_TRUE_DBG(Exception, false, ""), Exception); }
#include <gtest/gtest.h> #ifndef NDEBUG #define NDEBUG #endif #ifndef SM_ALWAYS_ASSERT #define SM_ALWAYS_ASSERT #endif #include <sm/assert_macros.hpp> TEST(SmCommonTestSuite,testAssertMacrosAlwaysAssert) { SM_DEFINE_EXCEPTION(Exception, std::runtime_error); EXPECT_THROW( SM_ASSERT_TRUE_DBG(Exception, false, ""), ...
Add another guard against multiple definition
Add another guard against multiple definition
C++
bsd-3-clause
ethz-asl/Schweizer-Messer,ethz-asl/Schweizer-Messer,ethz-asl/Schweizer-Messer,ethz-asl/Schweizer-Messer
8c8edda786e8f22c1f7f5af4db5a1195bbf4d3fa
src/tibb/NativeLabelObject.cpp
src/tibb/NativeLabelObject.cpp
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #include "NativeLabelObject.h" #include <bb/cascades/Color> #include <QColor> Na...
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #include "NativeLabelObject.h" #include <bb/cascades/Color> #include <QColor> Na...
Set multiline on labels default
[TIMOB-14131] Set multiline on labels default
C++
apache-2.0
appcelerator/titanium_mobile_blackberry,appcelerator/titanium_mobile_blackberry,appcelerator/titanium_mobile_blackberry,appcelerator/titanium_mobile_blackberry,appcelerator/titanium_mobile_blackberry,appcelerator/titanium_mobile_blackberry
e4688f1c5af589bdb3d218a5b63bc07f34dcf9c8
chromium_src/chrome/browser/browser_process.cc
chromium_src/chrome/browser/browser_process.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/browser_process.h" #include "chrome/browser/printing/print_job_manager.h" #include "ui/base/l10n/l10n_util.h" BrowserProces...
// 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/browser_process.h" #include "chrome/browser/printing/print_job_manager.h" #include "ui/base/l10n/l10n_util.h" BrowserProces...
Reorder BrowserProcess constructor to avoid invalid memory
Reorder BrowserProcess constructor to avoid invalid memory
C++
mit
miniak/electron,gerhardberger/electron,leethomas/electron,twolfson/electron,brenca/electron,leethomas/electron,gerhardberger/electron,the-ress/electron,thompsonemerson/electron,miniak/electron,renaesop/electron,bpasero/electron,rreimann/electron,aliib/electron,wan-qy/electron,shiftkey/electron,tonyganch/electron,electr...
2187828f1707d38a00f0f3b0b7f31c49cb8dd153
src/main.cc
src/main.cc
#include <algorithm> #include "env.hh" #include "parse_args.hh" #include "consumer.hh" using namespace std; using namespace boost::filesystem; int main(int argc, char** argv) { argc--; argv++; vector<path> files; string playlist; parse_args(argc, argv, files, playlist); Consumer consumer(st...
#include <algorithm> #include "env.hh" #include "parse_args.hh" #include "consumer.hh" using namespace std; using namespace boost::filesystem; int main(int argc, char** argv) { argc--; argv++; vector<path> files; string playlist; parse_args(argc, argv, files, playlist); Consumer consumer(st...
Revert "Move each `file` into the `Consumer::consume` method."
Revert "Move each `file` into the `Consumer::consume` method." This reverts commit 5a9c22010bef1772dfd0efd379822582c3d3b9b0. Undo so previous edit works correctly
C++
mpl-2.0
czipperz/mvmusic
fe0b88d2919338e15eb946399210488f975cc7ee
modules/video/perf/perf_tvl1optflow.cpp
modules/video/perf/perf_tvl1optflow.cpp
#include "perf_precomp.hpp" using namespace std; using namespace cv; using namespace perf; typedef TestBaseWithParam< pair<string, string> > ImagePair; pair<string, string> impair(const char* im1, const char* im2) { return make_pair(string(im1), string(im2)); } PERF_TEST_P(ImagePair, OpticalFlowDual_TVL1, testi...
#include "perf_precomp.hpp" using namespace std; using namespace cv; using namespace perf; typedef TestBaseWithParam< pair<string, string> > ImagePair; pair<string, string> impair(const char* im1, const char* im2) { return make_pair(string(im1), string(im2)); } PERF_TEST_P(ImagePair, OpticalFlowDual_TVL1, testi...
Set sanity threshold for TVL1 optical flow to 0.5
Set sanity threshold for TVL1 optical flow to 0.5
C++
bsd-3-clause
apavlenko/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv
9a5ceb6c885c56a5f06372e448b60d0fe1e9f8fe
src/lpc17xx/canwrite.cpp
src/lpc17xx/canwrite.cpp
#include "bitfield.h" #include "canutil_lpc17xx.h" #include "canutil.h" #include "canwrite.h" #include "log.h" #include <stdbool.h> void copyToMessageBuffer(uint64_t source, uint8_t* a, uint8_t* b) { for(int i = 0, j = 4; i < 3 && j < 8; i++, j++) { a[i] = nthByte(source, i); b[i] = nthByte(source,...
#include "bitfield.h" #include "canutil_lpc17xx.h" #include "canutil.h" #include "canwrite.h" #include "log.h" #include <stdbool.h> void copyToMessageBuffer(uint64_t source, uint8_t* a, uint8_t* b) { for(int i = 0, j = 4; i < 4 && j < 8; i++, j++) { a[3 - i] = nthByte(source, j); b[3 - i] = nthByte...
Fix byte order when writing CAN messages on LPC17xx.
Fix byte order when writing CAN messages on LPC17xx. Fixed #87.
C++
bsd-3-clause
mgiannikouris/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,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware
53b24ebc37e6edd14ed31e2ef7cbed094ee87e51
test/SemaCXX/uninit-variables-conditional.cpp
test/SemaCXX/uninit-variables-conditional.cpp
// RUN: %clang_cc1 -fsyntax-only -Wconditional-uninitialized -fsyntax-only %s -verify class Foo { public: Foo(); ~Foo(); operator bool(); }; int bar(); int baz(); int init(double *); // This case flags a false positive under -Wconditional-uninitialized because // the destructor in Foo fouls about the minor bit...
// RUN: %clang_cc1 -fsyntax-only -Wconditional-uninitialized -fsyntax-only %s -verify class Foo { public: Foo(); ~Foo(); operator bool(); }; int bar(); int baz(); int init(double *); // This case flags a false positive under -Wconditional-uninitialized because // the destructor in Foo fouls about the minor bit...
Fix test to test the right thing.
Fix test to test the right thing. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@127803 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
aab1883320b06c9543f452639014f2b258bded6a
demo/main.cpp
demo/main.cpp
#include <QApplication> #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
#include <QApplication> #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
Enable HiDPI for the demo app.
Enable HiDPI for the demo app.
C++
mpl-2.0
RazrFalcon/libresvg,RazrFalcon/libresvg,RazrFalcon/libresvg,RazrFalcon/libresvg,RazrFalcon/libresvg,RazrFalcon/libresvg
b88a7c539369de2defd02c780f60e402003de865
test/Sema/builtins-x86.cpp
test/Sema/builtins-x86.cpp
// RUN: %clang_cc1 -triple=x86_64-apple-darwin -fsyntax-only -verify %s // // Ensure that when we use builtins in C++ code with templates that compute the // valid immediate, the dead code with the invalid immediate doesn't error. typedef short __v8hi __attribute__((__vector_size__(16))); template <int Imm> __v8hi te...
// RUN: %clang_cc1 -triple=x86_64-apple-darwin -fsyntax-only -verify %s // // Ensure that when we use builtins in C++ code with templates that compute the // valid immediate, the dead code with the invalid immediate doesn't error. // expected-no-diagnostics typedef short __v8hi __attribute__((__vector_size__(16))); t...
Fix a tiny bug in my test case in r335309 by marking that we don't expect any diagnostics.
[x86] Fix a tiny bug in my test case in r335309 by marking that we don't expect any diagnostics. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@335310 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
b4a89998b2c8945ccb05d5d1ab7b93e98d695057
test/SemaCXX/composite-pointer-type.cpp
test/SemaCXX/composite-pointer-type.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s class Base { }; class Derived1 : public Base { }; class Derived2 : public Base { }; void f0(volatile Base *b, Derived1 *d1, const Derived2 *d2) { if (b > d1) return; if (d1 <= b) return; if (b > d2) return; if (d1 >= d2) // expected-error{{comparison of ...
// RUN: %clang_cc1 -fsyntax-only -verify %s class Base { }; class Derived1 : public Base { }; class Derived2 : public Base { }; void f0(volatile Base *b, Derived1 *d1, const Derived2 *d2) { if (b > d1) return; if (d1 <= b) return; if (b > d2) return; if (d1 >= d2) // expected-error{{comparison of ...
Add test case from PR5763
Add test case from PR5763 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@93190 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
924aabb5c40c8e9399047885fb0ad55183d2a7d8
test/correctness/bounds_of_monotonic_math.cpp
test/correctness/bounds_of_monotonic_math.cpp
#include <Halide.h> #include <stdio.h> using namespace Halide; int main(int argc, char **argv) { Func f; Var x; ImageParam input(Float(32), 1); f(x) = input(cast<int>(round(0.3f * ceil(0.4f * floor(x * 22.5f))))); f.infer_input_bounds(10); Image<float> in = input.get(); int correct = ...
#include <Halide.h> #include <stdio.h> using namespace Halide; int main(int argc, char **argv) { Func f; Var x; ImageParam input(Float(32), 1); f(x) = input(cast<int>(ceil(0.3f * ceil(0.4f * floor(x * 22.5f))))); f.infer_input_bounds(10); Image<float> in = input.get(); int correct = 2...
Remove roundf from test because windows
Remove roundf from test because windows
C++
mit
myrtleTree33/Halide,smxlong/Halide,myrtleTree33/Halide,fengzhyuan/Halide,jiawen/Halide,damienfir/Halide,psuriana/Halide,smxlong/Halide,jiawen/Halide,rodrigob/Halide,tdenniston/Halide,mcanthony/Halide,ronen/Halide,mcanthony/Halide,dougkwan/Halide,myrtleTree33/Halide,myrtleTree33/Halide,kenkuang1213/Halide,tdenniston/Hal...
92cf4efcbb6a0d0304edf3a3bf601d8fd0da051d
tests/src/main.cpp
tests/src/main.cpp
#define CATCH_CONFIG_RUNNER #include <catch.hpp> #include <iostream> #include <mipp.h> int main(int argc, char* argv[]) { std::cout << "MIPP tests" << std::endl; std::cout << "----------" << std::endl << std::endl; std::cout << "Instr. type: " << mipp::InstructionType << std::endl; std::cou...
#define CATCH_CONFIG_RUNNER #include <catch.hpp> #include <iostream> #include <mipp.h> int main(int argc, char* argv[]) { std::cout << "MIPP tests" << std::endl; std::cout << "----------" << std::endl << std::endl; std::cout << "Instr. type: " << mipp::InstructionType << std::endl; std::cou...
Put back the extensions display.
Put back the extensions display.
C++
mit
aff3ct/MIPP,aff3ct/MIPP,aff3ct/MIPP
d8339f9efc6a56af239a5230beb70de5121764b4
amx_profiler/statistics_writer.cpp
amx_profiler/statistics_writer.cpp
// Copyright (c) 2013, Zeex // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and th...
// Copyright (c) 2013, Zeex // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and th...
Fix members of StatisticsWriter not being initialized
Fix members of StatisticsWriter not being initialized
C++
bsd-2-clause
Zeex/samp-plugin-profiler,Zeex/samp-plugin-profiler
480dbd76c9720e1fd895abd15bf5828f3b2c1411
vespalib/src/tests/testapp-debug/debugtest.cpp
vespalib/src/tests/testapp-debug/debugtest.cpp
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/test_kit.h> using namespace vespalib; void testDebug() { TEST_DEBUG("lhs.out", "rhs.out"); EXPECT_EQUAL("a\n" "b\n" "c\n", "a\...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/test_kit.h> using namespace vespalib; void testDebug() { TEST_DEBUG("lhs.out", "rhs.out"); EXPECT_EQUAL(string("a\n" "b\n" "...
Stop trying to compare arrays (deprecated in C++20)
Stop trying to compare arrays (deprecated in C++20)
C++
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
154b5e1fc77162eeca243bf9b24b81defdb31db2
chrome/browser/metrics/variations/variations_request_scheduler.cc
chrome/browser/metrics/variations/variations_request_scheduler.cc
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/metrics/variations/variations_request_scheduler.h" namespace chrome_variations { namespace { // Time between seed fetches,...
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/metrics/variations/variations_request_scheduler.h" namespace chrome_variations { namespace { // Time between seed fetches,...
Use the correct VariationsRequestScheduler on iOS.
Use the correct VariationsRequestScheduler on iOS. We were missing an ifdef iOS and for some reason the iOS build wasn't failing due to multiple Create() functions existing. This change ensures that VariationsRequestSchedulerMobile (already being compiled on iOS) gets used. BUG=248262 Review URL: https://chromiumco...
C++
bsd-3-clause
mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,ondra-novak/chromium.src,hgl888/chromium-crosswalk,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,Jonekee/chromium.src,Jonekee/chromium.src,jaruba/chromium.src,jaruba/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_ch...
6f3c1879effff03d909725f1fc61ad70276e9309
webkit/glue/webview_unittest.cc
webkit/glue/webview_unittest.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "testing/gtest/include/gtest/gtest.h" #include "third_party/WebKit/WebKit/chromium/public/WebView.h" #include "webkit/tools/test_shell/t...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "testing/gtest/include/gtest/gtest.h" #include "third_party/WebKit/WebKit/chromium/public/WebView.h" #include "webkit/tools/test_shell/t...
Rename unit test: WebViewTest.GetContentAsPlainText -> WebViewTest.ActiveState.
Rename unit test: WebViewTest.GetContentAsPlainText -> WebViewTest.ActiveState. I'm responsible for misnaming it in the first place (cut-and-paste error). Oops. BUG=23501 TEST=none Review URL: http://codereview.chromium.org/414034 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@32612 0039d316-1c4b-4281-b951-d8...
C++
bsd-3-clause
markYoungH/chromium.src,jaruba/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,hgl888/chromium-crosswalk...
bfbe338a893dde6ba65b2bed6ffea1652a592819
test/Index/coroutines.cpp
test/Index/coroutines.cpp
// RUN: c-index-test -test-load-source all -c %s -fsyntax-only -target x86_64-apple-darwin9 -fcoroutines-ts -std=c++1z -I%S/../SemaCXX/Inputs | FileCheck %s #include "std-coroutine.h" using std::experimental::suspend_always; using std::experimental::suspend_never; struct promise_void { void get_return_object(); s...
// RUN: c-index-test -test-load-source all -c %s -fsyntax-only -target x86_64-apple-darwin9 -fcoroutines-ts -std=c++1z -I%S/../SemaCXX/Inputs | FileCheck %s #include "std-coroutine.h" using std::experimental::suspend_always; using std::experimental::suspend_never; struct promise_void { void get_return_object(); s...
Fix incorrect column numbers in test from r350282.
Fix incorrect column numbers in test from r350282. After the test was reformatted using clang-format the numbers became invalid. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@350283 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
c44e288cb52d00585e6972cad355ac3372399749
src/main_state.cpp
src/main_state.cpp
#include "main_state.hpp" #include "system_movement.hpp" #include "system_draw.hpp" #include "entityx/entityx.h" #include <SDL2/SDL.h> MainState::MainState(Game *game) : m_game(game) {} MainState::~MainState(){} int MainState::init() { m_systems.add<MovementSystem>(); m_systems.add<DrawSystem>(m_game); return ...
#include "main_state.hpp" #include "system_movement.hpp" #include "system_draw.hpp" #include "entityx/entityx.h" #include <SDL2/SDL.h> MainState::MainState(Game *game) : m_game(game) {} MainState::~MainState(){} int MainState::init() { m_systems.add<MovementSystem>(); m_systems.add<DrawSystem>(m_game); m_syste...
Configure entityx systems after init
Configure entityx systems after init
C++
mit
svenstaro/bgj09,svenstaro/bgj09
88d4028a5a44e3fd7d0d66fe187b197ffccccf4e
src/arch/dotproduct.cpp
src/arch/dotproduct.cpp
/////////////////////////////////////////////////////////////////////// // File: dotproduct.h // Description: Native dot product function. // // (C) Copyright 2018, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. /...
/////////////////////////////////////////////////////////////////////// // File: dotproduct.h // Description: Native dot product function. // // (C) Copyright 2018, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. /...
Enable pragma for SIMD also when _OPENMP is defined
Enable pragma for SIMD also when _OPENMP is defined Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
C++
apache-2.0
tesseract-ocr/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,stweil/tesseract,stweil/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,UB-Mannheim/tesseract,stweil/tesseract,amitdo/tesseract,...
ce8aaf3b9ff437e73ad7c9e17adb3a9e3f56756a
src/main.cpp
src/main.cpp
// This is the starting point // #include <iostream> int main() { std::string greeting("Welcome to RGrep-CPP"); std::cout << greeting << std::endl; std::string firstInputString; std::string secondInputString; std::cout << "Enter the first string" << std::endl; std::cin >> firstInputString; ...
// This is the starting point // #include <iostream> #include <fstream> #include <sstream> int main() { std::string greeting("Welcome to RGrep-CPP"); std::cout << greeting << std::endl; std::string firstInputString; std::string secondInputString; std::cout << "Enter the first string" << std::endl;...
Add funtionality to match in files
Add funtionality to match in files
C++
bsd-2-clause
ambidextrousTx/RGrep-CPP
f51c8ea9de12ee498f41bd58038a6bb907e5f54b
lib/System/Darwin/Path.cpp
lib/System/Darwin/Path.cpp
//===- llvm/System/Darwin/Path.cpp - Linux Path Implementation --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
//===- llvm/System/Darwin/Path.cpp - Linux Path Implementation --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
Correct the dynamic lib suffix on Darwin.
Correct the dynamic lib suffix on Darwin. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16293 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/l...
113c68fd4166abfc52244c69658e13ef9b5ac320
src/frontend/DialogPassword.cpp
src/frontend/DialogPassword.cpp
/* * DialogPassword.cpp * * Created on: 01.01.2017 * Author: felix */ #include <QtWidgets/QHBoxLayout> #include <QtWidgets/QLabel> #include <QtWidgets/QVBoxLayout> #include <frontend/DialogPassword.h> namespace Flix { DialogPassword::DialogPassword(QWidget *parent, Qt::WindowFlags flags): QDialog(pare...
/* * DialogPassword.cpp * * Created on: 01.01.2017 * Author: felix */ #include <QtWidgets/QHBoxLayout> #include <QtWidgets/QLabel> #include <QtWidgets/QVBoxLayout> #include <frontend/DialogPassword.h> namespace Flix { DialogPassword::DialogPassword(QWidget *parent, Qt::WindowFlags flags): QDialog(pare...
Enforce focus for the line edit.
Enforce focus for the line edit.
C++
mit
gflix/LdapNetworkAdmin,gflix/LdapNetworkAdmin
e093404ee9fc6fc169304b51ec2f78ffafef16b9
test/CXX/lex/lex.literal/lex.ext/p10.cpp
test/CXX/lex/lex.literal/lex.ext/p10.cpp
// RUN: %clang_cc1 -std=c++11 -verify %s using size_t = decltype(sizeof(int)); void operator "" wibble(const char *); // expected-warning {{user-defined literal suffixes not starting with '_' are reserved; no literal will invoke this operator}} void operator "" wibble(const char *, size_t); // expected-warning {{user-...
// RUN: %clang_cc1 -std=c++11 -verify %s using size_t = decltype(sizeof(int)); void operator "" wibble(const char *); // expected-warning {{user-defined literal suffixes not starting with '_' are reserved; no literal will invoke this operator}} void operator "" wibble(const char *, size_t); // expected-warning {{user-...
Remove a test FIXME for a case which is already fixed.
Remove a test FIXME for a case which is already fixed. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@152349 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
1d88f00a8c0f86510c6916dc3b89358ae74b90a0
gpu/src/GrGLDefaultInterface_none.cpp
gpu/src/GrGLDefaultInterface_none.cpp
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ struct GrGLInterface; const GrGLInterface* GrGLDefaultInterface() { return NULL; }
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGLInterface.h" const GrGLInterface* GrGLDefaultInterface() { return NULL; }
Include GrGLInterface.h instead of forward declaring, since we have to get NULL defined anyway.
Include GrGLInterface.h instead of forward declaring, since we have to get NULL defined anyway.
C++
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
8e642c9d00180261ee277a307618770b75b31d46
server/proxy/filters/filter_demo.c
server/proxy/filters/filter_demo.c
#include "filters_api.h" static PF_FILTER_RESULT demo_filter_keyboard_event(connectionInfo* info, void* param) { proxyKeyboardEventInfo* event_data = (proxyKeyboardEventInfo*) param; return FILTER_PASS; } static PF_FILTER_RESULT demo_filter_mouse_event(connectionInfo* info, void* param) { proxyMouseEventInfo* even...
#include "filters_api.h" static PF_FILTER_RESULT demo_filter_keyboard_event(connectionInfo* info, void* param) { proxyKeyboardEventInfo* event_data = (proxyKeyboardEventInfo*) param; return FILTER_PASS; } static PF_FILTER_RESULT demo_filter_mouse_event(connectionInfo* info, void* param) { proxyMouseEventInfo* even...
Add return statement in demo_filter.c
server/proxy: Add return statement in demo_filter.c
C
apache-2.0
RangeeGmbH/FreeRDP,mfleisz/FreeRDP,erbth/FreeRDP,ivan-83/FreeRDP,akallabeth/FreeRDP,mfleisz/FreeRDP,FreeRDP/FreeRDP,awakecoding/FreeRDP,cedrozor/FreeRDP,chipitsine/FreeRDP,DavBfr/FreeRDP,Devolutions/FreeRDP,chipitsine/FreeRDP,FreeRDP/FreeRDP,Devolutions/FreeRDP,ivan-83/FreeRDP,ivan-83/FreeRDP,FreeRDP/FreeRDP,ivan-83/Fr...
63a9cf2dc50b7c83f99b95c1e7e63985c6e52343
WatchKit/SpecHelper/WatchKit/TestableWKInterfaceController.h
WatchKit/SpecHelper/WatchKit/TestableWKInterfaceController.h
#import <Foundation/Foundation.h> @class WKInterfaceController; @class FakeInterfaceController; @protocol TestableWKInterfaceController <NSObject> - (void)awakeWithContext:(id)context; - (void)willActivate; - (void)didDeactivate; @optional - (void)pushControllerWithName:(NSString *)name context:(id)context; - (v...
#import <Foundation/Foundation.h> @class WKInterfaceController; @class FakeInterfaceController; @protocol TestableWKInterfaceController <NSObject> - (void)awakeWithContext:(id)context; - (void)willActivate; - (void)didDeactivate; @optional - (NSArray *)sent_messages; - (void)pushControllerWithName:(NSString *)na...
Add sent_messages array to testable controller interface
Add sent_messages array to testable controller interface
C
mit
pivotaltracker/PivotalCoreKit,gudatcomputers/PivotalCoreKit,gudatcomputers/PivotalCoreKit,briancroom/PivotalCoreKit,mjstallard/PivotalCoreKit,pivotal/PivotalCoreKit,idoru/PivotalCoreKit,idoru/PivotalCoreKit,joemasilotti/PivotalCoreKit,jfuchs/PivotalCoreKit,joemasilotti/PivotalCoreKit,jfuchs/PivotalCoreKit
939eaa5c04c3953bf85a361d14f14a9f8cbb5fe0
chapter1/temp-rev.c
chapter1/temp-rev.c
#include <stdio.h> main() { float fahr, celsius; float lower, upper, step; lower = 0; upper = 300; step = 20; celsius = lower; printf("%6s\t%3s\n", "celsius", "fahr"); while (celsius <= upper) { fahr = celsius * (9.0/5.0) + 32.0; printf("%6.1f\t%3.0f\n", celsius, fah...
Add chapter 1 extra exercises
Add chapter 1 extra exercises
C
mit
melonmanchan/k-and-r
ba621e3b245e0ca2dcd80aeb1d51f617feceac51
searchcore/src/vespa/searchcore/proton/server/executor_threading_service_stats.h
searchcore/src/vespa/searchcore/proton/server/executor_threading_service_stats.h
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/util/threadstackexecutorbase.h> namespace proton { class ExecutorThreadingServiceStats { public: using Stats = vespalib::ThreadStackExecutorBase::Stats; pr...
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <cstddef> #include <vespa/vespalib/util/executor_stats.h> namespace proton { /* * This class contains executor stats for the executors used by a * document db. */ class Exec...
Add class comment. Reduce indirections in using statement.
Add class comment. Reduce indirections in using statement.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
cdd4ecd92bd54375dccc90633994626932a8c2c5
test/test_parser_one.c
test/test_parser_one.c
#include "test_parser.h" void one_or_more_one(void **state) { grammar_t *grammar = grammar_init( non_terminal("One"), rule_init( "One", one_or_more( terminal("11") ) ), 1 ); parse_t *result = parse("11", grammar); assert_non_null(result); assert_int_equal(result->lengt...
#include "test_parser.h" void one_or_more_one(void **state) { grammar_t *grammar = grammar_init( non_terminal("One"), rule_init( "One", one_or_more( terminal("11") ) ), 1 ); parse_result_t *result = parse("11", grammar); assert_non_null(result); assert_true(is_success(r...
Use new API on one or more tests
Use new API on one or more tests
C
mit
Baltoli/peggo,Baltoli/peggo
23f49ce7ef21eae1fc27b42f772e274f4f5ad81f
JPEGReadWriter2Plugin/Error.c
JPEGReadWriter2Plugin/Error.c
#include <stdio.h> #include "jpeglib.h" #include <setjmp.h> struct error_mgr2 { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct error_mgr2 * error_ptr2; /* * Here's the routine that will replace the standard error_exit method: */ void error...
#include <stdio.h> #include "jpeglib.h" #include <setjmp.h> struct error_mgr2 { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct error_mgr2 * error_ptr2; /* * Here's the routine that will replace the standard error_exit method: */ void error...
Remove nasty character at end of file that prevents compiles
Remove nasty character at end of file that prevents compiles git-svn-id: f18ccec24f938f15aa42574278fe0cc52f637e81@72 fa1542d4-bde8-0310-ad64-8ed1123d492a
C
mit
peteruhnak/pharo-vm,bencoman/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,timfel/squeakvm,OpenSmalltalk/vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,b...
bdb9422317e0066978477b7e9c7b3063699aeb90
shared/types.h
shared/types.h
#pragma once #ifdef bool #undef bool #endif typedef char bool; #define true 1 #define false 0 typedef struct carp_thread* carp_thread_t; typedef void(*carp_thread_routine)(void* arg); typedef struct carp_library* carp_library_t; /* Init/shutdown */ void carp_platform_init(); void carp_platform_shutdown(); /* --...
#pragma once #ifdef bool #undef bool #endif typedef int bool; #define true 1 #define false 0 typedef struct carp_thread* carp_thread_t; typedef void(*carp_thread_routine)(void* arg); typedef struct carp_library* carp_library_t; /* Init/shutdown */ void carp_platform_init(); void carp_platform_shutdown(); /* ---...
Change size of bool to 4
Change size of bool to 4
C
apache-2.0
carp-lang/Carp,eriksvedang/Carp,eriksvedang/Carp,carp-lang/Carp,carp-lang/Carp
5f177712db6e42a07bb02fb4bbb75d7584559b1f
src/utils/FMatrix3x3.h
src/utils/FMatrix3x3.h
//Copyright (c) 2020 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #ifndef FMATRIX3X3_H #define FMATRIX3X3_H namespace cura { class Point3; class FPoint3; class FMatrix3x3 { public: double m[3][3]; FMatrix3x3(); Point3 apply(const FPoint3& p) const; }; } //names...
//Copyright (c) 2020 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #ifndef FMATRIX3X3_H #define FMATRIX3X3_H namespace cura { class Point3; class FPoint3; /*! * A 3x3 linear transformation matrix. */ class FMatrix3x3 { public: /*! * The matrix data, row-endian. * * The f...
Document the transformation matrix class
Document the transformation matrix class Brief, but just the gist of what people need to know to use this class. Contributes to issue CURA-7118.
C
agpl-3.0
Ultimaker/CuraEngine,Ultimaker/CuraEngine
bc07a64f87d24b573e1661b84ffb8d35288469ab
src/tests/unit/dictionary/linear_hash/test_linear_hash.h
src/tests/unit/dictionary/linear_hash/test_linear_hash.h
#ifndef TEST_LINEAR_HASH_H_ #define TEST_LINEAR_HASH_H_ #include <stdio.h> #include <string.h> #include <limits.h> #include "../../../planckunit/src/planck_unit.h" #include "../../../../dictionary/linear_hash/linear_hash.h" #ifdef __cplusplus extern "C" { #endif void runalltests_linear_hash(); #ifdef __cplusplus ...
#ifndef TEST_LINEAR_HASH_H_ #define TEST_LINEAR_HASH_H_ #include <stdio.h> #include <string.h> #include <limits.h> #include <math.h> #include "../../../planckunit/src/planck_unit.h" #include "../../../../dictionary/linear_hash/linear_hash.h" #ifdef __cplusplus extern "C" { #endif void runalltests_linear_hash(); #i...
Add include for math.h to lin hash
Add include for math.h to lin hash
C
bsd-3-clause
iondbproject/iondb,iondbproject/iondb
3ded2006e60424de131b6ef246268ebe86b4299d
test/CodeGen/vector.c
test/CodeGen/vector.c
// RUN: clang-cc -emit-llvm %s -o - typedef short __v4hi __attribute__ ((__vector_size__ (8))); void f() { __v4hi A = (__v4hi)0LL; } __v4hi x = {1,2,3}; __v4hi y = {1,2,3,4}; typedef int x __attribute((vector_size(16))); int a() { x b; return b[2LL]; }
// RUN: clang-cc -emit-llvm %s -o - typedef short __v4hi __attribute__ ((__vector_size__ (8))); void f() { __v4hi A = (__v4hi)0LL; } __v4hi x = {1,2,3}; __v4hi y = {1,2,3,4}; typedef int vty __attribute((vector_size(16))); int a() { vty b; return b[2LL]; }
Fix silly mistake in test.
Fix silly mistake in test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@67897 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
33d12078e7e5a82f790781845d043d70511642dd
test/cunit/test_log.c
test/cunit/test_log.c
/********************************************************************* * * test_log.c: Riak C Unit Testing logger * * Copyright (c) 2007-2014 Basho Technologies, Inc. All Rights Reserved. * * This file is provided to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * exce...
Add GET message integration test - Make unit testing write fuller test objects - Make the number of buckets/keys in dummy object configurable - Add several helper functions like comparing binaries and objects - Improve error reporting in testing async callbacks
Add GET message integration test - Make unit testing write fuller test objects - Make the number of buckets/keys in dummy object configurable - Add several helper functions like comparing binaries and objects - Improve error reporting in testing async callbacks
C
apache-2.0
basho-labs/riak-c-client,basho-labs/riak-c-client,basho-labs/riak-c-client,basho-labs/riak-c-client
ddbf27ab3cd541c7bff8781cca68e44acabf1285
UnitTests/Source/GITTestHelper.h
UnitTests/Source/GITTestHelper.h
#import <Foundation/Foundation.h> #import <GHUnit/GHUnit.h> //#import <SenTestingKit/SenTestingKit.h> #define COCOAGIT_REPO @"." #define TEST_RESOURCES_PATH @"../../UnitTests/Resources/" #define DOT_GIT TEST_RESOURCES_PATH @"dot_git/" #define DELTA_REF_PACK TEST_RESOURCES_PATH @"packs/cg-0.2.5-deltaref-be5a15ac583f7e...
#import <Foundation/Foundation.h> #import <GHUnit/GHUnit.h> //#import <SenTestingKit/SenTestingKit.h> #define COCOAGIT_REPO @"." #define TEST_RESOURCES_PATH @"../../UnitTests/Resources/" #define TEST_FIXTURES_PATH TEST_RESOURCES_PATH @"fixtures/" #define DOT_GIT TEST_RESOURCES_PATH @"dot_git/" #define DELTA_REF_PACK ...
Add 'fixtures' path definition to test helper.
Add 'fixtures' path definition to test helper.
C
mit
geoffgarside/cocoagit,geoffgarside/cocoagit
0592fa31377e77d62caa48ef1fb41896d6eea791
sketches/utils/blinkm_write_script/light_script_aim.h
sketches/utils/blinkm_write_script/light_script_aim.h
/** * "Aim lights" light script * * Turn on all the lights for 30 seconds so they can be aimed */ // Copied from todbot // format of light script lines: duration, command, arg1,arg2,arg3 typedef struct _blinkm_script_line { uint8_t dur; uint8_t cmd[4]; // cmd,arg1,arg2,arg3 } blinkm_script_line; // start ...
Set one LED group on for light aiming
Set one LED group on for light aiming
C
mit
wmadill/grant-lighting,wmadill/grant-lighting
d1947ce509d745f32db6b7fecc03dc9c778b9350
SecurityPkg/Include/Guid/TcgPhysicalPresenceStorageData.h
SecurityPkg/Include/Guid/TcgPhysicalPresenceStorageData.h
/** @file Define the variable data structures used for physical presence storage data. Copyright (c) 2016, Intel Corporation. All rights reserved. <BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distributi...
Add definition for Physical Presence storage flag.
SecurityPkg: Add definition for Physical Presence storage flag. Reviewed-by: Jiewen Yao <364a90bfebd1f362ebb7b48e4bf8ec010adef203@intel.com> Reviewed-by: Chao Zhang <fed49a7a524fbe970930fd44cd2de5a9d4952d81@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <fa9eeec52367040ac98...
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
285a6f65380d98a239a952dece7d2cc60d694dcb
A/02/15/task2.c
A/02/15/task2.c
#include <stdio.h> #include <string.h> char* find(char *haystack, char needle); int main(){ char input[401]={'\0'}, symbol, *result; fgets(input, 401, stdin); symbol=getchar(); result=find(input, symbol); if(result!=NULL){ printf("%ld", result - input); } else{ printf("-1"); } return 0; } char*...
#include <stdio.h> #include <string.h> char* find(char *haystack, char needle); int main(){ char input[401]={'\0'}, symbol, *result; fgets(input, 401, stdin); symbol=getchar(); result=find(input, symbol); if(result!=NULL){ printf("%d", (int)(result - input)); } else{ printf("-1"); } return 0; } ...
Add closing bracket to open function in task 02 homework 02
Add closing bracket to open function in task 02 homework 02
C
mit
elsys/po-homework
884ccfb98a4cf5c1f12fb5b71271a238379e1d96
examples/src/example_reduce.c
examples/src/example_reduce.c
/* * example2.c * * Created on: 3 May 2016 * Author: nick */ #include "ndm.h" #include <mpi.h> #include <stdio.h> void recvFunction(void*, NDM_Metadata); int main(int argc, char* argv[]) { int provided; MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &provided); ndmInit(); char uuid[10]; int...
/* * example2.c * * Created on: 3 May 2016 * Author: nick */ #include "ndm.h" #include <mpi.h> #include <stdio.h> void recvFunction(void*, NDM_Metadata); void additiveRecvFunction(void*, NDM_Metadata); int main(int argc, char* argv[]) { int provided; MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, ...
Reduce example uses additive calls
Reduce example uses additive calls
C
mit
mesham/ndm,mesham/ndm
10491403f35d32d63537fb6409fb6282d9e480d3
src/main/cpp/JniHelpersCommon.h
src/main/cpp/JniHelpersCommon.h
#ifndef __JniHelpersCommon_h__ #define __JniHelpersCommon_h__ // Disable some annoying compiler warnings #if WIN32 #pragma warning(disable: 4996) // "Security" warnings for vsnprintf #endif #if WIN32 #define EXPORT __declspec(dllexport) #else #define EXPORT #endif #include <jni.h> #define kTypeInt "I" #define kType...
#ifndef __JniHelpersCommon_h__ #define __JniHelpersCommon_h__ // Disable some annoying compiler warnings #if WIN32 #pragma warning(disable: 4996) // "Security" warnings for vsnprintf #endif #if WIN32 #define EXPORT __declspec(dllexport) #else #define EXPORT #endif #include <jni.h> #define kTypeInt "I" #define kType...
Fix type signatures for some java bulit-ins
Fix type signatures for some java bulit-ins
C
apache-2.0
spotify/JniHelpers,spotify/JniHelpers,spotify/JniHelpers,spotify/JniHelpers
842d01a134bbd2f62308d0cfe8c1587575fbbef5
Code/Maveric_myCopter/src/config/MAVsettings/MAV102_conf_imu_rev4.h
Code/Maveric_myCopter/src/config/MAVsettings/MAV102_conf_imu_rev4.h
/* * conf_imu_rev4.h * * Created: 20/11/2013 22:21:49 * Author: sfx */ #ifndef CONF_IMU_REV4_H_ #define CONF_IMU_REV4_H_ #define RAW_GYRO_X 0 #define RAW_GYRO_Y 1 #define RAW_GYRO_Z 2 #define RAW_ACC_X 0 #define RAW_ACC_Y 1 #define RAW_ACC_Z 2 #define RAW_COMPASS_X 2 #define RAW_COMPASS_Y 0 #define RAW_COM...
Add calibration file for board J2 (MAV102)
Add calibration file for board J2 (MAV102)
C
bsd-3-clause
lis-epfl/MAVRIC_Library,lis-epfl/MAVRIC_Library,lis-epfl/MAVRIC_Library,gburri/MAVRIC_Library,gburri/MAVRIC_Library,gburri/MAVRIC_Library
27c11cd3fd8666e659e1eaad071e6a825216b0f1
include/synaptics.h
include/synaptics.h
/* * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without * fee, provided that the above copyright notice appear in all copies * and that both that copyright notice and this permission notice * appear in supporting documentation, and ...
Put SynapticsSHM back into the driver to be able to use synclient -m once again
Put SynapticsSHM back into the driver to be able to use synclient -m once again
C
mit
felipejfc/xserver-xorg-input-synaptics,sencer/synaptics,felipejfc/xserver-xorg-input-synaptics,felipejfc/xserver-xorg-input-synaptics,sencer/synaptics