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
118529f321e279639a8fc28e5f6afd8248fa2900
src/plugins/crypto/compile_botan.cpp
src/plugins/crypto/compile_botan.cpp
/** * @file * * @brief compilation test for checking if the Botan library is available. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <botan/init.h> int main (int argc, char ** argv) { Botan::LibraryInitializer::initialize (""); return 0; }
/** * @file * * @brief compilation test for checking if the Botan library is available. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <botan/init.h> int main (void) { Botan::LibraryInitializer::initialize (""); return 0; }
Fix detection of lib if we use `-Werror`
Botan: Fix detection of lib if we use `-Werror` Before this update detecting Botan would fail, if we treated warnings as errors (`-Werror`). The cause of this problem was that compiling `compile_botan.cpp` produced warnings about unused variables.
C++
bsd-3-clause
ElektraInitiative/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,e1528532/libelektra,BernhardDenner/libelektra,petermax2/libelektra,mpranj/libelektra,e1528532/libelektra,petermax2/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,ElektraInitiative...
6ecd10163743607291c815111ac35e1d186c5dba
src/jcon/json_rpc_debug_logger.cpp
src/jcon/json_rpc_debug_logger.cpp
#include "json_rpc_debug_logger.h" #include <QDebug> namespace jcon { void JsonRpcDebugLogger::logInfo(const QString& message) { qDebug().noquote() << message; } void JsonRpcDebugLogger::logWarning(const QString& message) { qDebug().noquote() << message; } void JsonRpcDebugLogger::logError(const QString& m...
#include "pch.h" #include "json_rpc_debug_logger.h" #include <QDebug> namespace jcon { void JsonRpcDebugLogger::logInfo(const QString& message) { qDebug().noquote() << message; } void JsonRpcDebugLogger::logWarning(const QString& message) { qDebug().noquote() << message; } void JsonRpcDebugLogger::logError...
Add inclusion of precompiled header
Add inclusion of precompiled header
C++
mit
joncol/jcon-cpp,zeromem88/jcon-cpp,joncol/jcon,joncol/jcon,joncol/jcon,joncol/jcon-cpp,zeromem88/jcon-cpp,joncol/jcon-cpp,zeromem88/jcon-cpp
8c52ec03086980cd855418928f76965a071ada3f
test/CodeGenCXX/merge-functions.cpp
test/CodeGenCXX/merge-functions.cpp
// REQUIRES: x86-registered-target // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O1 -fmerge-functions -emit-llvm -o - -x c++ < %s | FileCheck %s // Basic functionality test. Function merging doesn't kick in on functions that // are too simple. struct A { virtual int f(int x, int *p) { return x ? *p : 1; } virtu...
// REQUIRES: x86-registered-target // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O1 -fmerge-functions -emit-llvm -o - -x c++ < %s | FileCheck %s -implicit-check-not=_ZN1A1gEiPi // Basic functionality test. Function merging doesn't kick in on functions that // are too simple. struct A { virtual int f(int x, int *p...
Update clang test for r350939
[MergeFunc] Update clang test for r350939 In r350939, the MergeFunc pass learned to erase duplicate functions which are discardable if unused. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@350952 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 1e1d2639a45788c521e9476987031db6e5b65650)
C++
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
5b19b0bb3ffd390d16ba8ff188d097f9bb22384b
test/std/containers/sequences/array/begin.pass.cpp
test/std/containers/sequences/array/begin.pass.cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
Add checks for unique value of array<T, 0>.begin() and array<T, 0>.end()
[libcxx] Add checks for unique value of array<T, 0>.begin() and array<T, 0>.end() The standard section [array.zero] requires the return value of begin() and end() methods of a zero-sized array to be unique. Eric Fiselier clarifies: "That unique value cannot be null, and must be properly aligned". This patch adds check...
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
af06420cc14edb4808c061639965d5c18ef32873
tests/SRGBTest.cpp
tests/SRGBTest.cpp
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkSRGB.h" #include "SkTypes.h" #include "Test.h" #include <math.h> static uint8_t linear_to_srgb(float l) { return (uint8_t)sk_linear_to_srgb(Sk4f{l})[0]; } DE...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkSRGB.h" #include "SkTypes.h" #include "Test.h" #include <math.h> static uint8_t linear_to_srgb(float l) { return (uint8_t)sk_linear_to_srgb(Sk4f{l})[0]; } DE...
Test sk_linear_to_srgb() less exhaustively in Debug mode.
Test sk_linear_to_srgb() less exhaustively in Debug mode. It's pretty slow when not optimized... it can take ~5 minutes to run. This makes it take ~2 seconds on my laptop. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2221803002 Review-Url: https://codereview.chromium.org/2221803002
C++
bsd-3-clause
aosp-mirror/platform_external_skia,google/skia,google/skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,HalCanary/skia-hc,rubenvb/skia,rubenvb/skia,rubenvb/skia,rubenvb/skia,HalCanary/s...
f82eb2fa665b7d619c3809daca40bf4b4d037c93
src/client/main.cc
src/client/main.cc
#include <iostream> #include <QApplication> #include <QPushButton> #include "src/common/Game.h" int main(int argc, char *argv[]) { std::cout << "Welcome to the client interface of Bomberman :)" << std::endl; // This part should be moved to another class, that's just for test QApplication app(argc, argv); ...
#include <iostream> #include <QApplication> #include <QPushButton> #include "src/common/Game.h" #include "easylogging++.h" _INITIALIZE_EASYLOGGINGPP int main(int argc, char *argv[]) { std::cout << "Welcome to the client interface of Bomberman :)" << std::endl; _START_EASYLOGGINGPP(argc, argv); LOG(INFO)...
Add an example of how to use the logging library.
Add an example of how to use the logging library. See the complete documentation at https://github.com/easylogging/easyloggingpp.
C++
mit
Neki/bomberman,Neki/bomberman
f62bf1a461a6bdf6e5b2a5dca1e95b8d86256fa3
Main.cpp
Main.cpp
// Native C++ Libraries #include <iostream> #include <string> // C++ Interpreter Libraries #include <Console.h> using namespace std; int main() { RESTART: string input = ""; getline(cin, input); goto RESTART; }
// Native C++ Libraries #include <iostream> #include <string> #include <sstream> #include <vector> // C++ Interpreter Libraries #include <Console.h> using namespace std; int main() { RESTART: string input = ""; getline(cin, input); goto RESTART; }
Add stringstream and vector library to main source.
Add stringstream and vector library to main source. In order for some of the algorithms to perform their duties. They need these libraries included.
C++
mit
Project-CPP/CPP-Interpreter
542f1ede9ddac71d3b60f5e7317387e587e7e138
test/cts/device_feature_test_cts.cc
test/cts/device_feature_test_cts.cc
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Increase core count for PerfettoDeviceFeatureTest
Increase core count for PerfettoDeviceFeatureTest Increase core count limit for CtsPerfettoTestCases PerfettoDeviceFeatureTest#TestMaxCpusForAtraceChmod to support future devices with more cores Bug: b/203651019 Test: atest CtsPerfettoTestCases Change-Id: I2246d9ef10e553df3f9d12ccde78d8009f3fd7cd (cherry picked from...
C++
apache-2.0
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto
06999042bac2c507a6db2cd73b3a2c4cbe596b40
test/hook_tests.cc
test/hook_tests.cc
/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ #include "catch.hpp" #include "hooks.hh" static int i; void inc_i(vick::contents&) { ++i; } TEST_CASE("hook proc", "[hook]") { vick::hook h; vick::contents c; h.add(inc_i); int li = i; h.p...
/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ #include "catch.hpp" #include "hooks.hh" static int i; static void inc_i(vick::contents&) { ++i; } TEST_CASE("hook proc", "[hook]") { vick::hook h; vick::contents c; h.add(inc_i); int li = i; ...
Make testing utility function `static`
Make testing utility function `static`
C++
mpl-2.0
czipperz/vick,czipperz/vick
42a2c1d231781d2fcff4cb4ee7be23ea8191e8da
tests/GLInterfaceValidationTest.cpp
tests/GLInterfaceValidationTest.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. */ #include "Test.h" // This is a GPU-backend specific test #if SK_SUPPORT_GPU #include "GrContextFactory.h" DEF_GPUTEST(GLInterfaceValidation, reporter, factory) { for (i...
/* * 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 "Test.h" // This is a GPU-backend specific test #if SK_SUPPORT_GPU #include "GrContextFactory.h" DEF_GPUTEST(GLInterfaceValidation, reporter, factory) { for (i...
Revert "One more ASAN fix."
Revert "One more ASAN fix." This reverts commit 409fd66a5afcef5f165f7ccec7c3473add231752. We don't expect to pass this test until the ASAN bots are correctly configured, and can run GPU tests. BUG=skia: TBR=robertphillips@google.com Review URL: https://codereview.chromium.org/1080393003
C++
bsd-3-clause
BrokenROM/external_skia,boulzordev/android_external_skia,rubenvb/skia,todotodoo/skia,OneRom/external_skia,geekboxzone/mmallow_external_skia,geekboxzone/mmallow_external_skia,vanish87/skia,PAC-ROM/android_external_skia,aosp-mirror/platform_external_skia,nvoron23/skia,AOSP-YU/platform_external_skia,geekboxzone/mmallow_ex...
78ffbf4288721137bae146bd85b5f6ee964ff2e0
clustering_coef_bu.cpp
clustering_coef_bu.cpp
#include "bct.h" #include <cassert> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> /* * Computes the clustering coefficient for a binary undirected graph. Results * are returned in a vector where each element is the clustering coefficient of * the corresponding node. */ gsl_vector* bct::clustering_coef_b...
#include "bct.h" #include <cassert> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> /* * Computes the clustering coefficient for a binary undirected graph. Results * are returned in a vector where each element is the clustering coefficient of * the corresponding node. */ gsl_vector* bct::clustering_coef_b...
Undo r13; clustering coefficient should ignore loops.
Undo r13; clustering coefficient should ignore loops.
C++
mit
lheric/bct-cpp,jjurgiel/bct-cpp,curibe/bct-cpp,lheric/bct-cpp,Beastmaster/bct-cpp,curibe/bct-cpp,devuci/bct-cpp,jjurgiel/bct-cpp,curibe/bct-cpp,lheric/bct-cpp,jjurgiel/bct-cpp,devuci/bct-cpp,jjurgiel/bct-cpp,devuci/bct-cpp,lheric/bct-cpp,Beastmaster/bct-cpp,curibe/bct-cpp,devuci/bct-cpp,Beastmaster/bct-cpp,Beastmaster/...
28e9e323a0b3e5f341a48c73170d17b38458f8ef
cpp/util/testing.cc
cpp/util/testing.cc
#include "util/testing.h" #include <event2/thread.h> #include <gflags/gflags.h> #include <glog/logging.h> #include <gtest/gtest.h> namespace cert_trans { namespace test { void InitTesting(const char* name, int* argc, char*** argv, bool remove_flags) { // Change the defaults. Can be overridden on c...
#include "util/testing.h" #include <event2/thread.h> #include <gflags/gflags.h> #include <glog/logging.h> #include <gtest/gtest.h> namespace cert_trans { namespace test { void InitTesting(const char* name, int* argc, char*** argv, bool remove_flags) { ::testing::InitGoogleTest(argc, *argv); goog...
Stop overriding the logging behaviour in tests.
Stop overriding the logging behaviour in tests.
C++
apache-2.0
plietar/certificate-transparency,pphaneuf/certificate-transparency,aeijdenberg/certificate-transparency,ksmaheshkumar/certificate-transparency,phad/certificate-transparency,plietar/certificate-transparency,benlaurie/certificate-transparency,rep/certificate-transparency,plietar/certificate-transparency,ksmaheshkumar/cer...
7b6c5edb380244de7528f56dfd1cceb660eda5a3
cached_calculations.cpp
cached_calculations.cpp
#include <iostream> using namespace std; long long solve(int n) { long long *res = new long long[n + 1]; switch (n) { case 1: return 1; case 2: return 2; case 3: return 3; case 4: return 6; } res[1] = 1; res[2] = 2; res[3] = 3; res[4] = 6; for (int i = 5; i <= n; i++) { ...
#include <iostream> using namespace std; long long solve_1(int n) { long long *res = new long long[n + 1]; switch (n) { case 1: return 1; case 2: return 2; case 3: return 3; case 4: return 6; } res[1] = 1; res[2] = 2; res[3] = 3; res[4] = 6; for (int i = 5; i <= n; i++) ...
Add a solution with better space cost to "Cached Calculations".
Add a solution with better space cost to "Cached Calculations".
C++
mit
clasnake/hackermeter,clasnake/hackermeter
b585191948da25131a38ca4db61e0af3559bd046
hash.cpp
hash.cpp
#include "hash.h" #include <QClipboard> #include <QGuiApplication> #include <QQmlContext> #include <QStringList> const int password_length = 30; Hash::Hash(QQmlContext *c, QObject *parent) : QObject(parent), hash(QCryptographicHash::Sha3_224), settings("pasgen"), context(c) { context->setContextPr...
#include "hash.h" #include <QClipboard> #include <QGuiApplication> #include <QQmlContext> #include <QStringList> const int password_length = 30; Hash::Hash(QQmlContext *c, QObject *parent) : QObject(parent), hash(QCryptographicHash::Sha3_224), settings("pasgen"), context(c) { context->setContextPr...
Save password also to selection clipboard.
Save password also to selection clipboard.
C++
unlicense
jrepan/pasgen,jrepan/pasgen
34f96c2f25556024f9095ddd1536654a23ac632f
json/test_rapid.cpp
json/test_rapid.cpp
#include "rapidjson/document.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" #include <iostream> #include <fstream> #include <sstream> #include <string> using namespace std; void read_file(string filename, stringstream &buffer){ ifstream f(filename.c_str()); if (f) { buffer << f.rdbuf()...
#include "rapidjson/document.h" #include "rapidjson/filereadstream.h" #include <cstdio> #include <iostream> using namespace std; using namespace rapidjson; int main() { FILE* fp = std::fopen("./1.json", "r"); char buffer[65536]; FileReadStream frs(fp, buffer, sizeof(buffer)); Document jobj; jobj....
Use FileReadStream instead of multiple conversions.
Use FileReadStream instead of multiple conversions. Doubles timing and reduce memory usage.
C++
mit
kostya/benchmarks,chalucha/benchmarks,erickt/benchmarks,erickt/benchmarks,kostya/benchmarks,erickt/benchmarks,kostya/benchmarks,chalucha/benchmarks,erickt/benchmarks,chalucha/benchmarks,chalucha/benchmarks,erickt/benchmarks,erickt/benchmarks,erickt/benchmarks,erickt/benchmarks,chalucha/benchmarks,kostya/benchmarks,chal...
32f2b519e23e9bb165d981a5f7b5d73dff8c869d
source/examples/fibgui/MainWindow.cpp
source/examples/fibgui/MainWindow.cpp
#include "MainWindow.h" #include <QBoxLayout> #include <QLabel> #include <QSpinBox> #include <fiblib/Fibonacci.h> MainWindow::MainWindow() { // Create content widget QWidget * content = new QWidget(this); setCentralWidget(content); // Create layout QBoxLayout * layout = new QVBoxLayout(); ...
#include "MainWindow.h" #include <QBoxLayout> #include <QLabel> #include <QSpinBox> #include <fiblib/Fibonacci.h> MainWindow::MainWindow() { // Create content widget QWidget * content = new QWidget(this); setCentralWidget(content); // Create layout QBoxLayout * boxLayout = new QVBoxLayout(); ...
Remove simple to fix warnings
Remove simple to fix warnings
C++
mit
cginternals/cmake-init,j-o/cmake-init,j-o/cmake-init,hpicgs/cmake-init,cginternals/cmake-init,hpicgs/cmake-init,hpicgs/cmake-init,j-o/cmake-init,hpicgs/cmake-init,j-o/cmake-init
2d65dea76a3605683798ee6c91cd5252543a9f62
doc/examples/ecdsa.cpp
doc/examples/ecdsa.cpp
#include <botan/botan.h> #include <botan/ecdsa.h> #include <memory> #include <iostream> using namespace Botan; int main() { try { std::auto_ptr<RandomNumberGenerator> rng( RandomNumberGenerator::make_rng()); EC_Domain_Params params = get_EC_Dom_Pars_by_oid("1.3.132.0.8"); std...
#include <botan/botan.h> #include <botan/ecdsa.h> #include <memory> #include <iostream> using namespace Botan; int main() { try { std::auto_ptr<RandomNumberGenerator> rng( RandomNumberGenerator::make_rng()); EC_Domain_Params params = get_EC_Dom_Pars_by_oid("1.3.132.0.8"); std...
Print generated public key in ECDSA example
Print generated public key in ECDSA example
C++
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,webmaster128/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,randombit/botan,webmaster128/...
4c08cf43ee6426d6d1efddee1740ef0cb8b87705
src/game/ld22/other.cpp
src/game/ld22/other.cpp
#include "other.hpp" #include "item.hpp" using namespace LD22; Other::~Other() { } void Other::advance() { scanItems(); if (m_item) { int wx = centerx(), wy = centery(); int ix = m_item->centerx(), iy = m_item->centery(); int dx = ix - wx, dy = iy - wy; if (dx < -20) ...
#include "other.hpp" #include "item.hpp" using namespace LD22; Other::~Other() { } void Other::advance() { scanItems(); if (m_item) { int wx = centerx(), wy = centery(); int ix = m_item->centerx(), iy = m_item->centery(); int dx = ix - wx, dy = iy - wy; if (dx < -20) ...
Make Other jump after star
Make Other jump after star
C++
bsd-2-clause
depp/sglib,depp/sglib
d7e77a5ee544d0e35bc75446325fca8c44a69a5a
runtime/AliasChecker/AliasChecker.cpp
runtime/AliasChecker/AliasChecker.cpp
// Author: Jingyue // Hook functions are declared with extern "C", because we want to disable // the C++ name mangling and make the instrumentation easier. #include <cstdio> #include <cstdlib> extern "C" void ReportMissingAlias(unsigned VIDOfP, unsigned VIDOfQ, void *V) { fprintf(stderr, "value(%u) = value(%u) = %...
// Author: Jingyue // Hook functions are declared with extern "C", because we want to disable // the C++ name mangling and make the instrumentation easier. #include <cstdio> #include <cstdlib> #define DISABLE_REPORT extern "C" void ReportMissingAlias(unsigned VIDOfP, unsigned VIDOfQ, void *V) { #ifndef DISABLE_REPO...
Disable alias report by default
Disable alias report by default
C++
bsd-3-clause
wujingyue/neongoby,columbia/neongoby,columbia/neongoby,grievejia/neonGobyPort,columbia/neongoby,wujingyue/neongoby,grievejia/neonGobyPort,wujingyue/neongoby,columbia/neongoby
1403ad4eb8b1df9b2bb3cce2cc652235b9149b61
examples/tcp_server.cpp
examples/tcp_server.cpp
// This example shows how to use the TCP server. It listens at given port, // receives one message and sends one message. #include <memory> #include <iostream> #include <gflags/gflags.h> #include "c24/communication/stream.h" #include "c24/communication/stream_tcp_server.h" #include "c24/communication/stream_backend_i...
// This example shows how to use the TCP server. It listens at given port, // receives one message and sends one message. #include <memory> #include <iostream> #include <gflags/gflags.h> #include <glog/logging.h> #include "c24/communication/stream.h" #include "c24/communication/stream_tcp_server.h" #include "c24/comm...
Add missing include to tcp server example.
Add missing include to tcp server example.
C++
mit
simsa-st/contest24,simsa-st/contest24,simsa-st/contest24,simsa-st/contest24
814e5093acdf950100732aa04e435874ac3c76d5
indexer/indexer_tests/country_test.cpp
indexer/indexer_tests/country_test.cpp
#include "../../testing/testing.hpp" #include "../country.hpp" #include "../../coding/file_writer.hpp" #include "../../coding/file_reader.hpp" #include "../../base/start_mem_debug.hpp" UNIT_TEST(CountrySerialization) { string const TEST_URL = "http://someurl.com/somemap.dat"; uint64_t const TEST_SIZE = 12345679...
#include "../../testing/testing.hpp" #include "../country.hpp" #include "../../coding/file_writer.hpp" #include "../../coding/file_reader.hpp" #include "../../base/start_mem_debug.hpp" UNIT_TEST(CountrySerialization) { string const TEST_URL = "http://someurl.com/somemap.dat"; uint64_t const TEST_SIZE = 12345679...
Delete temporary file after unit test
Delete temporary file after unit test
C++
apache-2.0
stangls/omim,AlexanderMatveenko/omim,therearesomewhocallmetim/omim,AlexanderMatveenko/omim,Transtech/omim,Zverik/omim,Volcanoscar/omim,victorbriz/omim,programming086/omim,Komzpa/omim,krasin/omim,victorbriz/omim,stangls/omim,goblinr/omim,vladon/omim,dobriy-eeh/omim,AlexanderMatveenko/omim,andrewshadura/omim,Komzpa/omim,...
6fa6c9d3e569e20dd2748e2d5a509046f929987a
input-context/main.cpp
input-context/main.cpp
/* * This file is part of Maliit framework * * * Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). * * All rights reserved. * * Contact: maliit-discuss@lists.maliit.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
/* * This file is part of Maliit framework * * * Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). * * All rights reserved. * * Contact: maliit-discuss@lists.maliit.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
Replace hard coded string with QPlatformInputContextFactoryInterface_iid (fixes compatibility with Qt 5.5 where this string has changed)
Replace hard coded string with QPlatformInputContextFactoryInterface_iid (fixes compatibility with Qt 5.5 where this string has changed)
C++
lgpl-2.1
jpetersen/framework,RHawkeyed/framework,RHawkeyed/framework,jpetersen/framework,binlaten/framework
e4ef1685cb9dd087f24f9ed7205b8a85fef18b3f
CpuMiner.cpp
CpuMiner.cpp
/** * This is free and unencumbered software released into the public domain. **/ #include "Miner.h" #include <memory> class CpuMiner : public Miner { public: ~CpuMiner() {} public: static MinerPtr createInstance() { return MinerPtr( new CpuMiner ); } }; MinerRegistration<CpuMiner> registration( ...
/** * This is free and unencumbered software released into the public domain. **/ #include "Miner.h" #include <memory> #include <limits> #include <cassert> class CpuMiner : public Miner { public: ~CpuMiner() {} public: static MinerPtr createInstance() { return MinerPtr( new CpuMiner ); } protecte...
Implement basic cpu mining logic
Implement basic cpu mining logic
C++
unlicense
jrmrjnck/jrmrmine
7a6e287de9e71f7b16dbc964dbf884c13baae55f
src/main/MessageListener.cpp
src/main/MessageListener.cpp
/* Copyright 2007 Albert Strasheim <fullung@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
/* Copyright 2007 Albert Strasheim <fullung@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
Fix compilation with GCC 4.1.1.
Fix compilation with GCC 4.1.1.
C++
apache-2.0
alberts/pyactivemq,aberzan/pyactivemq,alberts/pyactivemq,WilliamFF/pyactivemq,aberzan/pyactivemq,hetian9288/pyactivemq,cleardo/pyactivemq,hetian9288/pyactivemq,cl2dlope/pyactivemq,WilliamFF/pyactivemq,cl2dlope/pyactivemq,chenrui333/pyactivemq,chenrui333/pyactivemq,haofree/pyactivemq,winking324/pyactivemq,winking324/pya...
c6ca113ac9b6ff0e9616d811d066585f6527e636
insts/jg/objlib/RMS.cpp
insts/jg/objlib/RMS.cpp
/* RMS power gauge, based on the one in csound. -JGG */ #include "RMS.h" RMS :: RMS(double srate) : Filter(srate) { gain = 1.0; subLowFilter = new OnePole(srate); subLowFilter->setFreq(10.0); windowSize = DEFAULT_CONTROL_RATE; counter = 0; lastOutput = 0.0; outputs = inputs = NULL; ...
/* RMS power gauge, based on the one in csound. -JGG */ #include "RMS.h" RMS :: RMS(double srate) : Filter(srate) { gain = 1.0; subLowFilter = new OnePole(srate); subLowFilter->setFreq(10.0); windowSize = DEFAULT_CONTROL_RATE; counter = 0; lastOutput = 0.0; outputs = inputs = NULL; ...
Clear should also clear filter.
Clear should also clear filter.
C++
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
f242dc61bf44a146782828302bbbb515faae1db8
src/tac/Printer.cpp
src/tac/Printer.cpp
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
Add prototypes for the debug printer
Add prototypes for the debug printer
C++
mit
vogelsgesang/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic,wichtounet/eddic,wichtounet/eddic
ad854175a294cdaf41d6805620f5404a6cc02685
Cursor.cpp
Cursor.cpp
#include "Cursor.h" Cursor* Cursor::instance = NULL; Cursor::Cursor() : Sprite() { // Status m_show = true; // Arrangement m_anchor = Vec2<double>(0.0, 0.0); m_texture_dst = new SDL_Rect; m_texture_dst->x = -m_size.x; m_texture_dst->y = -m_size.y; m_texture_dst...
#include "Cursor.h" Cursor* Cursor::instance = NULL; Cursor::Cursor() : Sprite() { // Status m_show = true; // Arrangement m_anchor = Vec2<double>(0.0, 0.0); m_texture_dst = new SDL_Rect; m_texture_dst->x = -m_size.x; m_texture_dst->y = -m_size.y; m_texture_dst...
Change default cursor-image location to non-test path
Change default cursor-image location to non-test path
C++
mit
maksym-gryb/SDL_Wrapper,maksym-gryb/SDL_Wrapper
352bcb22ec5b75d554a307f9b6c4c8a98b89fb38
src/modelloader/vertexbuffer.cpp
src/modelloader/vertexbuffer.cpp
#include "vertexbuffer.hpp" #include "collisiondetection/axisalignedboundingbox.hpp" using namespace modelloader; VertexBuffer::VertexBuffer(VertexBuffer&& other) : vBO{other.vBO}, iBO{other.iBO}, nBO{other.nBO}, numIndices{other.numIndices}, extremes{other.extremes}, bounds(std::move(other.bounds)){ } VertexBuffer...
#include "vertexbuffer.hpp" #include "collisiondetection/axisalignedboundingbox.hpp" using namespace modelloader; VertexBuffer::VertexBuffer(VertexBuffer&& other) : vBO{other.vBO}, iBO{other.iBO}, nBO{other.nBO}, vao(other.vao), numIndices{other.numIndices}, extremes{other.extremes}, bounds(std::move(other.bounds)){...
Fix VertexBuffer move-constructor, vao was not copied.
Fix VertexBuffer move-constructor, vao was not copied.
C++
apache-2.0
maruno/collisionsdemo,maruno/collisionsdemo
68e32ab6dc9f0a3e117b6739c34528646bdfffdb
src/CacheJsonToArticleConverter.cpp
src/CacheJsonToArticleConverter.cpp
//! \file CacheJsonToArticleConverter.cpp #include "CacheJsonToArticleConverter.h" #include <json/json.h> #include "WalkerException.h" #include "Article.h" ArticleCollection& CacheJsonToArticleConverter::convertToArticle(std::string json, ArticleCollection& articleCache) { Json::Reader reader; Json:...
//! \file CacheJsonToArticleConverter.cpp #include "CacheJsonToArticleConverter.h" #include <json/json.h> #include "WalkerException.h" #include "Article.h" ArticleCollection& CacheJsonToArticleConverter::convertToArticle(std::string json, ArticleCollection& articleCache) { Json::Reader reader; Json:...
Migrate to smart pointers, part five
Migrate to smart pointers, part five Cache reader adapted to new class interfaces.
C++
mit
dueringa/WikiWalker
f31e31b9d30e187baf26aad81a96f69cbb2d243c
src/main.cpp
src/main.cpp
#include <ncurses.h> #include <string> int main() { /* * init term */ initscr(); cbreak(); noecho(); clear(); /* * init title */ move(5, 5); std::string title = "TERMINAL QUEST"; for (int i; i < title.size(); i++) { addch(title[i]); addch(' '...
#include <ncurses.h> #include <string> using namespace std; void menuShow(); void menuAdd(int pos, string str); void menuDone(); int main() { /* * init term */ initscr(); cbreak(); noecho(); clear(); /* * init title */ menuShow(); refresh(); while(true); ...
Move title screen init to private fn
Move title screen init to private fn
C++
mit
jm-janzen/termq,jm-janzen/termq,jm-janzen/termq
023061873f2f4978da4921b034aecdeeff2a8843
src/main.cpp
src/main.cpp
#include "qcalparser.h" #include "qcalevent.h" #include <QtCore/QCoreApplication> #include <QFile> #include <QString> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QFile *file = new QFile(a.arguments().at(1)); QCalParser *parser = new QCalParser(file); foreach(QC...
/* * This file is part of libqcalparser * * Copyright (C) Rohan Garg <rohan16garg@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License,...
Add proper licensing to file
Add proper licensing to file
C++
lgpl-2.1
shadeslayer/libqcalparser,shadeslayer/libqcalparser
411a1aa73dd51842bb1a2c2fd2476943d87d046a
chrome/browser/icon_loader.cc
chrome/browser/icon_loader.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/icon_loader.h" #include "base/message_loop.h" #include "base/mime_util.h" #include "base/thread.h" #include "chrome/browser/...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/icon_loader.h" #include "base/message_loop.h" #include "base/mime_util.h" #include "base/thread.h" #include "chrome/browser/...
Initialize target_message_loop_ in the constructor.
Coverity: Initialize target_message_loop_ in the constructor. CID=3970 BUG=none TEST=none Review URL: http://codereview.chromium.org/233001 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@26985 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,ropik/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,yitia...
dce0fbcffe8b73adb726cdeede0f3851921603e5
test/playground/test-playground.cpp
test/playground/test-playground.cpp
/* Copyright(c) 2015 - 2019 Denis Blank <denis.blank at outlook dot com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
/* Copyright(c) 2015 - 2019 Denis Blank <denis.blank at outlook dot com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
Clean the playground since the test was moved into the unit tests
Clean the playground since the test was moved into the unit tests
C++
apache-2.0
Naios/Continuable
eed9f5ec2f4e5aca37ce1449c795af164cb95f8e
audiobase.cpp
audiobase.cpp
#include "audiobase.h" namespace openalpp { AudioBase::AudioBase(int frequency,int refresh,int synchronous) throw (InitError) { if(!instances_) { // Open a write (output) device. This should (in theory) make it possible // to open a read (input) device later.. device_=alcOpenDevice((const ALubyte *)...
#include "audiobase.h" namespace openalpp { AudioBase::AudioBase(int frequency,int refresh,int synchronous) throw (InitError) { if(!instances_) { // Open a write (output) device. This should (in theory) make it possible // to open a read (input) device later.. device_=alcOpenDevice((/*const */ALubyt...
Fix to make it compile in Windows.. Hope it still compiles in Linux...
Fix to make it compile in Windows.. Hope it still compiles in Linux...
C++
lgpl-2.1
vancegroup-mirrors/openalplusplus,vancegroup-mirrors/openalplusplus,vancegroup-mirrors/openalplusplus
ce6a9660c061da38da2f262f00a378663b75c873
chainerx_cc/chainerx/python/error.cc
chainerx_cc/chainerx/python/error.cc
#include "chainerx/python/error.h" #include "chainerx/error.h" #include "chainerx/python/common.h" namespace chainerx { namespace python { namespace python_internal { namespace py = pybind11; // standard convention void InitChainerxError(pybind11::module& m) { py::register_exception<ChainerxError>(m, "Chainer...
#include "chainerx/python/error.h" #include "chainerx/error.h" #include "chainerx/python/common.h" namespace chainerx { namespace python { namespace python_internal { namespace py = pybind11; // standard convention void InitChainerxError(pybind11::module& m) { py::register_exception<ChainerxError>(m, "Chainer...
Add Python binding for GradientError
Add Python binding for GradientError
C++
mit
ktnyt/chainer,wkentaro/chainer,wkentaro/chainer,chainer/chainer,chainer/chainer,jnishi/chainer,jnishi/chainer,okuta/chainer,keisuke-umezawa/chainer,hvy/chainer,niboshi/chainer,niboshi/chainer,hvy/chainer,niboshi/chainer,hvy/chainer,wkentaro/chainer,hvy/chainer,ktnyt/chainer,okuta/chainer,keisuke-umezawa/chainer,chainer...
991702632f6f58bd4a2356107be79edcd1983482
skia/sgl/SkTypeface_fake.cpp
skia/sgl/SkTypeface_fake.cpp
#include "SkTypeface.h" // ===== Begin Chrome-specific definitions ===== uint32_t SkTypeface::UniqueID(const SkTypeface* face) { return NULL; } void SkTypeface::serialize(SkWStream* stream) const { } SkTypeface* SkTypeface::Deserialize(SkStream* stream) { return NULL; } // ===== End Chrome-specific definitio...
#include "SkTypeface.h" // ===== Begin Chrome-specific definitions ===== uint32_t SkTypeface::UniqueID(const SkTypeface* face) { return 0; } void SkTypeface::serialize(SkWStream* stream) const { } SkTypeface* SkTypeface::Deserialize(SkStream* stream) { return NULL; } // ===== End Chrome-specific definitions ...
Return 0 instead of NULL for a non-pointer type. Eliminates a warning in GCC.
Return 0 instead of NULL for a non-pointer type. Eliminates a warning in GCC. git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@981 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
robclark/chromium,hujiajie/pa-chromium,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,anirudhSK/chromium,timopulkkinen/BubbleFish,Just-D/chromium-1,ltilve/chromium,hgl888/chromium-crosswalk,M4sse/chromium.src,keishi/chromium,ChromiumWebApps/chromium,hujiajie/pa-chromium,chuan9/c...
8a8f1696285994e31f8a428d9ae98441b27adaa1
atom/common/api/event_emitter_caller.cc
atom/common/api/event_emitter_caller.cc
// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/common/api/event_emitter_caller.h" #include "atom/common/api/locker.h" #include "atom/common/node_includes.h" namespace mate { namespace internal { v8::Local<v8::Val...
// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/common/api/event_emitter_caller.h" #include "atom/common/api/locker.h" #include "atom/common/node_includes.h" namespace mate { namespace internal { v8::Local<v8::Val...
Add comments and use ToLocal instead of ToLocalChecked
Add comments and use ToLocal instead of ToLocalChecked
C++
mit
Floato/electron,shiftkey/electron,the-ress/electron,the-ress/electron,shiftkey/electron,bpasero/electron,electron/electron,shiftkey/electron,Floato/electron,Floato/electron,thomsonreuters/electron,seanchas116/electron,thomsonreuters/electron,bpasero/electron,shiftkey/electron,seanchas116/electron,thomsonreuters/electro...
c747334414aa06f405e47ab820115238888e1e89
validate/halValidateMain.cpp
validate/halValidateMain.cpp
/* * Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu) * * Released under the MIT license, see LICENSE.txt */ #include <cstdlib> #include <iostream> #include "halStats.h" using namespace std; using namespace hal; int main(int argc, char** argv) { CLParserPtr optionsParser = hdf5CLParserInstance(); opt...
/* * Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu) * * Released under the MIT license, see LICENSE.txt */ #include <cstdlib> #include <iostream> #include "halStats.h" using namespace std; using namespace hal; int main(int argc, char** argv) { CLParserPtr optionsParser = hdf5CLParserInstance(); opt...
Validate one genome at a time
Validate one genome at a time
C++
mit
glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal
ae317ea25e91ee09de53719bb27f7e19c66fb169
src/DspBalance.cpp
src/DspBalance.cpp
#include "pch.h" #include "DspBalance.h" #include "AudioRenderer.h" namespace SaneAudioRenderer { void DspBalance::Process(DspChunk& chunk) { float balance = m_renderer.GetBalance(); if (!chunk.IsEmpty() && balance != 0.0f) { assert(balance >= -1.0f && balance...
#include "pch.h" #include "DspBalance.h" #include "AudioRenderer.h" namespace SaneAudioRenderer { void DspBalance::Process(DspChunk& chunk) { float balance = m_renderer.GetBalance(); if (!chunk.IsEmpty() && balance != 0.0f && chunk.GetChannelCount() == 2) { as...
Use balance dsp only in stereo
Use balance dsp only in stereo
C++
lgpl-2.1
alexmarsev/sanear,kasper93/sanear,alexmarsev/sanear,kasper93/sanear,kasper93/sanear
f3d66f1453c0fb5ea7cad35a7fe4632127fc5982
SSPSolution/SSPSolution/LevelState.cpp
SSPSolution/SSPSolution/LevelState.cpp
#include "LevelState.h" LevelState::LevelState() { } LevelState::~LevelState() { } int LevelState::ShutDown() { int result = 1; return result; } int LevelState::Initialize(GameStateHandler * gsh, ComponentHandler* cHandler) { int result = 0; result = GameState::InitializeBase(gsh, cHandler); //Read from fi...
#include "LevelState.h" LevelState::LevelState() { } LevelState::~LevelState() { } int LevelState::ShutDown() { int result = 1; return result; } int LevelState::Initialize(GameStateHandler * gsh, ComponentHandler* cHandler) { int result = 0; result = GameState::InitializeBase(gsh, cHandler); //Read from fi...
UPDATE Sets values for components properly
UPDATE Sets values for components properly
C++
apache-2.0
Chringo/SSP,Chringo/SSP
c3bcedb66af80f5843f20488d238c8dfd2a5e2bf
src/util/syserror.cpp
src/util/syserror.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <tinyformat.h> #include <util/syserror.h> #in...
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <tinyformat.h> #include <util/syserror.h> #in...
Use strerror_s for SysErrorString on Windows
util: Use strerror_s for SysErrorString on Windows Github-Pull: #24933 Rebased-From: e7f2f77756d33c6be9c8998a575b263ff2d39270
C++
mit
bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin
218183fc0e4cdcd003e6d5bfc1409d1cb5a463af
src/listener.cpp
src/listener.cpp
#include "listener.h" #include "log.h" #include "buffers.h" void conditionalEnqueue(QUEUE_TYPE(uint8_t)* queue, uint8_t* message, int messageSize) { if(queue_available(queue) < messageSize + 1) { debug("Dropped incoming CAN message -- send queue full for USB\r\n"); return; } ...
#include "listener.h" #include "log.h" #include "buffers.h" void conditionalEnqueue(QUEUE_TYPE(uint8_t)* queue, uint8_t* message, int messageSize) { if(queue_available(queue) < messageSize + 1) { debug("Dropped incoming CAN message -- send queue full\r\n"); return; } for(in...
Use more generic language in a log message, could be serial or USB.
Use more generic language in a log message, could be serial or USB.
C++
bsd-3-clause
openxc/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware
cfe93e78470b890ccd8096138d39c0699e77fcd6
source/interpreter/commandConsole.cpp
source/interpreter/commandConsole.cpp
#include <sstream> #include "backend.h" tstring CommandConsole::receiveStandardInput() { char input [1024]; std::cin >> input; return input; } void CommandConsole::processStandardOutput(const tstring& output) { std::cout << output; }
#include <sstream> #include "backend.h" tstring CommandConsole::receiveStandardInput() { tstring input; std::cin >> input; return input; } void CommandConsole::processStandardOutput(const tstring& output) { std::cout << output; }
Fix console output to use tstring.
Fix console output to use tstring.
C++
mit
IanFinlayson/tetra,IanFinlayson/tetra,IanFinlayson/tetra,IanFinlayson/tetra,IanFinlayson/tetra,IanFinlayson/tetra
a200dfd5e99cab195224d0f1be7a95ded4c90896
net/base/network_change_notifier_win.cc
net/base/network_change_notifier_win.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/network_change_notifier_win.h" #include <iphlpapi.h> #include <winsock2.h> #pragma comment(lib, "iphlpapi.lib") namespace net { ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/network_change_notifier_win.h" #include <iphlpapi.h> #include <winsock2.h> #pragma comment(lib, "iphlpapi.lib") namespace net { ...
Fix regression where we didn't ever start watching for network address changes on Windows.
Fix regression where we didn't ever start watching for network address changes on Windows. BUG=48204 TEST=NetworkChangeNotifier works on Windows Review URL: http://codereview.chromium.org/2807036 git-svn-id: http://src.chromium.org/svn/trunk/src@51574 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 245af1ba8f...
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...
19fa3027266ce97444565e7f04bb80bc2526ebb7
ext/qml/accessobject.cpp
ext/qml/accessobject.cpp
#include "accessobject.h" #include "accessclass.h" #include "util.h" #include <QSet> #include <QQmlEngine> namespace RubyQml { AccessObject::AccessObject(const SP<ForeignClass> &klass, VALUE value) : ForeignObject(klass), mValue(value) { globalMarkValues() << value; QQmlEngine::setObjectOwnership(this...
#include "accessobject.h" #include "accessclass.h" #include "util.h" #include <QSet> namespace RubyQml { AccessObject::AccessObject(const SP<ForeignClass> &klass, VALUE value) : ForeignObject(klass), mValue(value) { globalMarkValues() << value; } AccessObject::~AccessObject() { globalMarkValues().rem...
Revert "AccessObject objects are owned by QML"
Revert "AccessObject objects are owned by QML" This reverts commit 79352321388304c7ff2fc5ecdcf78b35e5958b33.
C++
mit
seanchas116/ruby-qml,seanchas116/ruby-qml,seanchas116/ruby-qml
2366cd5d0400a99dc8c220709510733691738ef6
test/SemaCXX/copy-constructor-error.cpp
test/SemaCXX/copy-constructor-error.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s struct S { S (S); // expected-error {{copy constructor must pass its first argument by reference}} }; S f(); void g() { S a( f() ); }
// RUN: %clang_cc1 -fsyntax-only -verify %s struct S { S (S); // expected-error {{copy constructor must pass its first argument by reference}} }; S f(); void g() { S a( f() ); } namespace PR6064 { struct A { A() { } inline A(A&, int); }; A::A(A&, int = 0) { } void f() { A const a; ...
Add test case from PR6064, which now works
Add test case from PR6064, which now works git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@97575 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
7fe3eca5365b970f138092e2ae225d7425db6fb1
test/asan/TestCases/Linux/static_tls.cc
test/asan/TestCases/Linux/static_tls.cc
// REQUIRES: asan-64-bits // Regression test: __tls_get_addr interceptor must recognize static TLS. // // RUN: %clangxx_asan -DSHARED %s -shared -o %t-so.so -fPIC // RUN: %clangxx_asan %s -ldl -pthread -o %t %t-so.so // RUN: ASAN_OPTIONS=verbosity=2 %run %t 2>&1 | FileCheck %s // CHECK: before // CHECK: __tls_get_addr...
// REQUIRES: asan-64-bits // Regression test: __tls_get_addr interceptor must recognize static TLS. // // RUN: %clangxx_asan -DSHARED %s -shared -o %t-so.so -fPIC // RUN: %clangxx_asan %s -ldl -pthread -o %t %t-so.so // RUN: ASAN_OPTIONS=verbosity=2 %run %t 2>&1 | FileCheck %s // CHECK: before // CHECK: __tls_get_addr...
Disable static-tls test on PowerPC.
[asan] Disable static-tls test on PowerPC. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@237534 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
5eb2dbfae49098f035c47eebc818477e6df9c09c
event.cpp
event.cpp
#include "event.h" #include "deconz.h" #include "resource.h" /*! Constructor. */ Event::Event() : m_resource(0), m_what(0), m_num(0), m_numPrev(0) { } Event::Event(const char *resource, const char *what, const QString &id, ResourceItem *item) : m_resource(resource), m_what(what), m_id(id)...
#include "event.h" #include "deconz.h" #include "resource.h" /*! Constructor. */ Event::Event() : m_resource(0), m_what(0), m_num(0), m_numPrev(0) { } Event::Event(const char *resource, const char *what, const QString &id, ResourceItem *item) : m_resource(resource), m_what(what), m_id(id)...
Support id() method for RGroup resources used in rules
Support id() method for RGroup resources used in rules
C++
bsd-3-clause
dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin
b7f20616187abc2ba98dd4e3ce903cb68d5568b3
Plugins/PerceptionNeuron/Source/PerceptionNeuron/Private/PerceptionNeuron.cpp
Plugins/PerceptionNeuron/Source/PerceptionNeuron/Private/PerceptionNeuron.cpp
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. // // Copyright 2015 Heiko Fink, All Rights Reserved. // // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // // Perception Neuron (TM) is a trademark of Beijing Noitom Technolog...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. // // Copyright 2015 Heiko Fink, All Rights Reserved. // // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // // Perception Neuron (TM) is a trademark of Beijing Noitom Technolog...
Add Logmessage on Module Start and Stop
Add Logmessage on Module Start and Stop
C++
mit
Cyx69/TP_ThirdPersonNeuron,Cyx69/TP_ThirdPersonNeuron,Cyx69/TP_ThirdPersonNeuron
df16cd9d0c3c73added0d06dde93af1789ad8c8f
test/api/simple_test.cpp
test/api/simple_test.cpp
#include <gtest/gtest.h> #include <stdlib.h> #include <time.h> #if defined (ANDROID_NDK) #include <stdio.h> #endif #if (defined(ANDROID_NDK)||defined(APPLE_IOS)) int CodecUtMain (int argc , char** argv) { #else int main (int argc, char** argv) { #endif #if (defined(ANDROID_NDK)||defined(APPLE_IOS)) char xmlPath[10...
#include <gtest/gtest.h> #include <stdlib.h> #include <time.h> #include <stdio.h> #include <string.h> #if (defined(ANDROID_NDK)||defined(APPLE_IOS)) int CodecUtMain (int argc , char** argv) { #else int main (int argc, char** argv) { #endif #if (defined(ANDROID_NDK)||defined(APPLE_IOS)) char xmlPath[1024] = ""; s...
Print the random seed at startup
Print the random seed at startup Also add an option for overriding the seed at startup. This allows reproducing temporary issues by rerunning the test suite with the same random seed. Note that if tests are added or removed (or tests are skipped by passing the --gtest_filter option), or if running on a different lib...
C++
bsd-2-clause
TonySheh/losslessh264,yskeem/openh264,bitwing/losslessh264,ethanhugg/openh264,subailong/losslessh264,rzhangma/openh264,LaurenLuoYun/losslessh264,yskeem/openh264,jasonzhong/losslessh264,hznoob/openh264,rammybt/openh264,hcxyzlm/losslessh264,shyamalschandra/openh264,joncampbell123/losslessh264,hgl888/losslessh264,abhishek...
c8aeef385c85ef3a49f75c73254a1c381ec499cf
src/test/Cpu-test.cpp
src/test/Cpu-test.cpp
#include <gtest/gtest.h> #include "../../include/Cpu.h" // The fixture for testing class Foo. class CpuTest : public Cpu, public ::testing::Test { protected: CpuTest() { } ~CpuTest() override { } void SetUp() override { } void TearDown() override { } }; TEST_F(CpuTest, pcNop) { runOpcode(...
#include <gtest/gtest.h> #include "../../include/Cpu.h" // The fixture for testing class Foo. class CpuTest : public Cpu, public ::testing::Test { protected: CpuTest() { } ~CpuTest() override { } void SetUp() override { } void TearDown() override { } }; TEST_F(CpuTest, pcNop) { runOpcode(...
Add integration-ish test for the boot
Add integration-ish test for the boot
C++
apache-2.0
Sulter/STM32-GB,Sulter/STM32-GB,Sulter/STM32-GB
863ff0257bd565c91499d2d66927223ad4c8fb69
test/error/float16_t_overflow_int_conv.cpp
test/error/float16_t_overflow_int_conv.cpp
#include "Halide.h" #include <stdint.h> #include <stdio.h> #include <cmath> using namespace Halide; // FIXME: Why aren't we using a unit test framework for this? // See Issue #898 void h_assert(bool condition, const char* msg) { if (!condition) { printf("FAIL: %s\n", msg); abort(); } } int ma...
#include "Halide.h" #include <stdint.h> #include <stdio.h> #include <cmath> using namespace Halide; // FIXME: Why aren't we using a unit test framework for this? // See Issue #898 void h_assert(bool condition, const char* msg) { if (!condition) { printf("FAIL: %s\n", msg); abort(); } } int ma...
Remove isnan of an int
Remove isnan of an int
C++
mit
tdenniston/Halide,jiawen/Halide,psuriana/Halide,myrtleTree33/Halide,dan-tull/Halide,kgnk/Halide,myrtleTree33/Halide,dan-tull/Halide,mcanthony/Halide,kenkuang1213/Halide,kgnk/Halide,smxlong/Halide,kenkuang1213/Halide,kgnk/Halide,dan-tull/Halide,adasworks/Halide,kgnk/Halide,mcanthony/Halide,kenkuang1213/Halide,dougkwan/H...
8b346a8b2d611df2e606e5d6d0d5901076fe3026
source/streams/vwritebufferedstream.cpp
source/streams/vwritebufferedstream.cpp
/* Copyright c1997-2006 Trygve Isaacson. All rights reserved. This file is part of the Code Vault version 2.5 http://www.bombaydigital.com/ */ /** @file */ #include "vwritebufferedstream.h" #include "vexception.h" VWriteBufferedStream::VWriteBufferedStream(VStream& rawStream, Vs64 initialBufferSize, Vs64 resizeIncr...
/* Copyright c1997-2006 Trygve Isaacson. All rights reserved. This file is part of the Code Vault version 2.5 http://www.bombaydigital.com/ */ /** @file */ #include "vwritebufferedstream.h" #include "vexception.h" VWriteBufferedStream::VWriteBufferedStream(VStream& rawStream, Vs64 initialBufferSize, Vs64 resizeIncr...
Fix ignored return type warning.
Fix ignored return type warning.
C++
mit
trygve-isaacson/code-vault,trygve-isaacson/code-vault,trygve-isaacson/code-vault,trygve-isaacson/code-vault
6fddcc2ee6e63bc5dbce6d40a099b3c163c9ee0d
VapourSynth-BezierCurve/BezierCurve.cpp
VapourSynth-BezierCurve/BezierCurve.cpp
#include "BezierCurve.h" BezierCurve::BezierCurve(int range, double accur, int bits) { m_range = range; m_accur = accur; m_bits = bits; } double BezierCurve::normalize(int x) { double result; int scale = ((1 << m_bits) - 1) / 255; if (m_range == 0) // PC range { result = x / (255. * scale); } else // T...
#include "BezierCurve.h" BezierCurve::BezierCurve(int range, double accur, int bits) { m_range = range; m_accur = accur; m_bits = bits; } double BezierCurve::normalize(int x) { double result; int scale = ((1 << m_bits) - 1) / 255; if (m_range == 0) // PC range { result = x / (255. * scale); } else // T...
Fix an error of tv range normalization
Fix an error of tv range normalization
C++
mit
kewenyu/VapourSynth-BezierCurve
c2a0b9edc3f54af10a1df62d47c9ed66fec1fa0f
libkvkontakte/util.cpp
libkvkontakte/util.cpp
/* Copyright 2011 Thomas McGuire <mcguire@kde.org> Copyright 2011 Alexander Potashev <aspotashev@gmail.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the...
/* Copyright 2011 Thomas McGuire <mcguire@kde.org> Copyright 2011 Alexander Potashev <aspotashev@gmail.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the...
Disable KCatalogLoader for kdelibs below 4.6.2
Disable KCatalogLoader for kdelibs below 4.6.2 BUG:282113
C++
lgpl-2.1
KDE/libkvkontakte,KDE/libkvkontakte
ced539f911058868a89fdf3560c1daba5e0a916f
foo_rest/foo_rest.cpp
foo_rest/foo_rest.cpp
#include "stdafx.h" #include "foobar2000/SDK/foobar2000.h" #include "ServerProxy.h" DECLARE_COMPONENT_VERSION( "foo_rest", "0.1", "REST interface for foobar." ) class InitQuit : public initquit { public: virtual void on_init(); virtual void on_quit(); }; std::unique_ptr<ServerProxy> serverProxy; void InitQuit::o...
#include "stdafx.h" #include "foobar2000/SDK/foobar2000.h" #include "ServerProxy.h" DECLARE_COMPONENT_VERSION( "foo_rest", "0.1", "REST interface for foobar.\nhttps://github.com/ivarboms/foo_rest" ) class InitQuit : public initquit { public: virtual void on_init(); virtual void on_quit(); }; std::unique_ptr<Serve...
Add link to github in about text.
Add link to github in about text.
C++
mit
ivarboms/foo_rest,ivarboms/foo_rest,ivarboms/foo_rest
a9a3158526ac9219152685778533db2aaeaf1096
test/functionalities/register/main.cpp
test/functionalities/register/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 up TestRegisters for Linux ptracer lock-down.
Fix up TestRegisters for Linux ptracer lock-down. All of these test fixups are prep work for when llgs is running with llgs for local process debugging, where these tests fail without the ptracer lock-down suppression. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@220656 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb
30212b62da779717dbf5b35a8bd0a4fdbf930d27
ppapi/proxy/ppapi_messages.cc
ppapi/proxy/ppapi_messages.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/proxy/ppapi_messages.h" #include "base/file_path.h" #include "ipc/ipc_channel_handle.h" #include "ppapi/c/dev/pp_file_info_dev.h" #in...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/proxy/ppapi_messages.h" #include "base/file_path.h" #include "ipc/ipc_channel_handle.h" #include "ppapi/c/dev/pp_file_info_dev.h" #in...
Add a blank line to force this file to be recompiled on Mac on the bots.
Add a blank line to force this file to be recompiled on Mac on the bots. git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@65997 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
d3b8afc21edc56df3500723bc5d44b61986358ed
src/main.cc
src/main.cc
#include "tmfs.hh" int main(int argc, char ** argv) { if (argc < 3) { fprintf(stderr, "%s: <path> fuse-options...\n", argv[0]); return 2; } /* global structure setup */ tmfs::instance().hfs_root_ = argv[1]; --argc; for (int i = 1; i < argc; ++i) argv[i] = argv[i + 1]; /* check that hfs_ro...
#include "tmfs.hh" int main(int argc, char ** argv) { if (argc < 3) { fprintf(stderr, "usage: %s: <HFS+ mount> <Time Machine Mount>" " [fuse options]\n", argv[0]); return 2; } /* global structure setup */ tmfs::instance().hfs_root_ = argv[1]; --argc; for (int i = 1; i < argc; ++i) ...
Improve usage message, according to nickrw's suggestion.
Improve usage message, according to nickrw's suggestion.
C++
mit
abique/tmfs
bdbcc8278ac2cc344950796264adc1316dca3162
daemon/src/fabric.cpp
daemon/src/fabric.cpp
#include "fdsb/fabric.hpp" #include "fdsb/nid.hpp" #include "fdsb/harc.hpp" #include <unordered_map> using namespace fdsb; std::unordered_multimap<unsigned long long,Harc*> fabric; Harc &fdsb::get(const Nid &a, const Nid &b) { for (auto i : fabric.find(Nid::dual_hash(a,b))) { if ((i->tail(0) == a && i->tail(1) ...
#include "fdsb/fabric.hpp" #include "fdsb/nid.hpp" #include "fdsb/harc.hpp" #include <unordered_map> using namespace fdsb; std::unordered_multimap<unsigned long long,Harc*> fabric; Harc &fdsb::get(const Nid &a, const Nid &b) { auto range = fabric.equal_range(Nid::dual_hash(a,b)); for (auto i : range) { if ((i-...
Use map range for iterator
Use map range for iterator
C++
bsd-2-clause
dharc/dharc
bdb16a4f71f48b0584ce637a9a4b3f440e601570
config/main.cpp
config/main.cpp
/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXDE-Qt - a lightweight, Qt based, desktop toolset * http://razor-qt.org * * Copyright: 2012 Razor team * Authors: * Christian Surlykke <christian@surlykke.dk> * * This program or library is free software; you can redistribute it * and/or modify it under the...
/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXDE-Qt - a lightweight, Qt based, desktop toolset * http://razor-qt.org * * Copyright: 2012 Razor team * Authors: * Christian Surlykke <christian@surlykke.dk> * * This program or library is free software; you can redistribute it * and/or modify it under the...
Use SingleApplication rather than Application
Use SingleApplication rather than Application
C++
lgpl-2.1
stefonarch/lxqt-powermanagement,lxde/lxqt-powermanagement,pmattern/lxqt-powermanagement
63f87f083272f10f26a68aec09f337a5649369e9
test/test_cpp/simple_test.cpp
test/test_cpp/simple_test.cpp
#include <iostream> int main(void) { std::cout << "woooot" << std::endl; }
#define BOOST_TEST_MODULE simple_test #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_CASE(simple_cpp_test) { BOOST_CHECK(true); }
Make cpp test a unit test
Make cpp test a unit test
C++
mit
sschaetz/n5a,sschaetz/n5a
57fbb9e5e604e7ccf193d4cbfe54de8be5c06abb
sketching/lossy_count_benchmark.cc
sketching/lossy_count_benchmark.cc
// Copyright 2020 The Google Research Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
// Copyright 2020 The Google Research Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
Fix broken benchmark of Lossy count.
Fix broken benchmark of Lossy count. PiperOrigin-RevId: 305310909
C++
apache-2.0
google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,...
4aa06dd69404818bad47be288abce831dcafdf31
Sources/hspp/Policies/IoPolicy.cpp
Sources/hspp/Policies/IoPolicy.cpp
// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <hspp/Commons/Utils.hpp> #include <hspp/Policies/IoPolicy.hpp...
// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <hspp/Commons/Utils.hpp> #include <hspp/Policies/IoPolicy.hpp...
Correct 'unused private field' warning
fix: Correct 'unused private field' warning
C++
mit
Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp
34965523bba8e24ab26a577205a65b8afbc1f96c
src/main.cpp
src/main.cpp
/* * Copyright (c) 2017 Akil Darjean (adarjean@uh.edu) * Distributed under the MIT License. * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT */ #include "window.h" #include <string> int main(int argc, char const* argv[]) { Window window; if (argc > 1) { std::string...
/* * Copyright (c) 2017 Akil Darjean (adarjean@uh.edu) * Distributed under the MIT License. * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT */ #include "window.h" #include <iostream> #include <string> int main(int argc, char const* argv[]) { Window window; if (argc > 1) {...
Make application open only if file is provided
Make application open only if file is provided
C++
mit
adarj/sfml-image-viewer
dae30865248bda0cf7e3dbd94ff63919b57ae0df
testapp/main.cpp
testapp/main.cpp
#include <cstdio> int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); for (;;) ; return 0; }
#include <cstdio> #include <unistd.h> int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); sleep(100000000); return 0; }
Change infinite loop to sleep
Change infinite loop to sleep
C++
mit
scen/osxinj,scen/osxinj,pandazheng/osxinj,pandazheng/osxinj
ba71fa4f3945c35109077ef3ebeace3b822ebfa4
src/driver/clang.cpp
src/driver/clang.cpp
#include "clang.h" #include <memory> #include <utility> #pragma warning(push, 0) #include <clang/Basic/Diagnostic.h> #include <clang/Basic/DiagnosticIDs.h> #include <clang/Basic/VirtualFileSystem.h> // Fixes "Member access into incomplete type 'clang::vfs::FileSystem'". #include <clang/Driver/Compilation.h> #include <c...
#include "clang.h" #include <memory> #include <utility> #pragma warning(push, 0) #include <clang/Basic/Diagnostic.h> #include <clang/Basic/DiagnosticIDs.h> #include <clang/Basic/VirtualFileSystem.h> // Fixes "Member access into incomplete type 'clang::vfs::FileSystem'". #include <clang/Driver/Compilation.h> #include <c...
Fix diagnostics when using Clang compilation API
Fix diagnostics when using Clang compilation API
C++
mit
emlai/delta,emlai/delta,delta-lang/delta,delta-lang/delta,delta-lang/delta,emlai/delta,delta-lang/delta,emlai/delta
1fa4887fc31fa97e6c785466142fcf0cb532d08e
cell.cpp
cell.cpp
#include "cell.hpp" namespace roadagain { Cell::Cell() : color(EMPTY) { } Cell::Cell(const Point& point, CellColor color) : point(point), color(color) { } void Cell::reverse() { color_ = reversed(color_); } } // namespace roadagain
#include "cell.hpp" namespace roadagain { Cell::Cell() : color(EMPTY) { } Cell::Cell(const Point& point, CellColor color) : point_(point), color_(color) { } void Cell::reverse() { color_ = reversed(color_); } } // namespace roadagain
Fix wrong member names in Cell
Fix wrong member names in Cell
C++
mit
Roadagain/Reversi
341ad9d682ae7ae43018a4b8319d846c16333aad
tests/vector_io.cpp
tests/vector_io.cpp
#define BOOST_TEST_MODULE VexIO #include <boost/test/unit_test.hpp> #include <boost/test/tools/output_test_stream.hpp> #include <vexcl/vector.hpp> #include <vexcl/element_index.hpp> #include "context_setup.hpp" BOOST_AUTO_TEST_CASE(stream_vector) { boost::test_tools::output_test_stream output; vex::vector<int...
#define BOOST_TEST_MODULE VexIO #include <boost/test/unit_test.hpp> #if BOOST_VERSION >= 107100 # include <boost/test/tools/output_test_stream.hpp> #else # include <boost/test/output_test_stream.hpp> #endif #include <vexcl/vector.hpp> #include <vexcl/element_index.hpp> #include "context_setup.hpp" BOOST_AUTO_TEST_CA...
Include correct version of <boost/test/.../output_test_stream.hpp>
Include correct version of <boost/test/.../output_test_stream.hpp>
C++
mit
ddemidov/vexcl,ddemidov/vexcl
c07cc8f956b160d385b2e1cdd366362a471438ba
daemon/src/fabric.cpp
daemon/src/fabric.cpp
#include "fdsb/fabric.hpp" #include "fdsb/nid.hpp" #include "fdsb/harc.hpp" #include <unordered_map> using namespace fdsb; std::unordered_multimap<unsigned long long,Harc*> fabric; Harc &fdsb::get(const Nid &a, const Nid &b) { auto range = fabric.equal_range(Nid::dual_hash(a,b)); for (auto i : range) { if ((i-...
#include "fdsb/fabric.hpp" #include "fdsb/nid.hpp" #include "fdsb/harc.hpp" #include <unordered_map> using namespace fdsb; std::unordered_multimap<unsigned long long,Harc*> fabric; Harc &fdsb::get(const Nid &a, const Nid &b) { auto range = fabric.equal_range(Nid::dual_hash(a,b)); for (auto i = range.first; i != r...
Fix for map get iteration
Fix for map get iteration
C++
bsd-2-clause
dharc/dharc
725c4ccb0be9da9ded8833315778b54937eeefaa
lib/libport/string.cc
lib/libport/string.cc
/** ** \file libport/string.cc ** \brief string: implements file libport/string.hh */ #include <boost/lexical_cast.hpp> #include "libport/cstring" #include "libport/detect_win32.h" namespace libport { #ifdef WIN32 # define LIBPORT_BUFFER_SIZE 1024 const char* getWinErrorMessage() { static char msg_b...
/** ** \file libport/string.cc ** \brief string: implements file libport/string.hh */ #include <boost/lexical_cast.hpp> #include "libport/cstring" #include "libport/detect_win32.h" namespace libport { #ifdef WIN32 # define LIBPORT_BUFFER_SIZE 1024 const char* getWinErrorMessage() { static char msg_b...
Use static buffer instead of allocation in libport::getWinErrorMessage.
Use static buffer instead of allocation in libport::getWinErrorMessage. lib/libport/string.cc: Here.
C++
bsd-3-clause
aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport
999b297244a5e04f31b35163506532873fa7963a
src/io/CLocalizer.cpp
src/io/CLocalizer.cpp
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2008 Sean Gillies * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * b...
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2008 Sean Gillies * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * b...
Fix multithreading issue for MSVC caused by setlocale
Fix multithreading issue for MSVC caused by setlocale
C++
lgpl-2.1
libgeos/libgeos,mwtoews/libgeos,mwtoews/libgeos,mwtoews/libgeos,mwtoews/libgeos,libgeos/libgeos,libgeos/libgeos,mwtoews/libgeos,mwtoews/libgeos,libgeos/libgeos,libgeos/libgeos,mwtoews/libgeos
9d6d7fe5d28d3a0d572951451e62ff78f03807f0
cc/util/errors.cc
cc/util/errors.cc
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
Make the program crash if vasprintf cannot allocate memory.
Make the program crash if vasprintf cannot allocate memory. PiperOrigin-RevId: 260727250
C++
apache-2.0
google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink
976d0da58f495b181307dffdde17c3d8eedd787b
tests/compiler/fconv.cpp
tests/compiler/fconv.cpp
#include "output.h" Output output; float a = 123.0; int b = 79; unsigned int c = 24; int main() { float d = b; float e = c; output << (int) a; // CHECK: 0x0000007b output << (unsigned int) a; // CHECK: 0x0000007b output << (int) d; // CHECK: 0x0000004f }
#include "output.h" Output output; float a = 123.0; int b = 79; unsigned int c = 24; int main() { float d = b; float e = c; output << (int) a; // CHECK: 0x0000007b output << (unsigned int) a; // CHECK: 0x0000007b output << (int) d; // CHECK: 0x0000004f // output << (int) e; // XXX should be 0x18, but is...
Add a (commented out) incorrect conversion
Add a (commented out) incorrect conversion
C++
apache-2.0
FulcronZ/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,hoangt/NyuziProcessor,hoangt/NyuziProcessor,FulcronZ/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,FulcronZ/NyuziPr...
363c637a19913f75147c5a669cbf4326796691ce
src/utils/ShutdownManager.cpp
src/utils/ShutdownManager.cpp
// Copyright © 2017 Dmitriy Khaustov // // 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...
// Copyright © 2017 Dmitriy Khaustov // // 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...
Add clean handlers at shuttingdown
Add clean handlers at shuttingdown
C++
apache-2.0
xDimon/primitive
c95c95d975480e19dbb9935da75e26ee42536e46
libtatum/base/validate_timing_graph_constraints.cpp
libtatum/base/validate_timing_graph_constraints.cpp
#include "validate_timing_graph_constraints.hpp" #include "TimingGraph.hpp" #include "TimingConstraints.hpp" #include "tatum_error.hpp" #include "loop_detect.hpp" namespace tatum { bool validate_timing_graph_constraints(const TimingGraph& /*timing_graph*/, const TimingConstraints& /*timing_constraints*/) { //No...
#include "validate_timing_graph_constraints.hpp" #include "TimingGraph.hpp" #include "TimingConstraints.hpp" #include "tatum_error.hpp" #include "loop_detect.hpp" namespace tatum { bool validate_timing_graph_constraints(const TimingGraph& timing_graph, const TimingConstraints& timing_constraints) { //Check that...
Verify that clock domain sources are nodes of expected SOURCE type
Verify that clock domain sources are nodes of expected SOURCE type
C++
mit
verilog-to-routing/tatum,verilog-to-routing/tatum,kmurray/tatum,kmurray/tatum,verilog-to-routing/tatum,kmurray/tatum
5b711531e12ec0d54b2a8cab660dfbac04e70ab6
third_party/tcmalloc/win_allocator.cc
third_party/tcmalloc/win_allocator.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This is a simple allocator based on the windows heap. extern "C" { HANDLE win_heap; bool win_heap_init(bool use_lfh) { win_heap = HeapCreate(0...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This is a simple allocator based on the windows heap. extern "C" { HANDLE win_heap; bool win_heap_init(bool use_lfh) { win_heap = HeapCreate(0...
Fix the windows allocator to behave properly on realloc.
Fix the windows allocator to behave properly on realloc. The spec says that calling realloc(ptr, 0) should free ptr and return NULL. BUG=none TEST=none Review URL: http://codereview.chromium.org/196041 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@25612 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,M4sse/chromium.src,chuan9/chromium-crosswalk,dednal/chromium.src,chuan9/chromium-crosswalk,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,markYoungH/chromium.src,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,jaruba/chromium....
3de1e7c5776634e6c58b542a72fe64981e86e6ad
lib/Driver/Phases.cpp
lib/Driver/Phases.cpp
//===--- Phases.cpp - Transformations on Driver Types -------------------*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- Phases.cpp - Transformations on Driver Types -------------------*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Make phase names nouns not verbs.
Driver: Make phase names nouns not verbs. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@66883 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
aad73001d7a6e7df2868e451cd84ad1941aa05a4
samples/sprite/main.cpp
samples/sprite/main.cpp
// Copyright (C) 2015 Elviss Strazdins // This file is part of the Ouzel engine. #include "Application.h" void ouzelMain(const std::vector<std::string>& args) { OUZEL_UNUSED(args); ouzel::Settings settings; settings.driver = ouzel::video::Renderer::Driver::METAL; settings.size = ouzel::Size2(800.0f, ...
// Copyright (C) 2015 Elviss Strazdins // This file is part of the Ouzel engine. #include "Application.h" void ouzelMain(const std::vector<std::string>& args) { OUZEL_UNUSED(args); ouzel::Settings settings; //settings.driver = ouzel::video::Renderer::Driver::METAL; settings.size = ouzel::Size2(800.0f...
Disable Metal renderer for sample project
Disable Metal renderer for sample project
C++
unlicense
elnormous/ouzel,elvman/ouzel,elnormous/ouzel,elnormous/ouzel,Hotspotmar/ouzel,Hotspotmar/ouzel,Hotspotmar/ouzel,elvman/ouzel
a190c4b74449c9e7ef548e5d037f294915bb2f31
tests/unit/libparse/test_parser.cpp
tests/unit/libparse/test_parser.cpp
// gtest macros raise -Wsign-compare #pragma GCC diagnostic ignored "-Wsign-compare" #include <string> #include "gtest/gtest.h" #include "libparse/driver.h" #include "libparse/parser.tab.h" extern casmi_driver *global_driver; class ParserTest: public ::testing::Test { protected: virtual void SetUp() { global...
// gtest macros raise -Wsign-compare #pragma GCC diagnostic ignored "-Wsign-compare" #include <string> #include "gtest/gtest.h" #include "libparse/driver.h" #include "libparse/parser.tab.h" extern casmi_driver *global_driver; class ParserTest: public ::testing::Test { protected: virtual void SetUp() { global...
Make parser unit test slightly more complex
Make parser unit test slightly more complex
C++
bsd-3-clause
fhahn/casmi,fhahn/casmi,fhahn/casmi
0362fa7657bcadbcf652f01187d102b7d1b2bb78
src/Genes/Priority_Threshold_Gene.cpp
src/Genes/Priority_Threshold_Gene.cpp
#include "Genes/Priority_Threshold_Gene.h" #include <memory> #include <string> #include <algorithm> #include "Utility.h" class Board; Priority_Threshold_Gene::Priority_Threshold_Gene() : threshold(0.0) { } void Priority_Threshold_Gene::reset_properties() const { properties["Threshold"] = threshold; } void Pri...
#include "Genes/Priority_Threshold_Gene.h" #include <memory> #include <string> #include <algorithm> #include "Utility.h" class Board; Priority_Threshold_Gene::Priority_Threshold_Gene() : threshold(0.0) { } void Priority_Threshold_Gene::reset_properties() const { properties["Threshold"] = threshold; } void Pri...
Increase mutation size of Priority Threshold Gene
Increase mutation size of Priority Threshold Gene
C++
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
ea2128ec64702aeac05562eb044325a7dd14c1d5
source/Utility/RegularExpression.cpp
source/Utility/RegularExpression.cpp
//===-- RegularExpression.cpp -----------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//===-- RegularExpression.cpp -----------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
Use the new Regex::isValid() with no parameter
[lldb] Use the new Regex::isValid() with no parameter Differential Revision: https://reviews.llvm.org/D66463 git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@369398 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb
9f8d3efaf100441b33a37311097a32b87a531591
test/fixedcube-tests.cc
test/fixedcube-tests.cc
#include <gtest/gtest.h> #include <fixedcube.hh> #include <side.hh> using namespace Rubik; class FixedCubeTests : public testing::Test { private: static int n; public: int generateInteger() { return n++; } Side::Data generateSideData() { Side::Data result; for(unsigned int i=0; i<resul...
#include <gtest/gtest.h> #include <fixedcube.hh> #include <side.hh> using namespace Rubik; class FixedCubeTests : public testing::Test { private: static int n; public: CubeData data; public: FixedCubeTests() : data(top(generateSideData()). left(generateSideData()). front(generate...
Duplicate FixedCube test, move initializing cube data to fixture
Duplicate FixedCube test, move initializing cube data to fixture
C++
lgpl-2.1
kees-jan/rubik,kees-jan/rubik,kees-jan/rubik
d570a81571cdc41235315aeec346ac0a1f41f309
test/sanitizer_common/TestCases/symbolize_pc.cc
test/sanitizer_common/TestCases/symbolize_pc.cc
// RUN: %clangxx -O0 %s -o %t // RUN: %env_tool_opts=strip_path_prefix=/TestCases/ %run %t 2>&1 | FileCheck %s // UNSUPPORTED: i386-apple // // Tests __sanitizer_symbolize_pc. #include <stdio.h> #include <sanitizer/common_interface_defs.h> void SymbolizeCaller() { char data[1000]; __sanitizer_symbolize_pc(__builtin...
// RUN: %clangxx -O0 %s -o %t // RUN: %env_tool_opts=strip_path_prefix=/TestCases/ %run %t 2>&1 | FileCheck %s // REQUIRES: x86_64-target-arch // // Tests __sanitizer_symbolize_pc. #include <stdio.h> #include <sanitizer/common_interface_defs.h> void SymbolizeCaller() { char data[1000]; __sanitizer_symbolize_pc(__bu...
Use "REQUIRES: x86_64-target-arch" to disable the test on i386.
[asan] Use "REQUIRES: x86_64-target-arch" to disable the test on i386. My attempt to disable this test on i386 by adding "UNSUPPORTED: i386-apple" in r279880 wasn't succesful, so I'm using REQUIRES instead. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@279916 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
140a2605afa8d1863af74625c2c62198f68b30ac
test/C++Frontend/2007-05-23-TryFinally.cpp
test/C++Frontend/2007-05-23-TryFinally.cpp
// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep _Unwind_Resume | wc -l | grep {\[03\]} struct One { }; struct Two { }; void handle_unexpected () { try { throw; } catch (One &) { throw Two (); } }
// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep -c {handle\\|_Unwind_Resume} | grep {\[14\]} struct One { }; struct Two { }; void handle_unexpected () { try { throw; } catch (One &) { throw Two (); } }
Make this test pass if llvm-g++ was built without exception handling support.
Make this test pass if llvm-g++ was built without exception handling support. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@37488 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,ll...
193fdf6730721d55789b184d001115dcdc018e69
lib/MC/MCAsmMacro.cpp
lib/MC/MCAsmMacro.cpp
//===- MCAsmMacro.h - Assembly Macros ---------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- MCAsmMacro.h - Assembly Macros ---------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix another layering violation in assmebly macro dumping
[Asm] Fix another layering violation in assmebly macro dumping AsmToken is in the MCParser library, so we can't use its dump function from MCAsmMacro in the MC library. Instead, just print the string, which we don't need the MCParser library for. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@326810 91177308-...
C++
apache-2.0
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen...
47a700bf78cbf750f96ea0aab1114f82abcbdc94
test/CodeGenCXX/throw-expression-dtor.cpp
test/CodeGenCXX/throw-expression-dtor.cpp
// RUN: %clang_cc1 %s -emit-llvm-only -verify // PR7281 class A { public: ~A(); }; class B : public A { void ice_throw(); }; void B::ice_throw() { throw *this; }
// RUN: %clang_cc1 %s -emit-llvm -o - -fexceptions | FileCheck %s // PR7281 class A { public: ~A(); }; class B : public A { void ice_throw(); }; void B::ice_throw() { throw *this; }
Make sure this test doesn't break when we disallow throwing an exception in -fno-exceptions mode.
Make sure this test doesn't break when we disallow throwing an exception in -fno-exceptions mode. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@105432 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
ae0388bbc628df56df83df12607e65a4f51b1b5d
elsa/in/k0085.cc
elsa/in/k0085.cc
// complex double * int // originally found in package 'snd_7.8-1' // b.ii:7:19: error: invalid complex arithmetic operand types `double _Complex &' and `int &' // ERR-MATCH: invalid complex arithmetic operand types int main() { _Complex double a; int b; _Complex double c = a * b; }
// complex double * int // originally found in package 'snd_7.8-1' // b.ii:7:19: error: invalid complex arithmetic operand types `double _Complex &' and `int &' // ERR-MATCH: invalid complex arithmetic operand types int main() { _Complex double a; int b; _Complex double c = a * b; _Complex double d = b * a;...
Add int * complex double
Add int * complex double
C++
bsd-3-clause
angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar
19d7228365b23ebe0a11111a4dd7f75c709156e5
app/main.cpp
app/main.cpp
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
#include <QApplication> #include "gui/mainwindow.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); MainWindow window; window.show(); return app.exec(); }
Indent and fix include statement
Indent and fix include statement
C++
bsd-2-clause
csete/softrig,csete/softrig,csete/softrig
86491aff7f5c85d1ff23b8bbc0b715826142403d
src/rewrite/rewrite.cc
src/rewrite/rewrite.cc
#include <rewrite/desugarer.hh> #include <rewrite/pattern-binder.hh> #include <rewrite/rewrite.hh> #include <rewrite/rescoper.hh> namespace rewrite { // FIXME: template-factor those two ast::rNary rewrite(ast::rConstNary nary) { Desugarer desugar; Rescoper rescope; ast::rAst res; desugar(nary....
#include <rewrite/desugarer.hh> #include <rewrite/pattern-binder.hh> #include <rewrite/rewrite.hh> #include <rewrite/rescoper.hh> namespace rewrite { ast::rNary rewrite(ast::rConstNary nary) { return rewrite(ast::rConstExp(nary)).unsafe_cast<ast::Nary>(); } ast::rExp rewrite(ast::rConstExp nary) { ...
Make inner call instead of duplicating the code.
Make inner call instead of duplicating the code. * src/rewrite/rewrite.cc (rewrite(ast::rConstNary)): Put appropriate type casts around an inner call rather than duplicate the code.
C++
bsd-3-clause
aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi
9a6e8197da2069ca43e796693f631d2f23341ac0
system/MessageBase.cpp
system/MessageBase.cpp
#include "MessageBase.hpp" #include "MessageBaseImpl.hpp" namespace Grappa { /// Internal messaging functions namespace impl { /// @addtogroup Communication /// @{ void Grappa::impl::MessageBase::legacy_send_message_am( char * buf, size_t size, void * payload, size_t payload_size ) { Grappa::...
#include "MessageBase.hpp" #include "MessageBaseImpl.hpp" namespace Grappa { /// Internal messaging functions namespace impl { /// @addtogroup Communication /// @{ void Grappa::impl::MessageBase::legacy_send_message_am( char * buf, size_t size, void * payload, size_t payload_size ) { Grappa::...
Disable auto-enqueue functionality in message destructor.
Disable auto-enqueue functionality in message destructor.
C++
bsd-3-clause
alexfrolov/grappa,buaasun/grappa,uwsampa/grappa,uwsampa/grappa,alexfrolov/grappa,buaasun/grappa,alexfrolov/grappa,buaasun/grappa,uwsampa/grappa,buaasun/grappa,alexfrolov/grappa,alexfrolov/grappa,alexfrolov/grappa,alexfrolov/grappa,uwsampa/grappa,uwsampa/grappa,buaasun/grappa,buaasun/grappa,buaasun/grappa,uwsampa/grappa...
7bf9f5339cbab6555c5f171daa07851ff0e7502e
src/symbolicEngine/symbolicElement.cpp
src/symbolicEngine/symbolicElement.cpp
#include "SymbolicEngine.h" SymbolicElement::SymbolicElement(std::stringstream &dst, std::stringstream &src, uint64_t id) { //this->isTainted = !TAINTED; this->source = new std::stringstream(src.str()); this->destination = new std::stringstream(dst.str()); this->expression = new std::stringstream(); ...
#include "SymbolicEngine.h" SymbolicElement::SymbolicElement(std::stringstream &dst, std::stringstream &src, uint64_t id) { this->isTainted = false; this->source = new std::stringstream(src.str()); this->destination = new std::stringstream(dst.str()); this->expression = new std::stringstream(); *t...
Fix taint attribute in sym element
Fix taint attribute in sym element
C++
apache-2.0
JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton
074d68da6e27c3b8173fb0a319a908915cb2da86
packages/Search/test/tstException.cpp
packages/Search/test/tstException.cpp
/**************************************************************************** * Copyright (c) 2012-2019 by the DataTransferKit authors * * All rights reserved. * * * * This ...
/**************************************************************************** * Copyright (c) 2012-2019 by the DataTransferKit authors * * All rights reserved. * * * * This ...
Check that the assertion macro does not throw when the condition is satisfied
Check that the assertion macro does not throw when the condition is satisfied
C++
bsd-3-clause
ORNL-CEES/DataTransferKit,Rombur/DataTransferKit,ORNL-CEES/DataTransferKit,Rombur/DataTransferKit,Rombur/DataTransferKit,ORNL-CEES/DataTransferKit,Rombur/DataTransferKit,ORNL-CEES/DataTransferKit
ac8ed624426b7672793a3ea1cb269642ef7edbc7
native/cpp/CommonCpp/Tools/WorkerThread.cpp
native/cpp/CommonCpp/Tools/WorkerThread.cpp
#include "WorkerThread.h" #include "Logger.h" #include <sstream> namespace comm { WorkerThread::WorkerThread() : tasks(folly::MPMCQueue<std::unique_ptr<taskType>>(20)) { auto job = [this]() { while (true) { std::unique_ptr<taskType> lastTask; this->tasks.blockingRead(lastTask); if (lastTas...
#include "WorkerThread.h" #include "Logger.h" #include <sstream> namespace comm { WorkerThread::WorkerThread() : tasks(folly::MPMCQueue<std::unique_ptr<taskType>>(20)) { auto job = [this]() { while (true) { std::unique_ptr<taskType> lastTask; this->tasks.blockingRead(lastTask); if (lastTas...
Refactor error messages for worker threads
[native] Refactor error messages for worker threads Summary: Doing D1410 I missed the error messages that still indicate the operations are done on the database thread, while the rest of the code became more generic. To keep it consistent I think we should change those messages accordingly. I was also thinking, maybe ...
C++
bsd-3-clause
Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal
e313f3f00f577d6baa3c4ec6f0c96ada2780dd8a
modules/demomain.cpp
modules/demomain.cpp
#include <string> #include "runDiff.h" int main(int argc, const char * argv[]) { if (argc != 2 ) { std::cerr<<"Usage: "<<argv[0]<<" input file name"<<std::endl; return 1; } runFiles(string(argv[1])); return 0; }
#include <string> #include "runDiff.h" int main(int argc, const char * argv[]) { if (argc != 2 ) { std::cerr<<"Usage: "<<argv[0]<<" input file name"<<std::endl; return 1; } runFiles(std::string(argv[1])); return 0; }
Use std::string instead of string (error fix, compiles now)
Use std::string instead of string (error fix, compiles now)
C++
bsd-3-clause
Submitty/Submitty,RCOS-Grading-Server/HWserver,RCOS-Grading-Server/HWserver,UuqV/HomeworkServerHack,RCOS-Grading-Server/HWserver,Submitty/Submitty,RCOS-Grading-Server/HWserver,RCOS-Grading-Server/HWserver,Submitty/Submitty,RCOS-Grading-Server/HWserver,UuqV/HomeworkServerHack,Submitty/Submitty,Submitty/Submitty,RCOS-Gra...
95e7dd44a6e106444c13d4ca36968cb1e9e8d231
src/parser/parser_nn.cpp
src/parser/parser_nn.cpp
// This file is part of Parsito <http://github.com/ufal/parsito/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a cop...
// This file is part of Parsito <http://github.com/ufal/parsito/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a cop...
Add skeleton of parser::parse implementation.
Add skeleton of parser::parse implementation. What remains is the method for computing which transition to perform.
C++
mpl-2.0
ufal/parsito,ufal/parsito,ufal/parsito,ufal/parsito,ufal/parsito,ufal/parsito,ufal/parsito,ufal/parsito
e8e58a393a5aa9129f4ce43b4413de510ff142c6
sklist/Source.cpp
sklist/Source.cpp
#include <iostream> #include "List.h" using namespace std; using namespace List_h; void foo() { Skip_list ll; for (auto i = -50; i < 50000; ++i) { ll.push_back(i); } ll.display(); } int main() { Skip_list sl; sl.push_back(3); sl.push_back(6); sl.push_back(7); sl.pus...
#include <vector> #include <initializer_list> #include <algorithm> #include <random> #include <iostream> #include <ctime> #include "List.h" using namespace std; using namespace List_h; void foo() { Skip_list ll; for (auto i = -50; i < 50000; ++i) { ll.push_back(i); } ll.display(); } int mai...
Change example a little bit
Change example a little bit
C++
mit
vpetrigo/skip-list,vpetrigo/skip-list
2477221f8adc240c2b2b5a64b8935d1d44136aa6
Animator.cpp
Animator.cpp
#include "Animator.h" namespace hm { Animator::Animator() { } Animator::~Animator() { } void Animator::add(Animation a) { animations.push_back(a); return; } void Animator::add(AnimationQueue q) { queues.push_back(q); return; } void Animator::clearAnimations() { animations.clear(); ret...
#include "Animator.h" namespace hm { Animator::Animator() { } Animator::~Animator() { } void Animator::add(Animation a) { animations.push_back(a); return; } void Animator::add(AnimationQueue q) { queues.push_back(q); return; } void Animator::clearAnimations() { animations.clear(); ret...
Correct call to remove empty queues.
Correct call to remove empty queues.
C++
lgpl-2.1
mdclyburn/hume
cfa426edc4b614175b4ffc638ff2198c7544a0ec
test/ofp/protocoliterator_unittest.cpp
test/ofp/protocoliterator_unittest.cpp
// Copyright (c) 2015-2016 William W. Fisher (at gmail dot com) // This file is distributed under the MIT License. #include "ofp/protocoliterator.h" #include "ofp/unittest.h" using namespace ofp; TEST(protocoliterator, ProtocolRangeItemCount) { UInt64 buffer; ByteRange data{&buffer, 0UL}; const size_t unused =...
// Copyright (c) 2015-2016 William W. Fisher (at gmail dot com) // This file is distributed under the MIT License. #include "ofp/protocoliterator.h" #include "ofp/unittest.h" using namespace ofp; TEST(protocoliterator, ProtocolRangeItemCount) { UInt64 buffer; ByteRange data{&buffer, static_cast<size_t>(0)}; co...
Fix ambiguity for 32-bit gcc.
Fix ambiguity for 32-bit gcc.
C++
mit
byllyfish/oftr,byllyfish/libofp,byllyfish/oftr,byllyfish/oftr,byllyfish/oftr,byllyfish/libofp,byllyfish/oftr,byllyfish/libofp
ee3e2b37021d37606364920d3b620a92a6096630
utilities/dselrigpart/dselrig_part.cpp
utilities/dselrigpart/dselrig_part.cpp
#include "dselrig_part.h" #include "eavesdroppermodel.h" #include <kdemacros.h> #include <kparts/genericfactory.h> #include <QLabel> #include <QTreeView> #include <QVBoxLayout> K_PLUGIN_FACTORY(DselRigPartFactory, registerPlugin<DselRigPart>();) // produce a factory K_EXPORT_PLUGIN(DselRigPartFactory("DselRig", "Ds...
#include "dselrig_part.h" #include "eavesdroppermodel.h" #include <kdemacros.h> #include <kparts/genericfactory.h> #include <QLabel> #include <QTreeView> #include <QVBoxLayout> K_PLUGIN_FACTORY(DselRigPartFactory, registerPlugin<DselRigPart>();) // produce a factory K_EXPORT_PLUGIN(DselRigPartFactory("DselRig", "Ds...
Remove the QLabel, it's a leftover from getting the KPart to work.
Remove the QLabel, it's a leftover from getting the KPart to work.
C++
lgpl-2.1
KDE/dferry,KDE/dferry