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
487bd34317fcde0aac0bea8cc371e8edfa9b4973
source/Utility/LLDBAssert.cpp
source/Utility/LLDBAssert.cpp
//===--------------------- LLDBAssert.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 // //===---------------------------...
//===--------------------- LLDBAssert.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 // //===---------------------------...
Revert r341387. (Calling abort() from lldb_assert()).
Revert r341387. (Calling abort() from lldb_assert()). rdar://problem/49356014
C++
apache-2.0
apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb
54a983f78badb54891ab9ea3758ddd93c6e22c9c
src/mlpack/tests/nmf_test.cpp
src/mlpack/tests/nmf_test.cpp
/** * @file nmf_test.cpp * @author Mohan Rajendran * * Test file for NMF class. */ #include <mlpack/core.hpp> #include <mlpack/methods/nmf/nmf.hpp> #include <boost/test/unit_test.hpp> #include "old_boost_test_definitions.hpp" BOOST_AUTO_TEST_SUITE(NMFTest); using namespace std; using namespace arma; using names...
/** * @file nmf_test.cpp * @author Mohan Rajendran * * Test file for NMF class. */ #include <mlpack/core.hpp> #include <mlpack/methods/nmf/nmf.hpp> #include <boost/test/unit_test.hpp> #include "old_boost_test_definitions.hpp" BOOST_AUTO_TEST_SUITE(NMFTest); using namespace std; using namespace arma; using names...
Comment out testing procedure for now because it doesn't work (yet).
Comment out testing procedure for now because it doesn't work (yet).
C++
bsd-3-clause
bmswgnp/mlpack,BookChan/mlpack,lezorich/mlpack,Azizou/mlpack,erubboli/mlpack,trungda/mlpack,ranjan1990/mlpack,ajjl/mlpack,ranjan1990/mlpack,palashahuja/mlpack,minhpqn/mlpack,chenmoshushi/mlpack,ersanliqiao/mlpack,thirdwing/mlpack,thirdwing/mlpack,stereomatchingkiss/mlpack,Azizou/mlpack,erubboli/mlpack,BookChan/mlpack,d...
68e90dc118ef958905e0c16b8dde5155db02a994
src/api/c/error.cpp
src/api/c/error.cpp
/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
Fix undefined set_stacktrace symbol by adding missing header in source
Fix undefined set_stacktrace symbol by adding missing header in source
C++
bsd-3-clause
umar456/arrayfire,umar456/arrayfire,umar456/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,9prady9/arrayfire,9prady9/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,umar456/arrayfire,arrayfire/arrayfire
1cc2c499309220a81e561c2784f6a5e60b235cdb
domains/integrator_chains/dynamaestro/examples/standalone/genproblem.cpp
domains/integrator_chains/dynamaestro/examples/standalone/genproblem.cpp
#include <iostream> #include <cstdlib> #include <Eigen/Dense> #include "problem.hpp" using namespace integrator_chains; int main() { Eigen::Vector2i numdim_output_bounds( 2, 2 ); Eigen::Vector2i num_integrators_bounds( 2, 2 ); Eigen::Vector4d Y_box; Y_box << -1, 10, -2, 10; Eigen::Vector4d U_...
#include <iostream> #include <cstdlib> #include <ctime> #include <Eigen/Dense> #include "problem.hpp" using namespace integrator_chains; int main() { Eigen::Vector2i numdim_output_bounds( 2, 2 ); Eigen::Vector2i num_integrators_bounds( 2, 2 ); Eigen::Vector4d Y_box; Y_box << -1, 10, -2, 10; E...
Resolve C standard library functions in std::
Resolve C standard library functions in std::
C++
bsd-3-clause
fmrchallenge/fmrbenchmark,fmrchallenge/fmrbenchmark,fmrchallenge/fmrbenchmark
f11c8131c283b6793d705985362db3c876e99ebe
src/ToJsonWriter.cpp
src/ToJsonWriter.cpp
#include "ToJsonWriter.h" #include <json/json.h> std::string ToJsonWriter::convertToJson(const Article* a) { Json::Value val; Json::Value array(Json::ValueType::arrayValue); for(auto ali = a->linkBegin(); ali != a->linkEnd(); ali++) { std::string tit = (*ali)->getTitle(); array.append(Js...
#include "ToJsonWriter.h" #include <json/json.h> Json::Value getArticleLinks(const Article* a) { Json::Value array(Json::ValueType::arrayValue); for(auto ali = a->linkBegin(); ali != a->linkEnd(); ali++) { std::string tit = (*ali)->getTitle(); array.append(Json::Value(tit)); } return...
Add conversion method for ArticleCollection
Add conversion method for ArticleCollection
C++
mit
dueringa/WikiWalker
04b90a62128fe46b4f7d06236fca77e85acce992
client/ui/cli/cli_client_main.cc
client/ui/cli/cli_client_main.cc
// Copyright (C) 2012, All Rights Reserved. // Author: Cory Maccarrone <darkstar6262@gmail.com> #include "client/ui/cli/cli_client.h" #include "gflags/gflags.h" #include "glog/logging.h" using backup::CliMain; int main(int argc, char* argv[]) { google::ParseCommandLineFlags(&argc, &argv, true); google::InitGoogl...
// Copyright (C) 2012, All Rights Reserved. // Author: Cory Maccarrone <darkstar6262@gmail.com> #include "client/ui/cli/cli_client.h" #include "gflags/gflags.h" #include "glog/logging.h" using backup::CliMain; int main(int argc, char* argv[]) { google::SetUsageMessage( "Usage: cli_client <options> <command>\...
Add simple help to the CLI client.
Add simple help to the CLI client. This should really be auto-generated by the commands themselves in CliMain() as a static function.
C++
bsd-3-clause
darkstar62/backup,darkstar62/backup,darkstar62/backup
e7990d07ddb17f3165bd9e08d1bc749e5197414a
2015-dec-silver/2-highcard/cpp11/main.cpp
2015-dec-silver/2-highcard/cpp11/main.cpp
#include <fstream> #include <iostream> #include <utility> #include <map> #include <set> #include <queue> #include <bitset> using namespace std; int main() { ifstream fin("highcard.in"); ofstream fout("highcard.out"); int num_sing_cards; fin >> num_sing_cards; bitset<100000> cards; for (int i = 0; i < num_sing...
#include <fstream> #include <bitset> using namespace std; int main() { ifstream fin("highcard.in"); ofstream fout("highcard.out"); int num_sing_cards; fin >> num_sing_cards; bitset<100000> cards; for (int i = 0; i < num_sing_cards; i++) { int card; fin >> card; cards[card - 1] = true; } int elsie = 0...
Remove debug and unused headers
2015-dec-silver/2-highcard/cpp11: Remove debug and unused headers
C++
mit
hsun324/usaco-solutions,hsun324/usaco-solutions
afffb47d76d9ae23d94e71d0e85e5b755612bbab
test/test_distance.cpp
test/test_distance.cpp
#include <gtest/gtest.h> #include "distance.h" using namespace testing; using namespace std::literals::distance_literals; namespace TestDistanceUnits { class DistanceTest : public Test { protected: std::units::si::distance<long int> distance{0}; }; TEST_F(DistanceTest, Constructor_WhenInv...
#include <gtest/gtest.h> #include "distance.h" using namespace testing; using namespace std::literals::distance_literals; namespace TestDistanceUnits { class DistanceTest : public Test { protected: std::units::si::distance<long int> distance{0}; }; TEST_F(DistanceTest, Constructor_WhenInv...
Check type similarity at runtim instead
Check type similarity at runtim instead Signed-off-by: Dave Brown <3eb4035e47bf510ef54544ee63f7ff38b3c2887e@bigdavedev.com>
C++
mit
bigdavedev/units,bigdavedev/units,bigdavedev/units
9054d065402c5ac12dcd281ad4919fb2e22b83de
tests/test_context.cpp
tests/test_context.cpp
#include <iostream> #include <string> #include <proxc/config.hpp> #include <proxc/context.hpp> #include <proxc/scheduler.hpp> #include "setup.hpp" using Context = proxc::Context; void printer(int x, int y) { SafeCout::print(x, ", ", y); } void test_context() { auto main_ctx = Context::running(); a...
#include <iostream> #include <string> #include <proxc/config.hpp> #include <proxc/context.hpp> #include <proxc/scheduler.hpp> #include "setup.hpp" using Context = proxc::Context; void printer(int x, int y) { SafeCout::print(x, ", ", y); } void test_context() { // TODO } int main() { test_context();...
Remove context test, context is to be reimpleemnted.
Remove context test, context is to be reimpleemnted.
C++
mit
edvardsp/libproxc
157f213338bb4450654b920fcc791f3378390a46
src/nbla/array/cpu_dlpack_array.cpp
src/nbla/array/cpu_dlpack_array.cpp
// Copyright (c) 2020 Sony Corporation. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
// Copyright (c) 2020 Sony Corporation. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
Fix missing std::memset for DLPack utils
[c++] Fix missing std::memset for DLPack utils
C++
apache-2.0
sony/nnabla,sony/nnabla,sony/nnabla
ae8efeba2d59ee8994d3cc7f0dfc92429da42822
lib/lb_xplane/logging.cpp
lib/lb_xplane/logging.cpp
#include "logging.h" XPLogAggregator xplog_aggregator; XPLogAggregator xplog_debug_aggregator; thread_local XPLogger xplog(xplog_aggregator); thread_local XPLogger xplog_debug(xplog_debug_aggregator); XPLogAggregator::XPLogAggregator() { XPLMCreateFlightLoop_t callback_info{ .structSize = sizeof(XPLMCre...
#include "logging.h" XPLogAggregator xplog_aggregator; XPLogAggregator xplog_debug_aggregator; thread_local XPLogger xplog(xplog_aggregator); thread_local XPLogger xplog_debug(xplog_debug_aggregator); XPLogAggregator::XPLogAggregator() { XPLMCreateFlightLoop_t callback_info{ .structSize = sizeof(XPLMCre...
Reorder struct initializer to try to fix build on non-mac platforms.
Reorder struct initializer to try to fix build on non-mac platforms.
C++
mit
leecbaker/datareftool,leecbaker/datareftool,leecbaker/datareftool
d65d3b818ac72ec4c379c456ab046a8eff0276e7
asylo/test/misc/raise_signal_test.cc
asylo/test/misc/raise_signal_test.cc
/* * * Copyright 2017 Asylo 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 or agree...
/* * * Copyright 2017 Asylo 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 or agree...
Initialize whole sigaction before use
Initialize whole sigaction before use PiperOrigin-RevId: 225025999
C++
apache-2.0
google/asylo,google/asylo,google/asylo,google/asylo,google/asylo,google/asylo
823e2464b309158215b04bd252d6762adfa61199
src/main.cpp
src/main.cpp
#include "main.h" #include <boost/program_options.hpp> #include <iostream> #include "application.h" namespace po = boost::program_options; using namespace simplicity; using namespace std; void print_version(void); int main(int argc, char **argv) { po::options_description program_desc("Simplicity window manager")...
#include "main.h" #include <boost/program_options.hpp> #include <iostream> #include "application.h" namespace po = boost::program_options; using namespace simplicity; using namespace std; void print_version(void); int main(int argc, char **argv) { po::options_description program_desc("Simplicity window manager")...
Use stderr to be consistent
Use stderr to be consistent
C++
mit
durandj/simplicity,durandj/simplicity
648fb6ac41a38a630c86277902f25ae39413b792
test/main.cc
test/main.cc
/* * ***************************************************************************** * Copyright 2014 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not * use this file except in compliance with the License. A copy of the License * is...
/* * ***************************************************************************** * Copyright 2014 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not * use this file except in compliance with the License. A copy of the License * is...
Print a message at the end of the test run so it's easier to determine if any of the tests failed.
Print a message at the end of the test run so it's easier to determine if any of the tests failed.
C++
apache-2.0
SpectraLogic/ds3_browser,Klopsch/ds3_browser,Klopsch/ds3_browser,SpectraLogic/ds3_browser,SpectraLogic/ds3_browser,Klopsch/ds3_browser
6b8c49289e0262b8567da171144ad88391d9d362
src/resyntax/RegExp.cpp
src/resyntax/RegExp.cpp
#include "RegExp.h" namespace tinygrep { namespace resyntax { RegExp::RegExp() : RegExp::RegExp(RegExpEnum::kEmpty) {} RegExp::RegExp(RegExpEnum type) : type_(type), r1_(nullptr), r2_(nullptr), literal_('\0') {} RegExp::RegExp(RegExpEnum type, literalType literal) : RegExp::RegExp(type) { literal_ = literal; } ...
#include "RegExp.h" namespace tinygrep { namespace resyntax { RegExp::RegExp() : RegExp::RegExp(RegExpEnum::kEmpty) {} RegExp::RegExp(RegExpEnum type) : type_(type), r1_(nullptr), r2_(nullptr), literal_('\0') {} RegExp::RegExp(RegExpEnum type, literalType literal) : RegExp::RegExp(type) { literal_ = literal; } ...
Use make_shared instead of raw smart pointer constructor.
Use make_shared instead of raw smart pointer constructor.
C++
mit
samuelz/tiny-grep,grawies/tiny-grep
a024a97b474678e7693a87b4d6d4b26d7e483a54
src/Qumulus/Gui/Widgets/ToolBar.cpp
src/Qumulus/Gui/Widgets/ToolBar.cpp
/* * Qumulus UML editor * Author: Randy Thiemann * */ #include "ToolBar.h" #include <Gui/Widgets/MainWindow.h> QUML_BEGIN_NAMESPACE_GW #ifdef Q_OS_MAC_disabled ToolBar::ToolBar(QObject* parent) : QObject(parent), mToolBar(new QMacNativeToolBar()) { } #else ToolBar::ToolBar(QObject* parent) : QObject(pare...
/* * Qumulus UML editor * Author: Randy Thiemann * */ #include "ToolBar.h" #include <Gui/Widgets/MainWindow.h> QUML_BEGIN_NAMESPACE_GW #ifdef Q_OS_MAC_disabled ToolBar::ToolBar(QObject* parent) : QObject(parent), mToolBar(new QMacNativeToolBar()) { } #else ToolBar::ToolBar(QObject* parent) : QObject(pare...
Set the toolbar to be static in its location. It looks ugly otherwise.
Set the toolbar to be static in its location. It looks ugly otherwise.
C++
apache-2.0
SynthiNet/Qumulus,SynthiNet/Qumulus,SynthiNet/Qumulus,SynthiNet/Qumulus
c518724c79f8d9458956b9f954a87046a83381b8
app-counter/main.cpp
app-counter/main.cpp
#include "counter_application.hpp" #include <lib-tmsp/server.hpp> #include <boost/exception/diagnostic_information.hpp> #include <boost/log/trivial.hpp> int main(int argc, char const* argv[]) { if(argc < 3) { BOOST_LOG_TRIVIAL(info) << "Provide TMSP listening endpoint on command line. Example: 0.0.0.0 46658"; r...
#include "counter_application.hpp" #include <lib-tmsp/server.hpp> #include <boost/exception/diagnostic_information.hpp> #include <boost/log/trivial.hpp> int main(int argc, char const* argv[]) { if(argc < 3) { BOOST_LOG_TRIVIAL(info) << "Provide TMSP listening endpoint on command line. Example: 0.0.0.0 46658"; r...
Change wording on thread synchronization
Change wording on thread synchronization
C++
mit
mdyring/cpp-tmsp,mdyring/cpp-tmsp
8a60a82d0db67344d6a3891be9b27735151a0bbe
source/chip/STM32/STM32L4/STM32L4-lowLevelInitialization.cpp
source/chip/STM32/STM32L4/STM32L4-lowLevelInitialization.cpp
/** * \file * \brief chip::lowLevelInitialization() implementation for STM32L4 * * \author Copyright (C) 2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not...
/** * \file * \brief chip::lowLevelInitialization() implementation for STM32L4 * * \author Copyright (C) 2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not...
Extend STM32L4's lowLevelInitialization() with flash initialization
Extend STM32L4's lowLevelInitialization() with flash initialization
C++
mpl-2.0
CezaryGapinski/distortos,jasmin-j/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,jasmin-j/distortos,jasmin-j/distortos,CezaryGapinski/distortos,CezaryGapinski/distortos,jasmin-j/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,jasmin-j/distortos,DISTORTEC/distortos,DISTORTEC/distortos
c205b2bed14335c402e946528d24d98cba8a1ea8
src/windows/windowsthread.cc
src/windows/windowsthread.cc
#include <windows.h> #include "system/thread.hh" using System::Thread; DWORD WINAPI startThread(LPVOID args); class Implementation : public Thread::ThreadImplementation { public: Implementation(Thread::Callable function) : _function(function) { } void start() { _threadHandle = Crea...
#include <windows.h> #include "system/thread.hh" using System::Thread; DWORD WINAPI startThread(LPVOID args); class Implementation : public Thread::ThreadImplementation { public: Implementation(Thread::Callable function) : _function(function) { } void start() { _threadHandle = Crea...
Fix type warning (and success value)
Fix type warning (and success value)
C++
mit
Frinter/fire-frame,Frinter/fire-frame
b313b34301c0efec30ffe58b8a5e9a840a64e4d3
test/Misc/ast-dump-wchar.cpp
test/Misc/ast-dump-wchar.cpp
// RUN: %clang_cc1 -std=c++11 -ast-dump %s | FileCheck %s char c8[] = u8"test\0\\\"\t\a\b\234"; // CHECK: char c8[12] = (StringLiteral {{.*}} lvalue u8"test\000\\\"\t\a\b\234") char16_t c16[] = u"test\0\\\"\t\a\b\234\u1234"; // CHECK: char16_t c16[13] = (StringLiteral {{.*}} lvalue u"test\000\\\"\t\a\b\234\u1234") ...
// RUN: %clang_cc1 -std=c++11 -ast-dump %s -triple x86_64-linux-gnu | FileCheck %s char c8[] = u8"test\0\\\"\t\a\b\234"; // CHECK: char c8[12] = (StringLiteral {{.*}} lvalue u8"test\000\\\"\t\a\b\234") char16_t c16[] = u"test\0\\\"\t\a\b\234\u1234"; // CHECK: char16_t c16[13] = (StringLiteral {{.*}} lvalue u"test\00...
Add triples to keep make test work on Windows, where wchar_t is only 16 bits wide.
Add triples to keep make test work on Windows, where wchar_t is only 16 bits wide. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@158425 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
7516451f6f3ed870af7cd8490ee34d9af5cc2a3a
test/CodeGenCXX/debug-info-ctor.cpp
test/CodeGenCXX/debug-info-ctor.cpp
// RUN: %clang -march=x86_64-apple-darwin10 -emit-llvm -g -S %s -o - | FileCheck %s struct X { X(int v); int value; }; X::X(int v) { // CHECK: call void @_ZN1XC2Ei(%struct.X* %this1, i32 %tmp), !dbg value = v; }
// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s struct X { X(int v); int value; }; X::X(int v) { // CHECK_TEMPORARILY_DISABLED: call void @_ZN1XC2Ei(%struct.X* %this1, i32 %tmp), !dbg // TEMPORARY CHECK: X value = v; }
Revert r110936; this fails on clang-i686-darwin10 too.
Revert r110936; this fails on clang-i686-darwin10 too. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@110942 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
2bfac28dc43c98b555397172c672f0b8cb592e93
src/sc2laddercore/ToolsUnix.cpp
src/sc2laddercore/ToolsUnix.cpp
#if defined(__unix__) || defined(__APPLE__) #include <iostream> #include <signal.h> #include <stdio.h> #include <unistd.h> #include "Types.h" #include "Tools.h" void StartBotProcess(const BotConfig &Agent, const std::string& CommandLine, void **ProcessId) { FILE* pipe = popen(CommandLine.c_str(), "r"); if (...
#if defined(__unix__) || defined(__APPLE__) #include <iostream> #include <signal.h> #include <stdio.h> #include <unistd.h> #include "Types.h" #include "Tools.h" void StartBotProcess(const BotConfig &Agent, const std::string& CommandLine, void **ProcessId) { FILE* pipe = popen(CommandLine.c_str(), "r"); if (...
Fix broken compilation on Linux/OS X
Fix broken compilation on Linux/OS X
C++
mit
Cryptyc/Sc2LadderServer,Cryptyc/Sc2LadderServer,Cryptyc/Sc2LadderServer
b8e87c99034785e702624a06b2f84afb90b32b7e
simulator/mips/mips_memory.cpp
simulator/mips/mips_memory.cpp
#include "mips_memory.h" #include "mips_instr.h" #include <infra/instrcache/instr_cache.h> FuncInstr MIPSMemory::fetch_instr( Addr PC) { const auto [found, value] = instr_cache.find( PC); FuncInstr instr = found ? value : FuncInstr( fetch( PC), PC); instr_cache.update( PC, instr); return instr; }
#include "mips_memory.h" #include "mips_instr.h" #include <infra/instrcache/instr_cache.h> FuncInstr MIPSMemory::fetch_instr( Addr PC) { const auto [found, value] = instr_cache.find( PC); // NOLINT https://bugs.llvm.org/show_bug.cgi?id=36283 FuncInstr instr = found ? value : FuncInstr( fetch( PC), PC); ...
Add NOLINT to C++17 structured binding code
Add NOLINT to C++17 structured binding code
C++
mit
MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips
5027ab8c8be4ca2045e6aa98ee26b942b518dcb8
src/matchercreationdialog.cpp
src/matchercreationdialog.cpp
#include "include/matchercreationdialog.h" #include "ui_matchercreationdialog.h" MatcherCreationDialog::MatcherCreationDialog(QWidget *parent) : QDialog(parent), ui(new Ui::MatcherCreationDialog) { ui->setupUi(this); } MatcherCreationDialog::~MatcherCreationDialog() { delete ui; } int MatcherCreationDialog::xbl...
#include "include/matchercreationdialog.h" #include "ui_matchercreationdialog.h" #include <QSettings> MatcherCreationDialog::MatcherCreationDialog(QWidget *parent) : QDialog(parent), ui(new Ui::MatcherCreationDialog) { ui->setupUi(this); QSettings settings; ui->xblocks->setValue(settings.value("xblocks").toInt(...
Load values in MatcherCreationDialog from settings
Load values in MatcherCreationDialog from settings
C++
mit
pawloKoder/Chin
bb34e73c7eb79aefec3fd185a0a09a5d119c9f1d
test/hexagon/codegen/vzero.cpp
test/hexagon/codegen/vzero.cpp
#include <Halide.h> #include "vzero.h" #include <stdio.h> using namespace Halide; // RUN: rm -f vzero.stdout; ./vzero.out; llvm-dis -o vzero.stdout vzero.bc; FileCheck %s < vzero.stdout int main(int argc, char **argv) { Target target; setupHexagonTarget(target); target.set_feature(Target::HVX_64); //CHECK: ca...
#include <Halide.h> #include "vzero.h" #include <stdio.h> using namespace Halide; // RUN: rm -f vzero.stdout; ./vzero.out; llvm-dis -o vzero.stdout vzero.bc; FileCheck %s < vzero.stdout int main(int argc, char **argv) { Target target; setupHexagonTarget(target, Target::HVX_64); //CHECK: call{{.*}}@llvm.hexagon....
Fix error in setting both HVX_64 and HVX_128 at same time
Fix error in setting both HVX_64 and HVX_128 at same time Former-commit-id: 702e785ff0c32457d741a46c15fa48b650cf9227
C++
mit
Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide
d2152c4cde9faa06d41f7aa9ced838e82918e7ee
src/ports/SkFontConfigInterface.cpp
src/ports/SkFontConfigInterface.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 "SkFontConfigInterface.h" #include "SkFontMgr.h" #include "SkMutex.h" #include "SkRefCnt.h" SK_DECLARE_STATIC_MUTEX(gFontConfigInterfaceMutex); static sk_sp<SkFontCo...
/* * 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 "SkFontConfigInterface.h" #include "SkFontMgr.h" #include "SkMutex.h" #include "SkRefCnt.h" SK_DECLARE_STATIC_MUTEX(gFontConfigInterfaceMutex); static SkFontConfigIn...
Remove static initializer to register destructor.
Remove static initializer to register destructor. Skia cannot have global sk_sp objects because they will register an exit time destructor which will be done through a static initializer. BUG=chromium:843858 Change-Id: I43e3d18c9d8b50ff067414148c7524bffd3523da Reviewed-on: https://skia-review.googlesource.com/128843...
C++
bsd-3-clause
rubenvb/skia,google/skia,google/skia,HalCanary/skia-hc,rubenvb/skia,google/skia,rubenvb/skia,google/skia,HalCanary/skia-hc,rubenvb/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,google...
e058deee2492a7e964c82e53a13b4b67049bcb13
kontsevich_graph_sum.cpp
kontsevich_graph_sum.cpp
#include <kontsevich_graph_sum.hpp> template <class T> void KontsevichGraphSum<T>::reduce() { auto current_term = this->begin(); current_term->first *= current_term->second.sign(); current_term->second.sign(1); while (current_term < this->end()) { auto subsequent_term = current_term + 1; ...
#include "kontsevich_graph_sum.hpp" template <class T> void KontsevichGraphSum<T>::reduce() { auto current_term = this->begin(); while (current_term < this->end()) { current_term->first *= current_term->second.sign(); current_term->second.sign(1); auto subsequent_term = current_term...
Fix unintended behavior in KontsevichGraphSum's reduce() method: now all signs of graphs are properly set to 1.
Fix unintended behavior in KontsevichGraphSum's reduce() method: now all signs of graphs are properly set to 1.
C++
mit
rburing/kontsevich_graph_series-cpp
2c2be4a865310bb71b09e7e0cfa34562c8735c09
test/CodeGenCXX/debug-info-nrvo.cpp
test/CodeGenCXX/debug-info-nrvo.cpp
// RUN: %clangxx -target x86_64-unknown-unknown -g %s -emit-llvm -S -o - | FileCheck %s // RUN: %clangxx -target x86_64-unknown-unknown -g -fno-elide-constructors %s -emit-llvm -S -o - | FileCheck %s -check-prefix=NOELIDE struct Foo { Foo() = default; Foo(Foo &&other) { x = other.x; } int x; }; void some_function...
// RUN: %clangxx -target x86_64-unknown-unknown -g \ // RUN: %s -emit-llvm -S -o - | FileCheck %s // RUN: %clangxx -target x86_64-unknown-unknown -g \ // RUN: -fno-elide-constructors %s -emit-llvm -S -o - | \ // RUN: FileCheck %s -check-prefix=NOELIDE struct Foo { Foo() = default; Foo(Foo &&other) { x = oth...
Use FileCheck variable matchers for better test support
[CodeGen][test] Use FileCheck variable matchers for better test support Summary: Depending on how clang is built, it may discard the IR names and use names like `%2` instead of `%result.ptr`, causing tests that rely on the IR name to fail. Using FileCheck matchers makes the test work regardless of how clang is built. ...
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
a4b7b6e1d1d4aa160312584773bf07b196703291
proxyroles/singlerole.cpp
proxyroles/singlerole.cpp
#include "singlerole.h" #include <QVariant> namespace qqsfpm { /*! \qmltype SingleRole \inherits ProxyRole \inqmlmodule SortFilterProxyModel \brief Base type for the \l SortFilterProxyModel proxy roles defining a single role SingleRole is a convenience base class for proxy roles who define a sing...
#include "singlerole.h" #include <QVariant> namespace qqsfpm { /*! \qmltype SingleRole \inherits ProxyRole \inqmlmodule SortFilterProxyModel \brief Base type for the \l SortFilterProxyModel proxy roles defining a single role SingleRole is a convenience base class for proxy roles who define a sing...
Fix warning on unused parameter
proxyroles: Fix warning on unused parameter
C++
mit
oKcerG/SortFilterProxyModel
868af68aebb50d179fc45c86f7348ce8494e241b
test/std/language.support/support.dynamic/new.delete/new.delete.placement/new_array.pass.cpp
test/std/language.support/support.dynamic/new.delete/new.delete.placement/new_array.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. // //===----------------------------------------...
Allow placement new array test to consume extra bytes as specified by the standard.
Allow placement new array test to consume extra bytes as specified by the standard. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@273342 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
63b6f85f3975a87d298c796ba44fa1837c4c6e6f
tests/thread-test.cc
tests/thread-test.cc
#include <evenk/synch.h> #include <evenk/thread.h> #include <iostream> evenk::default_synch::lock_type lock; evenk::default_synch::cond_var_type cond; void thread_routine() { evenk::default_synch::lock_owner_type guard(lock); cond.notify_one(); // notify that the thread started cond.wait(guard); // wait for test...
#include <evenk/synch.h> #include <evenk/thread.h> #include <iostream> evenk::default_synch::lock_type lock; evenk::default_synch::cond_var_type cond; void thread_routine() { evenk::default_synch::lock_owner_type guard(lock); cond.notify_one(); // notify that the thread started cond.wait(guard); // wait for test...
Extend a bit the thread test output
Extend a bit the thread test output
C++
mit
ademakov/Evenk,ademakov/Evenk
63b6f37557365bcd4569078205084aa9f3963032
noudar-core/src/CPlainFileLoader.cpp
noudar-core/src/CPlainFileLoader.cpp
// // Created by monty on 08/12/16. // #include <string> #include <iostream> #include <fstream> #include <vector> #include "IFileLoaderDelegate.h" #include "CPlainFileLoader.h" namespace Knights { CPlainFileLoader::CPlainFileLoader() { } CPlainFileLoader::CPlainFileLoader(std::string prefix) : mPrefix(p...
// // Created by monty on 08/12/16. // #include <string> #include <iostream> #include <fstream> #include <vector> #include <Common.h> #include "IFileLoaderDelegate.h" #include "CPlainFileLoader.h" namespace Knights { CPlainFileLoader::CPlainFileLoader() { } CPlainFileLoader::CPlainFileLoader(std::string...
Use fopen instead of iostream
Use fopen instead of iostream For more uniformity with Android
C++
bsd-2-clause
TheFakeMontyOnTheRun/noudar-core,TheFakeMontyOnTheRun/noudar-core
07fbe487394fb3a84a4740b167969680748bd680
third_party/libunwindstack/tests/fuzz/PeCoffInterfaceFuzzer.cpp
third_party/libunwindstack/tests/fuzz/PeCoffInterfaceFuzzer.cpp
/* * Copyright 2021 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 applic...
/* * Copyright 2021 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 applic...
Add fuzzing for 32-bit PE/COFF files
Add fuzzing for 32-bit PE/COFF files The initial fuzzer implementation for PE/COFF only worked on 64-bit files, this is now fixed to also include 32-bit. I have also removed a comment that says that the basic fuzzer generated poor coverage because the coverage on oss-fuzz actually seems quite good. It is uncl...
C++
bsd-2-clause
google/orbit,google/orbit,google/orbit,google/orbit
90566f4678013c77a686a4d4db5935c8fa44a95e
src/scenes/emptyScene.cpp
src/scenes/emptyScene.cpp
#include "emptyScene.h" void emptyScene::setup(){ // parameters.add(param); loadCode("emptyScene/exampleCode.cpp"); } void emptyScene::update(){ } void emptyScene::draw(){ } void emptyScene::drawCode(){ string codeReplaced = getCodeWithParamsReplaced(); ofDrawBitmapString(codeReplace...
#include "emptyScene.h" void emptyScene::setup(){ // parameters.add(param); loadCode("emptyScene/exampleCode.cpp"); } void emptyScene::update(){ } void emptyScene::draw(){ drawCode(); } void emptyScene::drawCode(){ string codeReplaced = getCodeWithParamsReplaced(); ofDrawBitmapString(...
Update empty scene to draw code
Update empty scene to draw code
C++
mit
sh0w/recoded,quinkennedy/dayForNightSFPC,ofZach/dayForNightSFPC,roymacdonald/dayForNightSFPC,roymacdonald/dayForNightSFPC,quinkennedy/dayForNightSFPC,roymacdonald/dayForNightSFPC,quinkennedy/dayForNightSFPC,sh0w/recoded,roymacdonald/dayForNightSFPC,ofZach/dayForNightSFPC,sh0w/recoded,quinkennedy/dayForNightSFPC,sh0w/re...
704a62574990f75c4da466e44bc8842cdb41240a
winswitch.cpp
winswitch.cpp
#include <climits> #include <cstdlib> #include <cstring> #include <unistd.h> #include <iostream> #include <algorithm> #include <list> #include <deque> #include <vector> #include <X11/keysym.h> #include <xcb/xcb.h> #include <xcb/xcb_atom.h> #include <xcb/xcb_keysyms.h> #include <xcb/damage.h> #include <xcb/xinerama.h> #...
#include <xcb/xcb.h> #include <X11/keysym.h> #include "data_types.hpp" #include "x_event_handler.hpp" #include "x_connection.hpp" #include "x_client.hpp" #include "x_event_source.hpp" #include "x_client_container.hpp" #include "x_clients_preview.hpp" #include "layout_t.hpp" #include "grid.hpp" int main(int argc, char...
Remove superfluous headers from main file
Remove superfluous headers from main file
C++
bsd-3-clause
jotrk/x-choyce,jotrk/x-choyce
e3c9d52d6de2d59752e9c20fce34eadec6b925bd
test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
Fix erroneous test; was failing on darwin-ppc32. Fixes PR18469.
Fix erroneous test; was failing on darwin-ppc32. Fixes PR18469. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@199542 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
9e8710b2ca7652ae52458725722d6e3e25536a0e
lib/Analysis/AnalysisManager.cpp
lib/Analysis/AnalysisManager.cpp
//== AnalysisManager.cpp - Path sensitive analysis data manager ----*- C++ -*-// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//== AnalysisManager.cpp - Path sensitive analysis data manager ----*- C++ -*-// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix 'clang-cc -analyzer-display-progress' by flushing standard error after printing the name of the analyzed function.
Fix 'clang-cc -analyzer-display-progress' by flushing standard error after printing the name of the analyzed function. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@83369 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
4c75b85898eba01e9dc986eabe4982a5c3043630
test/test_list_graph.cpp
test/test_list_graph.cpp
#include <gtest/gtest.h> #include <graph/list_graph.hpp> namespace { class ListGraphTest : public ::testing::Test { protected: ListGraphTest() {} virtual ~ListGraphTest() {} virtual void SetUp() {} virtual void TearDown() {} }; } TEST_F(ListGraphTest, add_vertex) { ListGraph<false, int> g; E...
#include <gtest/gtest.h> #include <graph/list_graph.hpp> namespace { class ListGraphUndirectedTest : public ::testing::Test { protected: ListGraph<false, int> g; }; TEST_F(ListGraphUndirectedTest, test_add_vertex) { EXPECT_EQ(0, g.vertex_num()); g.add_vertex(Vertex<int>(2)); EXPECT_EQ(3, g.vertex_num...
Fix tests: store graph in fixture class
Fix tests: store graph in fixture class
C++
mit
sfod/simple-graph
2f2cbe8b2127107a047d1607dce2ac2abd05bb03
userland/src/add_two_ints_server.cpp
userland/src/add_two_ints_server.cpp
#include <algorithm> #include <chrono> #include <cmath> #include <iostream> #include <string> #include <sys/time.h> #include <thread> #include <rclcpp/rclcpp.hpp> #include <simple_msgs/AllBuiltinTypes.h> #include <simple_msgs/AllDynamicArrayTypes.h> #include <simple_msgs/AllPrimitiveTypes.h> #include <simple_msgs/All...
#include <algorithm> #include <chrono> #include <cmath> #include <iostream> #include <string> #include <sys/time.h> #include <thread> #include <rclcpp/rclcpp.hpp> #include <simple_msgs/AllBuiltinTypes.h> #include <simple_msgs/AllDynamicArrayTypes.h> #include <simple_msgs/AllPrimitiveTypes.h> #include <simple_msgs/All...
Move request header to a separate structure
Move request header to a separate structure
C++
apache-2.0
ros2/examples,ros2/examples,ros2/examples
275b6bbe1c32598773a79415f6f43d2f1f2d2d80
test/utilities/function.objects/refwrap/type_properties.pass.cpp
test/utilities/function.objects/refwrap/type_properties.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 tests to ensure that reference_wrapper<T> is trivially copyable. This was added to C++1z with the adoption of N4277, but libc++ already implemented it as a conforming extension. No code changes were needed, just more tests.
Add tests to ensure that reference_wrapper<T> is trivially copyable. This was added to C++1z with the adoption of N4277, but libc++ already implemented it as a conforming extension. No code changes were needed, just more tests. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@222132 91177308-0d34-0410-b5e6-96231b3...
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
82226533204b5c7ed414dc2a62479fbc95db3dcd
ODC/ODCManager.cpp
ODC/ODCManager.cpp
// // ODCManager.cpp // opendatacon_suite // // Created by Alan Murray on 6/06/2017. // // #include <opendatacon/ODCManager.h> namespace odc { ODCManager::ODCManager( uint32_t concurrencyHint, openpal::ICryptoProvider* crypto, std::function<void()> onThreadStart, std::function<void()> onTh...
// // ODCManager.cpp // opendatacon_suite // // Created by Alan Murray on 6/06/2017. // // #include <opendatacon/ODCManager.h> #include <iostream> namespace odc { ODCManager::ODCManager( uint32_t concurrencyHint, openpal::ICryptoProvider* crypto, std::function<void()> onThreadStart, std::f...
Add exception handling to threads
Add exception handling to threads
C++
apache-2.0
neilstephens/opendatacon,neilstephens/opendatacon,neilstephens/opendatacon,neilstephens/opendatacon,neilstephens/opendatacon,neilstephens/opendatacon,neilstephens/opendatacon
f7c53fef552fb1c14047dd0577ad9ade8da5acd0
moses/FF/SparseReorderingFeature.cpp
moses/FF/SparseReorderingFeature.cpp
#include <iostream> #include "SparseReorderingFeature.h" using namespace std; namespace Moses { SparseReorderingFeature::SparseReorderingFeature(const std::string &line) :StatefulFeatureFunction("StatefulFeatureFunction", line) { cerr << "Constructing a Sparse Reordering feature" << endl; } FFState* SparseReor...
#include <iostream> #include "moses/ChartHypothesis.h" #include "SparseReorderingFeature.h" using namespace std; namespace Moses { SparseReorderingFeature::SparseReorderingFeature(const std::string &line) :StatefulFeatureFunction("StatefulFeatureFunction",0, line) { cerr << "Constructing a Sparse Reordering fe...
Set dense feature count to 0
Set dense feature count to 0
C++
lgpl-2.1
alvations/mosesdecoder,moses-smt/mosesdecoder,alvations/mosesdecoder,KonceptGeek/mosesdecoder,emjotde/mosesdecoder_nmt,alvations/mosesdecoder,KonceptGeek/mosesdecoder,alvations/mosesdecoder,alvations/mosesdecoder,KonceptGeek/mosesdecoder,KonceptGeek/mosesdecoder,hychyc07/mosesdecoder,tofula/mosesdecoder,emjotde/mosesde...
9f04360ea1cdd2859a4445288b93d523a0f6e218
src/lib/geodata/scene/GeoSceneLicense.cpp
src/lib/geodata/scene/GeoSceneLicense.cpp
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright (C) 2012 Illya Kovalevskyy <illya.kovalevskyy@gmail.com> // #include "GeoSceneLicense.h...
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright (C) 2012 Illya Kovalevskyy <illya.kovalevskyy@gmail.com> // #include "GeoSceneLicense.h...
Use the short/full as fallback when the full/short is not set
Use the short/full as fallback when the full/short is not set
C++
lgpl-2.1
utkuaydin/marble,oberluz/marble,tzapzoor/marble,oberluz/marble,tzapzoor/marble,AndreiDuma/marble,tucnak/marble,Earthwings/marble,tzapzoor/marble,rku/marble,AndreiDuma/marble,utkuaydin/marble,Earthwings/marble,probonopd/marble,David-Gil/marble-dev,AndreiDuma/marble,quannt24/marble,tucnak/marble,tzapzoor/marble,tzapzoor/...
49ee9dcc8cac6733f11fb56c032b559ed7df0ecc
main.cpp
main.cpp
#include <iostream> #include "boost/program_options.hpp" using namespace std; namespace po = boost::program_options; int main(int argc, char **argv) { // Declare the supported options. po::options_description desc("Accepted options"); desc.add_options() ("help", "produce help message") (...
#include <iostream> #include "boost/program_options.hpp" using namespace std; namespace po = boost::program_options; po::variables_map parse_args(int argc, char **argv) { po::options_description desc("Accepted options"); desc.add_options() ("help", "produce help message") ("temp", "sort by te...
Refactor program options and make them "temp" and "location"
Refactor program options and make them "temp" and "location" * --temp to sort by temperature instead of location * "location" will be vector of the places to look up
C++
mit
torarvid/openweather
5c50ea40c076a137f11fb71f5ef99e3d37e01d0c
src/libclient/deviceinfo_unix.cpp
src/libclient/deviceinfo_unix.cpp
#include "deviceinfo.h" #include "log/logger.h" #include <QCryptographicHash> #include <QDir> #include <fstab.h> LOGGER(DeviceInfo); DeviceInfo::DeviceInfo() : d(NULL) { } DeviceInfo::~DeviceInfo() { } QString DeviceInfo::deviceId() const { if (int ret = setfsent() != 1) { LOG_ERROR(QString("Error ...
#include "deviceinfo.h" #include "log/logger.h" #include <QCryptographicHash> #include <QDir> #include <fstab.h> LOGGER(DeviceInfo); namespace { static const char* FSEntries[] = { "/", "/boot", NULL }; } DeviceInfo::DeviceInfo() : d(NULL) { } DeviceInfo::~DeviceInfo() { } QString D...
Check / and /boot for uuids, not only /.
Check / and /boot for uuids, not only /.
C++
bsd-3-clause
personalunion/glimpse_client-1,MKV21/glimpse_client,Kri-7-q/glimpse_client-1,personalunion/glimpse_client-1,personalunion/glimpse_client-1,HSAnet/glimpse_client,HSAnet/glimpse_client,Kri-7-q/glimpse_client-1,personalunion/glimpse_client-1,Kri-7-q/glimpse_client-1,MKV21/glimpse_client,MKV21/glimpse_client,MKV21/glimpse_...
968cd9fc028d097d3b76afd7742398f178c01c1f
testParser/main.cpp
testParser/main.cpp
#include <iostream> #include "../../Parser/Tagger/converter.h" void testConverter(string sentence); using namespace std; int main() { testConverter("This is a Bear"); testConverter("That is not a building"); /// Bug , comma in dictionary testConverter("Who told you that?"); // testConverter("Tha...
#include <iostream> #include "../../Parser/Tagger/converter.h" void testConverter(string sentence); using namespace std; int main() { testConverter("This is a Bear"); testConverter("That is not a building"); /// Bug , comma in dictionary testConverter("Who told you that?"); testConverter("That'...
Add more testcases with longer sentences
Add more testcases with longer sentences Tests seems suffice for now, merge to master
C++
mit
NLP/Unit-Testing
4040d5803dd357c4ec01db6040a3fb748e89afde
src/demo/system/main.cpp
src/demo/system/main.cpp
#include "demo/system/precompiled.h" #if (DEA_PLATFORM == DEA_PLATFORM_WINDOWS) #include <windows.h> #endif int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow) { /* Just the get this to compile for now */ (void*)hInstance; (void*)hPrevInstance; (void*)pScmdline; --iCmds...
#include "demo/system/precompiled.h" #include "engine/system/system.h" DEA_START() #if (DEA_PLATFORM == DEA_PLATFORM_WINDOWS) #include <windows.h> int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE prev_instance, PSTR cmd_line, int cmd_show) { /* Just the get this to compile for now */ (void*)hinstance; (void*)pre...
Create and destroy two windows
Demo: Create and destroy two windows
C++
mit
ropelinen/engine,ropelinen/engine
47cf06cf3db23069fce4650a5fc68021ea3151aa
uiMain.cpp
uiMain.cpp
#include <iostream> #include <memory> #include <boost/interprocess/ipc/message_queue.hpp> #include "messageQueue.h" using namespace boost::interprocess; int main() { std::unique_ptr<message_queue> mq = nullptr; try { mq = std::make_unique<message_queue>(open_only, mqName); } catch (std::exceptio...
#include <iostream> #include <memory> #include <fstream> #include <boost/interprocess/ipc/message_queue.hpp> #include "messageQueue.h" using namespace boost::interprocess; int main() { std::unique_ptr<message_queue> mq = nullptr; try { mq = std::make_unique<message_queue>(open_only, mqName); } c...
Read initial commands from file
Read initial commands from file
C++
apache-2.0
EnglishBreakfastTea/Vault-Tec-Tactical-Assistant,EnglishBreakfastTea/Vault-Tec-Tactical-Assistant
15b2fd6e53d3642cc2ecb13ec3c9c039830cf0e4
config/config_type_int.cc
config/config_type_int.cc
#include <inttypes.h> #include <stdlib.h> #include <config/config_type_int.h> ConfigTypeInt config_type_int; bool ConfigTypeInt::set(ConfigValue *cv, const std::string& vstr) { if (ints_.find(cv) != ints_.end()) return (false); const char *str = vstr.c_str(); char *endp; intmax_t imax; imax = strtoimax(str,...
#if !defined(__OPENNT) #include <inttypes.h> #endif #include <stdlib.h> #include <config/config_type_int.h> ConfigTypeInt config_type_int; bool ConfigTypeInt::set(ConfigValue *cv, const std::string& vstr) { if (ints_.find(cv) != ints_.end()) return (false); const char *str = vstr.c_str(); char *endp; intmax_t...
Use strtoll like strtoimax on Interix.
Use strtoll like strtoimax on Interix. git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@278 4068ffdb-0463-0410-8185-8cc71e3bd399
C++
bsd-2-clause
splbio/wanproxy,diegows/wanproxy,diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,splbio/wanproxy
10ed9819769e66f52cc6e22a74c2d96e601d7d26
test/SemaTemplate/recovery-crash.cpp
test/SemaTemplate/recovery-crash.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s // Clang used to crash trying to recover while adding 'this->' before Work(x); template <typename> struct A { static void Work(int); // expected-note{{must qualify identifier}} }; template <typename T> struct B : public A<T> { template <typename T2> B(T2 x) { Work...
// RUN: %clang_cc1 -fsyntax-only -verify %s // Clang used to crash trying to recover while adding 'this->' before Work(x); template <typename> struct A { static void Work(int); // expected-note{{must qualify identifier}} }; template <typename T> struct B : public A<T> { template <typename T2> B(T2 x) { Work...
Add testcase for PR16134, which no longer crashes with ToT.
Add testcase for PR16134, which no longer crashes with ToT. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@186849 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
c13966b76c7ed8d46404d7ffee10c1ab7fcc4b06
template/myLevel.cpp
template/myLevel.cpp
#include "stdafx.h" #include "myLevel.hpp" MyLevel::MyLevel() : AnnAbstractLevel() { } void MyLevel::load() { //For having a lighter syntax : auto engine(AnnEngine::Instance()); //Load Sinbad: auto Sinbad (engine->createGameObject("Sinbad.mesh")); Sinbad->setUpPhysics(100, phyShapeType::boxShape); //Add it to...
#include "stdafx.h" #include "myLevel.hpp" MyLevel::MyLevel() : AnnAbstractLevel() { } void MyLevel::load() { //For having a lighter syntax : auto engine(AnnEngine::Instance()); //Load Sinbad: auto Sinbad (engine->createGameObject("Sinbad.mesh")); Sinbad->setUpPhysics(100, phyShapeType::boxShape); //Add it to...
Make it compile on newer Annwvyn version
Make it compile on newer Annwvyn version
C++
mit
Ybalrid/Annwvyn,Ybalrid/Annwvyn,Ybalrid/Annwvyn
7096054dbf8cbecc29e77df7816bdf655e9e5982
build/print_sm_version.cpp
build/print_sm_version.cpp
#include <cuda_runtime_api.h> #include <stdio.h> int main(void) { int num_devices = 0; cudaGetDeviceCount(&num_devices); if(num_devices > 0) { cudaDeviceProp properties; cudaGetDeviceProperties(&properties, 0); printf("--gpu-architecture=sm_%d%d", properties.major, properties.minor); return 0; ...
#include <cuda_runtime_api.h> #include <stdio.h> #include <stdlib.h> void usage(const char *name) { printf("usage: %s [device_id]\n", name); } int main(int argc, char **argv) { int num_devices = 0; int device_id = 0; if(argc == 2) { device_id = atoi(argv[1]); } else if(argc > 2) { usage(argv[0...
Add an optional device_id command line argument.
Add an optional device_id command line argument.
C++
apache-2.0
levendlee/thrust,rdmenezes/thrust,lishi0927/thrust,malenie/thrust,Vishwa07/thrust,h1arshad/thrust,bfurtaw/thrust,allendaicool/thrust,malenie/thrust,Vishwa07/thrust,lishi0927/thrust,bfurtaw/thrust,google-code-export/thrust,hemmingway/thrust,rdmenezes/thrust,bfurtaw/thrust,UIKit0/thrust,allendaicool/thrust,h1arshad/thrus...
8617fa8c91dc457f8a84d5d5fd610d16f9a48acb
demo1/main.cpp
demo1/main.cpp
#include <iostream> #include "demo/demo.h" int main() { using namespace demo; // create demo Demo demo; // run demo demo.startup(); demo.run(); demo.shutdown(); return 0; }
#include <iostream> #include "demo/demo.h" int main() { // create demo demo::Demo demo; // run demo demo.startup(); demo.run(); demo.shutdown(); return 0; }
Remove using since it is unnecessary.
Remove using since it is unnecessary.
C++
mit
invaderjon/demo,invaderjon/demo
05f4531018d83a81091f16be7f1fd3bc6d5dbb1b
config.tests/sensord/main.cpp
config.tests/sensord/main.cpp
#include <sensormanagerinterface.h> int main() { SensorManagerInterface* m_remoteSensorManager; m_remoteSensorManager = &SensorManagerInterface::instance(); return 0; }
#include <sensormanagerinterface.h> #include <datatypes/magneticfield.h> int main() { SensorManagerInterface* m_remoteSensorManager; m_remoteSensorManager = &SensorManagerInterface::instance(); return 0; }
Add a header check to the sensord configure test.
Add a header check to the sensord configure test. This header seems to be missing on the pulse machine. This will effectively disable the maemo6 plugin on pulse but that's better than leaving the light red until we figure out what has happened.
C++
lgpl-2.1
qtproject/qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,kaltsi/qt-mobility,tmcguire/qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,qtproject/qt-mobility,enthought/qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,ent...
94c5758826aa2c8f5d656c62a1f72ec0c0bd3350
src/search/util/completion_counter.cc
src/search/util/completion_counter.cc
/* -*- mode:linux -*- */ /** * \file completion_counter.cc * * * * \author Ethan Burns * \date 2008-10-24 */ #include <pthread.h> #include "completion_counter.h" #include <iostream>; CompletionCounter::CompletionCounter(unsigned int max) : counter(0), max(max) { pthread_mutex_init(&mutex, NULL); pthread_co...
/* -*- mode:linux -*- */ /** * \file completion_counter.cc * * * * \author Ethan Burns * \date 2008-10-24 */ #include <pthread.h> #include "completion_counter.h" #include <iostream> CompletionCounter::CompletionCounter(unsigned int max) : counter(0), max(max) { pthread_mutex_init(&mutex, NULL); pthread_con...
Remove a ; from after a pre-processor directive
Remove a ; from after a pre-processor directive
C++
mit
eaburns/pbnf,eaburns/pbnf,eaburns/pbnf,eaburns/pbnf
f7ea982078ba5159b78ee68aa5e3b6ed83f64e6e
src/tac/Optimizer.cpp
src/tac/Optimizer.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) //=====================================================...
Introduce the structure of the optimizer
Introduce the structure of the optimizer
C++
mit
wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic
5ecf606e951c5e9ad173127d6f4fb44002bb4f85
src/test/test_oid.cpp
src/test/test_oid.cpp
#include <iostream> #include <gtest/gtest.h> #include <mongo/bson/bson.h> #include <mongo/client/dbclient.h> namespace { // Check that we can reproduce the example from bsonspec.org TEST(OID, gen) { const mongo::OID anOid = mongo::OID::gen(); } } // namespace
#include <gtest/gtest.h> #include <mongo/bson/bson.h> namespace { TEST(OID, gen) { const mongo::OID oid1 = mongo::OID::gen(); const mongo::OID oid2 = mongo::OID::gen(); EXPECT_NE(oid1, oid2); } } // namespace
Clean up test a bit
Clean up test a bit
C++
apache-2.0
acmorrow/mongo-cxx-driver-test
e5f4bf74dc458df7bc753950b5a5cb458960e382
cbits/HsQMLEngine.cpp
cbits/HsQMLEngine.cpp
#include <QtDebug> #include "hsqml.h" #include "HsQMLManager.h" #include "HsQMLEngine.h" #include "HsQMLObject.h" #include "HsQMLWindow.h" HsQMLEngine::HsQMLEngine(HsQMLEngineConfig& config) { mEngine.rootContext()->setContextObject(config.globalObject->object()); HsQMLWindow* win = new HsQMLWindow(this); win-...
#include <QtDebug> #include "hsqml.h" #include "HsQMLManager.h" #include "HsQMLEngine.h" #include "HsQMLObject.h" #include "HsQMLWindow.h" HsQMLEngine::HsQMLEngine(HsQMLEngineConfig& config) { // Obtain, re-parent, and set QML global object QObject* globalObject = config.globalObject->object(); globalObject->se...
Fix leaking QML global object on engine termination.
Fix leaking QML global object on engine termination. Ignore-this: 44b1eb2549692562150736cbdf5e8477 darcs-hash:20120528214902-4d2ae-007f9a88d8572ff57d5ce90d9ae31143163e7118
C++
bsd-3-clause
johntyree/HsQML,johntyree/HsQML
ae27181502d9a1453ea247e4d1509e249f9d0b1e
test/CodeGenCXX/static-init-pnacl.cpp
test/CodeGenCXX/static-init-pnacl.cpp
// RUN: %clang_cc1 -emit-llvm -triple=le32-unknown-nacl -o - %s | FileCheck %s int f(); // Test that PNaCl uses the Itanium/x86 ABI in which the static // variable's guard variable is tested via "load i8 and compare with // zero" rather than the ARM ABI which uses "load i32 and test the // bottom bit". void g() { s...
// RUN: %clang_cc1 -emit-llvm -triple=le32-unknown-nacl -o - %s | FileCheck %s int f(); // Test that PNaCl uses the Itanium/x86 ABI in which the static // variable's guard variable is tested via "load i8 and compare with // zero" rather than the ARM ABI which uses "load i32 and test the // bottom bit". void g() { s...
Make test pass in Release builds, IR names don't get emitted there.
Make test pass in Release builds, IR names don't get emitted there. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@187054 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
add2f6fd96bdef1e1f0faaebdc88af812d2e52e9
CLTool/src/clunix.cpp
CLTool/src/clunix.cpp
#include <stdlib.h> #include <stdio.h> #include "TexComp.h" int main(int argc, char **argv) { if(argc != 2) { fprintf(stderr, "Usage: %s <imagefile>\n", argv[0]); exit(1); } ImageFile file (argv[1]); SCompressionSettings settings; CompressedImage *ci = CompressImage(file, settings); // Clean...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "TexComp.h" void PrintUsage() { fprintf(stderr, "Usage: tc [-s|-t <num>] <imagefile>\n"); } int main(int argc, char **argv) { int fileArg = 1; int quality = 50; int numThreads = 1; bool bUseSIMD = false; bool knowArg = false; do ...
Add some more flag support to unix command line tool...
Add some more flag support to unix command line tool...
C++
apache-2.0
GammaUNC/FasTC,GammaUNC/FasTC,GammaUNC/FasTC,GammaUNC/FasTC
5072310d7695cf64acc19d4f6c3f2b25c2ed15e8
tests/GeantParser/JPetSmearingFunctions/JPetSmearingFunctionsTest.cpp
tests/GeantParser/JPetSmearingFunctions/JPetSmearingFunctionsTest.cpp
/** * @copyright Copyright 2018 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable law...
/** * @copyright Copyright 2018 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable law...
Change the smearing test values to non-zero
Change the smearing test values to non-zero
C++
apache-2.0
JPETTomography/j-pet-framework,JPETTomography/j-pet-framework,JPETTomography/j-pet-framework
8701b6e68ce876ad7a7c7c09f5b56d887cb10ccc
src/rtcmix/rtsetoutput.cpp
src/rtcmix/rtsetoutput.cpp
/* RTcmix - Copyright (C) 2000 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ #include <globals.h> #include <ugens.h> #include <iostream.h> #include "Instrument.h" #include "rtdefs.h" #include "d...
/* RTcmix - Copyright (C) 2000 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ #include <globals.h> #include <ugens.h> #include <iostream.h> #include "Instrument.h" #include "rtdefs.h" #include "d...
Fix roundoff error setting nsamps; return status rather than nsamps.
Fix roundoff error setting nsamps; return status rather than nsamps.
C++
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
f4f3260a4269ea6f6c00389101a9542e730fc9e8
ui/event/end_turn.cpp
ui/event/end_turn.cpp
// See LICENSE file for copyright and license details. #include "ui/event/end_turn.hpp" #include <cassert> #include <SDL/SDL_opengl.h> #include "core/misc.hpp" #include "core/v2i.hpp" #include "core/dir.hpp" #include "core/core.hpp" #include "core/path.hpp" #include "ui/v2f.hpp" #include "ui/vertex_array.hpp" #include...
// See LICENSE file for copyright and license details. #include "ui/event/end_turn.hpp" #include <cassert> #include <SDL/SDL_opengl.h> #include "core/misc.hpp" #include "core/v2i.hpp" #include "core/dir.hpp" #include "core/core.hpp" #include "core/path.hpp" #include "ui/v2f.hpp" #include "ui/vertex_array.hpp" #include...
Clear reachable tiles at the end of turn
Clear reachable tiles at the end of turn
C++
mit
ozkriff/marauder-cpp11
c97410eed21948f6ff1caa187e1ad4f924553733
lib/VMCore/TargetTransformInfo.cpp
lib/VMCore/TargetTransformInfo.cpp
//===- llvm/VMCore/TargetTransformInfo.cpp ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- llvm/VMCore/TargetTransformInfo.cpp ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add a comment which explains why the assert fired and how to fix it.
Add a comment which explains why the assert fired and how to fix it. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@166467 91177308-0d34-0410-b5e6-96231b3b80d8
C++
bsd-2-clause
dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,...
7b18ff7dd264df9675ff607d70315a8dbb370522
unittests/IR/TypesTest.cpp
unittests/IR/TypesTest.cpp
//===- llvm/unittest/IR/TypesTest.cpp - Type unit tests -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- llvm/unittest/IR/TypesTest.cpp - Type unit tests -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add unit test for isLayoutIdentical(empty, empty). It was previously asserting in Visual C++ debug mode on a null iterator passed to std::equal.
Add unit test for isLayoutIdentical(empty, empty). It was previously asserting in Visual C++ debug mode on a null iterator passed to std::equal. Test by Hans Wennborg! git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@245270 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror...
a0bdd4b49c8ece45f119f3765d77db3fffd2d9be
chrome/browser/iframe_uitest.cc
chrome/browser/iframe_uitest.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/basictypes.h" #include "base/file_path.h" #include "build/build_config.h" #include "chrome/test/ui/ui_test.h" #include "net/base/net_ut...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/basictypes.h" #include "base/file_path.h" #include "build/build_config.h" #include "chrome/test/ui/ui_test.h" #include "net/base/net_ut...
Mark IFrameTest.InEmptyFrame FAILS_ on OS_CHROMEOS.
Mark IFrameTest.InEmptyFrame FAILS_ on OS_CHROMEOS. BUG=100101 TEST=Failures expected on ChromeOS. TBR=oshima Review URL: http://codereview.chromium.org/8248004 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@105155 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,robclark/chromium,M4sse/chromium.src,mogoweb/chromium-crosswalk,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk...
178f2994cf1cbd811f2bb56c59944a5d380c354a
net/disk_cache/cache_util_posix.cc
net/disk_cache/cache_util_posix.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/disk_cache/cache_util.h" #include "base/file_util.h" #include "base/logging.h" #include "base/string_util.h" namespace disk_cache...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/disk_cache/cache_util.h" #include "base/file_util.h" #include "base/logging.h" #include "base/string_util.h" namespace disk_cache...
Change NOTREACHED for a LOG(WARNING) when we can't delete the cache. This should help the unit tests.
Change NOTREACHED for a LOG(WARNING) when we can't delete the cache. This should help the unit tests. BUG:38562 Review URL: http://codereview.chromium.org/1594002 git-svn-id: http://src.chromium.org/svn/trunk/src@43446 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 1a6fbfa4969ddcad1790b8336932df99e854a956
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...
53804fc57065252789ce614a0536b3cd97f90dcb
src/frustum_optimizer.cpp
src/frustum_optimizer.cpp
#include "./frustum_optimizer.h" #include "./nodes.h" FrustumOptimizer::FrustumOptimizer(std::shared_ptr<Nodes> nodes) : nodes(nodes) { } void FrustumOptimizer::update(Eigen::Matrix4f viewMatrix) { float min = std::numeric_limits<float>::max(); float max = -min; for (auto node : nodes->getNodes()) { auto ...
#include "./frustum_optimizer.h" #include <limits> #include <algorithm> #include "./nodes.h" FrustumOptimizer::FrustumOptimizer(std::shared_ptr<Nodes> nodes) : nodes(nodes) { } void FrustumOptimizer::update(Eigen::Matrix4f viewMatrix) { float min = std::numeric_limits<float>::max(); float max = -min; for (auto ...
Fix linting errors in FrustumOptimizer.
Fix linting errors in FrustumOptimizer.
C++
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
8509914ef9c38ba956ae83884c011869a99dc175
thinglang/foundation/classes/io/filesystem/DirectoryType.cpp
thinglang/foundation/classes/io/filesystem/DirectoryType.cpp
#include <dirent.h> #include "../../../../runtime/types/InternalTypes.h" void DirectoryType::__constructor__() { auto self = Program::create<DirectoryInstance>(); auto file_path = Program::argument<TextInstance>(); self->file_path = file_path->text(); Program::push(self); } void DirectoryType::contents() { ...
#include <dirent.h> #include "../../../../runtime/types/InternalTypes.h" void DirectoryType::__constructor__() { auto self = Program::create<DirectoryInstance>(); auto file_path = Program::argument<TextInstance>(); self->file_path = file_path->text(); Program::push(self); } void DirectoryType::contents() { ...
Make directory exceptions more usable
Make directory exceptions more usable
C++
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
d3a8ebc119cf89bc3d21d24b864f58af73a62a0f
source/glexamples-viewer/main.cpp
source/glexamples-viewer/main.cpp
#if defined(WIN32) && !defined(_DEBUG) #pragma comment(linker, "/SUBSYSTEM:WINDOWS /entry:mainCRTStartup") #endif #include <memory> #include <QFileInfo> #include <gloperate-qt/viewer/Application.h> #include <gloperate-qt/viewer/Viewer.h> #include <widgetzeug/dark_fusion_style.hpp> class Application : public glo...
#if defined(WIN32) && !defined(_DEBUG) #pragma comment(linker, "/SUBSYSTEM:WINDOWS /entry:mainCRTStartup") #endif #include <memory> #include <QFileInfo> #include <gloperate-qt/viewer/Application.h> #include <gloperate-qt/viewer/Viewer.h> #include <widgetzeug/dark_fusion_style.hpp> #include "glexamples-version.h"...
Use project definitions for version info
Use project definitions for version info
C++
mit
p-otto/glexamples,hpicgs/glexamples,Beta-Alf/glexamples,JenniferStamm/glexamples,cginternals/glexamples,Beta-Alf/glexamples
d924574d9762b79a6e38b1c49b0d95ba500bda16
tests/main.cpp
tests/main.cpp
#include <stdint.h> #include <stdio.h> #include "impl.h" int main(int /*argc*/, const char ** /*argv*/) { SSE2NEON::SSE2NEONTest *test = SSE2NEON::SSE2NEONTest::create(); uint32_t passCount = 0; uint32_t failedCount = 0; for (uint32_t i = 0; i < SSE2NEON::IT_LAST; i++) { SSE2NEON::InstructionTe...
#include <stdint.h> #include <stdio.h> #include "impl.h" int main(int /*argc*/, const char ** /*argv*/) { SSE2NEON::SSE2NEONTest *test = SSE2NEON::SSE2NEONTest::create(); uint32_t passCount = 0; uint32_t failedCount = 0; for (uint32_t i = 0; i < SSE2NEON::IT_LAST; i++) { SSE2NEON::InstructionTe...
Return -1 exit code when unit test fails
test: Return -1 exit code when unit test fails
C++
mit
DLTcollab/sse2neon,DLTcollab/sse2neon,DLTcollab/sse2neon
9e7540e490900261ecc263a941bbf5692d7b373a
lib/libport/perror.cc
lib/libport/perror.cc
/** ** \file libport/perror.cc ** \brief perror: implements file libport/perror.hh */ #include <cstdio> #include <iostream> #include "libport/cstring" namespace libport { void perror (const char* s) { #ifndef WIN32 ::perror(s); #else int errnum; const char* errstring; const char* colon; ...
/** ** \file libport/perror.cc ** \brief perror: implements file libport/perror.hh */ #include <cstdio> #include <iostream> #include "libport/windows.hh" #include "libport/cstring" namespace libport { void perror (const char* s) { #ifndef WIN32 ::perror(s); #else int errnum; const char* errstri...
Add missing header for windows.
Add missing header for windows. * lib/libport/perror.cc: Here.
C++
bsd-3-clause
aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport
277ebecdb7d2194d7c12f4770ccb5104847756bc
test/CodeGenCXX/linetable-fnbegin.cpp
test/CodeGenCXX/linetable-fnbegin.cpp
// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s // Test that the line table info for Foo<T>::bar() is pointing to the // right header file. // CHECK: define{{.*}}bar // CHECK-NOT: define // CHECK: ret {{.*}}, !dbg ![[DBG:.*]] // CHECK: ![[HPP:.*]] = metadata !{metadata !"./template.hpp", // CHECK:![[BLOCK:.*]] ...
// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s // Test that the line table info for Foo<T>::bar() is pointing to the // right header file. // CHECK: define{{.*}}bar // CHECK-NOT: define // CHECK: ret {{.*}}, !dbg ![[DBG:.*]] // CHECK-DAG: ![[HPP:.*]] = metadata !{metadata !"./template.hpp", // CHECK-DAG: ![[BL...
Use CHECK-DAG in a test so that it isn't sensitive to metadata order.
Use CHECK-DAG in a test so that it isn't sensitive to metadata order. This was failing on an internal branch where the order was different for some reason. <rdar://problem/16407581> git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@204633 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
1a1d21c5e8ab9aecb4db777aee865e73ceacd55f
rice/Director.cpp
rice/Director.cpp
#include "Director.hpp" #include "detail/env.hpp" namespace Rice { Director::Director(Object self) { self_ = self; } bool Director::callIsFromRuby(const char* methodName) const { return (getSelf().value() == ruby_frame->self) && ( rb_id2name(ruby_frame->orig_func) != methodName ); } void Director...
#include "Director.hpp" #include "detail/ruby.hpp" #ifdef RUBY_VM /* YARV */ #include "detail/cfp.hpp" #else /* pre-YARV */ #include "detail/env.hpp" #endif namespace Rice { Director::Director(Object self) { self_ = self; } bool Director::callIsFromRuby(const char* methodName) const { # ifdef RUBY_VM ...
Use cfp.hpp as an alternative to accessing ruby_frame directly.
Use cfp.hpp as an alternative to accessing ruby_frame directly.
C++
bsd-2-clause
der-scheme/rice,der-scheme/rice,der-scheme/rice,der-scheme/rice
d3faa4da61902dd4bbf2718dfdeb88b6b2fdb895
webkit/glue/resource_loader_bridge.cc
webkit/glue/resource_loader_bridge.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #include "config.h" #include "webkit/glue/resource_loader_bridge.h" #include "net/http/http_response_headers.h" namespace webkit_glue { Re...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #include "config.h" #include "webkit/glue/resource_loader_bridge.h" #include "webkit/glue/webappcachecontext.h" #include "net/http/http_resp...
Fix an issue found by purify with my previous submission.
Fix an issue found by purify with my previous submission. Review URL: http://codereview.chromium.org/62122 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@13324 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
M4sse/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,ltilve/chromium,bright-sparks/chromium-spacewalk,keishi/chromium,rogerwang/chromium,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,Chilledheart/chromium,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,Fireblend/chromium-c...
5157834a30cc193ab53070a26f39b8387eab9b24
src/urbi-console.cc
src/urbi-console.cc
// Microsoft compiler does not allow main to be in a library. // So we define one here. #include <urbi/umain.hh> int main(int argc, const char* argv[]) { return urbi::main(argc, argv); }
// Microsoft compiler does not allow main to be in a library. // So we define one here. #include <urbi/umain.hh> #include <libport/detect-win32.h> #ifndef WIN32 __attribute__((visibility("default"))) #endif int main(int argc, const char* argv[]) { return urbi::main(argc, argv); }
Mark main with a default visibility.
Mark main with a default visibility. Some arch do not like a hidden 'main'. Do not use existing macros to minimize dependency on this special file. * src/urbi-console.cc (main): Declare with default visibility.
C++
bsd-3-clause
urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi
d821e0c770fa1aeeae7aacbd1390ef501c0062e0
src/util/cli.cc
src/util/cli.cc
#include "cli.h" #include "../definitions.h" bool flag_set(char** begin, char** end, const std::string& long_option) { return std::find(begin, end, long_option) != end; } Options get_options(int argc, char* argv[]) { char** begin = argv; char** end = argv + argc; if (argc < 2) { fatal_error("...
#include "cli.h" #include "../definitions.h" bool flag_set(char** begin, char** end, const std::string& long_option) { return std::find(begin, end, long_option) != end; } Options get_options(int argc, char* argv[]) { char** begin = argv; char** end = argv + argc; if (argc < 2) { fatal_error("...
Use --silent instead of --nolog to disable logs
Use --silent instead of --nolog to disable logs
C++
bsd-3-clause
jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator
43d92a9ad4f9bd92087dbebbb9d4ef7ba305dffe
Modules/USUI/mitkUSUIActivator.cpp
Modules/USUI/mitkUSUIActivator.cpp
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
Fix follow-up compilation error raised due to warnings treated as errors
Fix follow-up compilation error raised due to warnings treated as errors
C++
bsd-3-clause
fmilano/mitk,MITK/MITK,MITK/MITK,MITK/MITK,fmilano/mitk,fmilano/mitk,fmilano/mitk,fmilano/mitk,fmilano/mitk,MITK/MITK,fmilano/mitk,MITK/MITK,MITK/MITK
15342e3b7b5a20061f79f87775c7d11dc4493802
src/material/plastic_material.cpp
src/material/plastic_material.cpp
#include <memory> #include "film/color.h" #include "material/bsdf.h" #include "material/blinn_distribution.h" #include "material/anisotropic_distribution.h" #include "material/torrance_sparrow.h" #include "material/lambertian.h" #include "material/fresnel.h" #include "material/plastic_material.h" PlasticMaterial::Plas...
#include <memory> #include "film/color.h" #include "material/bsdf.h" #include "material/blinn_distribution.h" #include "material/torrance_sparrow.h" #include "material/lambertian.h" #include "material/fresnel.h" #include "material/plastic_material.h" PlasticMaterial::PlasticMaterial(const Texture *diffuse, const Textu...
Revert plastic back to be plastic
Revert plastic back to be plastic
C++
mit
Twinklebear/tray,Twinklebear/tray
465a23c96a2736f8817efe0809138995e6d3c438
test/CodeGenCXX/microsoft-abi-byval-thunks.cpp
test/CodeGenCXX/microsoft-abi-byval-thunks.cpp
// RUN: not %clang_cc1 %s -fno-rtti -triple=i686-pc-win32 -emit-llvm -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK32 // RUN: %clang_cc1 %s -fno-rtti -triple=x86_64-pc-win32 -emit-llvm -o - | FileCheck --check-prefix=CHECK64 namespace byval_thunk { struct Agg { Agg(); Agg(const Agg &); ~Agg(); int x; }; s...
// RUN: not %clang_cc1 %s -fno-rtti -triple=i686-pc-win32 -emit-llvm -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK32 %s // RUN: %clang_cc1 %s -fno-rtti -triple=x86_64-pc-win32 -emit-llvm -o - | FileCheck --check-prefix=CHECK64 %s namespace byval_thunk { struct Agg { Agg(); Agg(const Agg &); ~Agg(); int x;...
Fix my busted FileCheck invocation
Fix my busted FileCheck invocation git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@213978 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
3dc6cb76dfbffcc13fd334673914eedd293badef
doc/snippets/DenseBase_setLinSpaced.cpp
doc/snippets/DenseBase_setLinSpaced.cpp
VectorXf v; v.setLinSpaced(5,0.5f,1.5f).transpose(); cout << v << endl;
VectorXf v; v.setLinSpaced(5,0.5f,1.5f); cout << v << endl;
Remove confusing transpose() in setLinSpaced() docs.
Remove confusing transpose() in setLinSpaced() docs.
C++
bsd-3-clause
madlib/eigen,madlib/eigen,madlib/eigen,madlib/eigen
affa7eec5fbfd57b7d49f8699b65e5068c2316f5
source/tests/qcan/test_main.cpp
source/tests/qcan/test_main.cpp
#include <iostream> using namespace std; #include <QCoreApplication> #include <QDebug> #include <QTest> #include "test_canpie_timestamp.hpp" #include "test_qcan_frame.hpp" #include "test_qcan_socket.hpp" int main(int argc, char *argv[]) { int32_t slResultT; cout << "#===================================...
#include <iostream> using namespace std; #include <QCoreApplication> #include <QDebug> #include <QTest> #include "canpie_frame.hpp" #include "canpie_frame_error.hpp" #include "test_canpie_timestamp.hpp" #include "test_qcan_frame.hpp" #include "test_qcan_socket.hpp" int main(int argc, char *argv[]) { int32_t s...
Add additional indlude files for future tests
Add additional indlude files for future tests
C++
apache-2.0
canpie/CANpie,JoTid/CANpie,canpie/CANpie,canpie/CANpie,JoTid/CANpie,JoTid/CANpie
a71b8d17e8b0cc1ee19a75d75c1f52dc8030f68d
fuzz/oss_fuzz/FuzzRegionDeserialize.cpp
fuzz/oss_fuzz/FuzzRegionDeserialize.cpp
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkCanvas.h" #include "SkPaint.h" #include "SkRegion.h" #include "SkSurface.h" bool FuzzRegionDeserialize(sk_sp<SkData> bytes) { SkRegion region; if (!regio...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkCanvas.h" #include "SkPaint.h" #include "SkRegion.h" #include "SkSurface.h" bool FuzzRegionDeserialize(sk_sp<SkData> bytes) { SkRegion region; if (!regio...
Check for nullptrs when fuzzing region_deserialize
Check for nullptrs when fuzzing region_deserialize Bug: oss-fuzz:5629 Change-Id: I1129a6a9a68c69e07ab63e2e2be1c00cf0581962 Reviewed-on: https://skia-review.googlesource.com/102482 Reviewed-by: Mike Klein <14574f09dfa9b4e14759b88c3426a495a0e627b0@chromium.org> Commit-Queue: Kevin Lubick <7cdab2cfab351f23814786ba39716e9...
C++
bsd-3-clause
google/skia,google/skia,rubenvb/skia,google/skia,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,rubenvb/skia,google/skia,google/skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,rub...
a5093b3d50cd6fb940bf858850771bd4d69796c5
main.cpp
main.cpp
#include <GL/glew.h> #include <SDL2/SDL.h> int main(void) { int flags = SDL_WINDOW_OPENGL | SDL_RENDERER_PRESENTVSYNC; SDL_Init(SDL_INIT_EVERYTHING); auto window = SDL_CreateWindow("title", 0, 0, 320, 240, flags); auto context = SDL_GL_CreateContext(window); glewInit(); glClearColor(0, 1, 0, 1); glClea...
#include <GL/glew.h> #include <SDL2/SDL.h> int main(void) { int flags = SDL_WINDOW_OPENGL | SDL_RENDERER_PRESENTVSYNC; SDL_Init(SDL_INIT_EVERYTHING); auto window = SDL_CreateWindow("Warg", 0, 0, 320, 240, flags); auto context = SDL_GL_CreateContext(window); glewInit(); glClearColor(0, 1, 0, 1); glClear...
Change window title to 'Warg'
Change window title to 'Warg'
C++
agpl-3.0
jearc/warg,Veux/warg,Veux/warg,jearc/warg
bd8d015ffe098a1d7f0d3884587982159c4bb086
source/architecture/ARM/ARMv6-M-ARMv7-M/ARMv6-M-ARMv7-M-lowLevelInitialization.cpp
source/architecture/ARM/ARMv6-M-ARMv7-M/ARMv6-M-ARMv7-M-lowLevelInitialization.cpp
/** * \file * \brief lowLevelInitialization() implementation for ARMv6-M and ARMv7-M * * \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL w...
/** * \file * \brief lowLevelInitialization() implementation for ARMv6-M and ARMv7-M * * \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL w...
Set STKALIGN bit in SCB->CCR for ARM Cortex-M3 r1p1
Set STKALIGN bit in SCB->CCR for ARM Cortex-M3 r1p1 This bit is set by default on all other ARM Cortex-M cores.
C++
mpl-2.0
CezaryGapinski/distortos,jasmin-j/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,jasmin-j/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,jasmin-j/distortos,jasmin-j/distortos,jasmin-j/distortos
99ae5ad0e5a883f914f35b4660cf8e026905c1fc
pool.cpp
pool.cpp
#include <iostream> #include <string> #include <utility> #include "pool.h" void Pool::add_machine(const Machine& new_machine) { const std::string& machine_name = new_machine.get_name(); std::cout << "Adding machine to pool: " << machine_name << std::endl; machines.insert(std::make_pair(machine_name, new_...
#include <iostream> #include <string> #include <utility> #include "pool.h" void Pool::add_machine(const Machine& new_machine) { const std::string& machine_name = new_machine.get_name(); std::cout << "Adding machine to pool: " << machine_name << std::endl; machines.insert(std::make_pair(machine_name, new_...
Use 'auto' for iterator type.
Use 'auto' for iterator type. Avoid spelling out the type of the map iterator, which can be deduced by the compiler. The const int job_id and const std::string& machine_name are probably better off with their types explicitly given, though.
C++
mit
mattportas/yejong
769188b051f6abb22b6e4a51e926b757e5fcf477
views/controls/menu/menu_config_gtk.cc
views/controls/menu/menu_config_gtk.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 "views/controls/menu/menu_config.h" #include "grit/app_resources.h" #include "third_party/skia/include/core/SkBitmap.h" #include "ui/base/re...
// 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 "views/controls/menu/menu_config.h" #include "grit/app_resources.h" #include "third_party/skia/include/core/SkBitmap.h" #include "ui/base/re...
Increase the base font size for touch ui
Increase the base font size for touch ui BUG=none TEST=none Review URL: http://codereview.chromium.org/6519034 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@77349 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
0104d12cd419be03453637ae0433298dcefc8e7d
test/Analysis/casts.cpp
test/Analysis/casts.cpp
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -verify %s // expected-no-diagnostics bool PR14634(int x) { double y = (double)x; return !y; } bool PR14634_implicit(int x) { double y = (double)x; return y; } void intAsBoolAsSwitchCondition(int c) { switch ((bool)c) { case 0: ...
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -verify %s bool PR14634(int x) { double y = (double)x; return !y; } bool PR14634_implicit(int x) { double y = (double)x; return y; } void intAsBoolAsSwitchCondition(int c) { switch ((bool)c) { // expected-warning {{switch condition h...
Fix test in previous commit to account for compiler warning.
[analyzer] Fix test in previous commit to account for compiler warning. --analyze passes -w, but -cc1 -analyze doesn't. Oops! git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@197741 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
210219ba269639a9ac04214d5ca0184f3bcf62c2
test/CodeGenCXX/discard-name-values.cpp
test/CodeGenCXX/discard-name-values.cpp
// RUN: %clang_cc1 -emit-llvm -triple=armv7-apple-darwin -std=c++11 %s -o - -O1 \ // RUN: | FileCheck %s // RUN: %clang_cc1 -emit-llvm -triple=armv7-apple-darwin -std=c++11 %s -o - -O1 \ // RUN: -discard-value-names | FileCheck %s --check-prefix=DISCARDVALUE extern "C" void branch(); bool test(bool pred) { /...
// RUN: %clang_cc1 -emit-llvm -triple=armv7-apple-darwin -std=c++11 %s -o - -O1 \ // RUN: | FileCheck %s // RUN: %clang_cc1 -emit-llvm -triple=armv7-apple-darwin -std=c++11 %s -o - -O1 \ // RUN: -discard-value-names | FileCheck %s --check-prefix=DISCARDVALUE extern "C" void branch(); bool test(bool pred) { /...
Support parsing numeric block ids, and emit them in textual output.
IR: Support parsing numeric block ids, and emit them in textual output. Just as as llvm IR supports explicitly specifying numeric value ids for instructions, and emits them by default in textual output, now do the same for blocks. This is a slightly incompatible change in the textual IR format. Previously, llvm woul...
C++
apache-2.0
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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
b130b1d396c98ca0ab15493e796fb1101ad8d8a4
test/Modules/preprocess-unavailable.cpp
test/Modules/preprocess-unavailable.cpp
// RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify module a { module b { requires cplusplus11 } } #pragma clang module contents // expected-error@3 {{module 'a.b' requires feature 'cplusplus11'}} #pragma clang module begin a.b // expected-note {{entering module 'a' due to this pragma}} int f(); int...
// RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify -std=c++98 module a { module b { requires cplusplus11 } } #pragma clang module contents // expected-error@3 {{module 'a.b' requires feature 'cplusplus11'}} #pragma clang module begin a.b // expected-note {{entering module 'a' due to this pragma}} i...
Add an explicit -std= to test to unbreak on PS4 targets.
Add an explicit -std= to test to unbreak on PS4 targets. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@304237 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
85e84cc0da9edff8497b7fe932d6c308dcb81f7b
atom/node/osfhandle.cc
atom/node/osfhandle.cc
// Copyright (c) 2016 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "osfhandle.h" #include <io.h> #include "v8-profiler.h" #include "v8-inspector.h" namespace node { int open_osfhandle(intptr_t osfhandle, int flags) { return _open_osfhan...
// Copyright (c) 2016 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "osfhandle.h" #include <io.h> #include "v8-profiler.h" #include "v8-inspector.h" namespace node { int open_osfhandle(intptr_t osfhandle, int flags) { return _open_osfhan...
Fix missing of symbols when linking win32 build
Fix missing of symbols when linking win32 build
C++
mit
wan-qy/electron,joaomoreno/atom-shell,joaomoreno/atom-shell,gerhardberger/electron,bpasero/electron,biblerule/UMCTelnetHub,shiftkey/electron,gerhardberger/electron,rajatsingla28/electron,seanchas116/electron,miniak/electron,thomsonreuters/electron,electron/electron,bpasero/electron,brenca/electron,Floato/electron,renae...
0090dc1ad51c45ed9628cdd8115f55f7cfe45b78
chrome/browser/idle_query_linux.cc
chrome/browser/idle_query_linux.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/idle_query_linux.h" #include <X11/Xlib.h> #include <X11/extensions/scrnsaver.h> namespace browser { class IdleData { publ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/idle_query_linux.h" #include <X11/extensions/scrnsaver.h> #include "ui/base/x/x11_util.h" namespace browser { class IdleDa...
Use GetXDisplay() instead of XOpenDisplay() in IdleQueryLinux.
Use GetXDisplay() instead of XOpenDisplay() in IdleQueryLinux. We weren't checking that XOpenDisplay was actually succeeding before attempting to use the display. BUG=82308 TEST=none Review URL: http://codereview.chromium.org/7015007 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@85138 0039d316-1c4b-4281-b951...
C++
bsd-3-clause
adobe/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,gavinp/c...
d08331d7d03e891be3448d0c1c111d2a9cfce58d
tests/asyncfutureunittests/main.cpp
tests/asyncfutureunittests/main.cpp
#include <QString> #include <QtTest> #include <execinfo.h> #include <signal.h> #include <unistd.h> #include <TestRunner> #include <QtQuickTest> #include "example.h" #include "asyncfuturetests.h" #include "bugtests.h" void handleBacktrace(int sig) { void *array[100]; size_t size; // get void*'s for all ent...
#include <QString> #include <QtTest> #include <TestRunner> #include <QtQuickTest> #include "example.h" #include "asyncfuturetests.h" #include "bugtests.h" #if defined(Q_OS_MAC) || defined(Q_OS_LINUX) #include <execinfo.h> #include <signal.h> #include <unistd.h> void handleBacktrace(int sig) { void *array[100]; siz...
Fix a build problem in AppVeyor
Fix a build problem in AppVeyor
C++
apache-2.0
benlau/asyncfuture
4f1df9e697e35cb20c1f2adff84b195195a4dec6
026.stack-interference/main.cpp
026.stack-interference/main.cpp
#include <cstdio> int f() { int x, y[1024][1024]; scanf("%d", &x); // hidden store scanf("%d", &y[0][0]); // hidden store x += y[0][0]; // store 0, load 0, load 1 (WAR load 1 - store 0) return x; // load 2 (RAW: store 0) } int g() { int x, y...
#include <cstdio> int f() { int x, y[1024][1024]; scanf("%d", &x); // hidden store scanf("%d", &y[0][0]); // hidden store x += y[0][0]; // store 0, load 0, load 1 (WAR load 1 - store 0) return x; // load 2 (RAW: store 0) } int g() { int x, y[1024][1024]; scan...
Add alias and dependence tests
Add alias and dependence tests
C++
mit
smanilov/loop-examples,smanilov/loop-examples
5c3b217aaab7aebc7be50d7fccb796cbb9cbc034
examples/rmc-cpp.cpp
examples/rmc-cpp.cpp
#include <rmc++.h> void mp_send(rmc<int> *flag, rmc<int> *data) { VEDGE(wdata, wflag); L(wdata, *data = 42); L(wflag, *flag = 1); } int mp_recv(rmc<int> *flag, int *data) { XEDGE(rflag, rdata); while (L(rflag, *flag) == 0) continue; return L(rdata, *data); } int cas(rmc<int> *p) { ...
#include <rmc++.h> void mp_send(rmc<int> *flag, rmc<int> *data) { VEDGE(wdata, wflag); L(wdata, *data = 42); L(wflag, *flag = 1); } int mp_recv(rmc<int> *flag, int *data) { XEDGE(rflag, rdata); while (L(rflag, *flag) == 0) continue; return L(rdata, *data); } int cas(rmc<int> *p) { ...
Add another simple test of C++ rmc
Add another simple test of C++ rmc
C++
mit
msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler
2360627ae8814b2b415ff3b05a1dd9e4e84dca72
src/Commands/AutonomousCommandGroup.cpp
src/Commands/AutonomousCommandGroup.cpp
#include "AutonomousCommandGroup.h" #include "MoveElevator.h" #include "Move2Container.h" #include "AdjustAngle.h" #include "BringBurden.h" #include "PivotCommand.h" #include "../RobotMap.h" AutonomousCommandGroup::AutonomousCommandGroup() { //AddSequential(new PivotCommand(-90)); AddSequential(new MoveElevator(3....
#include "AutonomousCommandGroup.h" #include "MoveElevator.h" #include "Move2Container.h" #include "AdjustAngle.h" #include "BringBurden.h" #include "PivotCommand.h" #include "../RobotMap.h" AutonomousCommandGroup::AutonomousCommandGroup() { AddSequential(new MoveElevator(3.0,true)); AddSequential(new Move2Contain...
Add Command 2 Commad Group
Add Command 2 Commad Group
C++
epl-1.0
tokyotechnicalsamurai/shougun
996a543d97f3b4eca3f421e51355d97714bd1937
common/content_client.cc
common/content_client.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-CHROMIUM file. #include "common/content_client.h" #include "common/application_info.h" #include "base/stringprintf.h" #include "base/string_util.h" #inclu...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-CHROMIUM file. #include "common/content_client.h" #include "common/application_info.h" #include "base/stringprintf.h" #include "base/string_util.h" #inclu...
Update for webkit header moves
Update for webkit header moves
C++
mit
paulcbetts/brightray,lakshmi-srinivas/brightray,deepak1556/brightray,bbondy/brightray,bbondy/brightray,brave/brightray,hokein/brightray,atom/brightray,hokein/brightray,deepak1556/brightray,atom/brightray,lakshmi-srinivas/brightray,tejaspathak/brightray,lakshmi-srinivas/brightray,tejaspathak/brightray,brave/brightray,pa...
31beb3a1ab6e85630301fb0c6987680d80a739d0
src/scrollbar-style-observer-non-mac.cc
src/scrollbar-style-observer-non-mac.cc
#import <node.h> #import "nan.h" #import "scrollbar-style-observer.h" using namespace v8; void ScrollbarStyleObserver::Init(Handle<Object> target) { NanScope(); Local<FunctionTemplate> newTemplate = FunctionTemplate::New(ScrollbarStyleObserver::New); newTemplate->SetClassName(NanSymbol("ScrollbarStyleObserver")...
#include <node.h> #include "nan.h" #include "scrollbar-style-observer.h" using namespace v8; void ScrollbarStyleObserver::Init(Handle<Object> target) { NanScope(); Local<FunctionTemplate> newTemplate = FunctionTemplate::New(ScrollbarStyleObserver::New); newTemplate->SetClassName(NanSymbol("ScrollbarStyleObserve...
Use include instead of import
Use include instead of import
C++
mit
atom/scrollbar-style,gisenberg/scrollbar-style,atom/scrollbar-style,atom/scrollbar-style,gisenberg/scrollbar-style
fb7afb02e1131955f3a71f15bc4d61304f1c95cd
board_examples/gpio/main.cpp
board_examples/gpio/main.cpp
#include <hal/clock.hpp> #include <hal/gpio.hpp> //------------------------------------------------------------------------------ int main(void) { ::gpio::GPIO pinLed = ::gpio::GPIO(1, 0); int time; time = 500; while(1) { if (time < 10) time = 500; pinLed.high(); clock::msleep(time); pinLed....
#include <hal/clock.hpp> #include <hal/gpio.hpp> #define LED_PORT 6 #define LED_PIN 1 //------------------------------------------------------------------------------ int main(void) { ::gpio::GPIO pinLed = ::gpio::GPIO(LED_PORT, LED_PIN); int time; time = 500; while(1) { if (time < 10) ...
Modify gpio example to run it on TI LM4F120XL board.
Modify gpio example to run it on TI LM4F120XL board.
C++
mit
r-3-t/embedded,r-3-t/embedded,r-3-t/embedded
f790063bbba2c76963d8a78fa8afee79dbdcfdc9
util/devel/coverity/coverity_model.cpp
util/devel/coverity/coverity_model.cpp
/** * Coverity Scan model * * Manage false positives by giving coverity some hints. * * Updates to this file must be manually submitted by an admin to: * * https://scan.coverity.com/projects/1222 * */ // When tag is 1 or 2, let coverity know that execution is halting. Those // tags correspond to INT_FATAL a...
/** * Coverity Scan model * * Manage false positives by giving coverity some hints. * * Updates to this file must be manually submitted by an admin to: * * https://scan.coverity.com/projects/1222 * */ // When tag is 1 or 2, let coverity know that execution is halting. Those // tags correspond to INT_FATAL a...
Add chpl_error() and chpl_internal_error(), indicating they halt execution.
Add chpl_error() and chpl_internal_error(), indicating they halt execution. These will help Coverity Scan's analysis of NULL pointer dereferences. Currently it is saying that we might dereference a NULL pointer because it doesn't realize that a NULL test that does chpl_error() if true will result in a halt. It thinks...
C++
apache-2.0
hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,Cory...