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
c32091bd00cee1737672d036dfc6acabf19626d1
util/ots-fuzzer.cc
util/ots-fuzzer.cc
// Copyright 2016 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 <stddef.h> #include <stdint.h> #ifndef OTS_FUZZER_NO_MAIN #include <fstream> #include <iostream> #include <iterator> #endif #include "opentype-s...
// Copyright 2016 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 <stddef.h> #include <stdint.h> #ifndef OTS_FUZZER_NO_MAIN #include <fstream> #include <iostream> #include <iterator> #endif #include "opentype-s...
Fix thinko In inroduced while importing the fuzzer
Fix thinko In inroduced while importing the fuzzer
C++
bsd-3-clause
anthrotype/ots,irori/ots,irori/ots,khaledhosny/ots,anthrotype/ots
5a871f1b9e3e0d0f89dffafebd9c8a4d1a621707
src/engine/utils/src/maths/circle.cpp
src/engine/utils/src/maths/circle.cpp
#include "halley/maths/circle.h" using namespace Halley; bool Circle::contains(Vector2f point) const { return (point - centre).squaredLength() <= radius * radius; } bool Circle::overlaps(const Circle& circle) const { const float r = radius + circle.radius; return (circle.centre - centre).squaredLength() <= r * r; ...
#include "halley/maths/circle.h" using namespace Halley; bool Circle::contains(Vector2f point) const { return (point - centre).squaredLength() <= radius * radius; } bool Circle::overlaps(const Circle& circle) const { const float r = radius + circle.radius; return (circle.centre - centre).squaredLength() <= r * r; ...
Rename std::sqrtf -> std::sqrt because gcc is not standards compliant on that for whatever reason.
Rename std::sqrtf -> std::sqrt because gcc is not standards compliant on that for whatever reason.
C++
apache-2.0
amzeratul/halley,amzeratul/halley,amzeratul/halley
461797d21a2b26c4d55e623c51818f399574774c
test/std/utilities/tuple/tuple.general/tuple.smartptr.pass.cpp
test/std/utilities/tuple/tuple.general/tuple.smartptr.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 warning in tuple tests. The test suite should now run clean with most warnings enabled
Fix warning in tuple tests. The test suite should now run clean with most warnings enabled git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@272822 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
d01eb05d5750e98032d69d2070336959a3ef0571
Test/SegmentTest.cc
Test/SegmentTest.cc
#include "catch.hpp" //#define KASSERT REQUIRE #include <Segment.hh> #include <cstring> #define SEGMENTSIZE 4096 SCENARIO("Memory segment representation", "[kernelheap]") { GIVEN("A memory segment") { char* memorySegment = new char[SEGMENTSIZE]; memset(memorySegment, 0x55, SEGMENTSIZE); ...
#include "catch.hpp" //#define KASSERT REQUIRE #include <Segment.hh> #include <cstring> #define SEGMENTSIZE 4096 SCENARIO("Memory segment representation", "[kernelheap]") { GIVEN("A memory segment") { char* memorySegment = new char[SEGMENTSIZE]; memset(memorySegment, 0x55, SEGMENTSIZE); ...
Check that newly created has correct checksum
Check that newly created has correct checksum
C++
bsd-2-clause
ahoka/esrtk,ahoka/esrtk,ahoka/esrtk
ec6a33b66e053c94754dd02a634d1775c9499294
printing/backend/print_backend.cc
printing/backend/print_backend.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 "printing/backend/print_backend.h" namespace printing { PrinterBasicInfo::PrinterBasicInfo() : printer_status(0) {} PrinterBasicInfo::~Pri...
// 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 "printing/backend/print_backend.h" namespace printing { PrinterBasicInfo::PrinterBasicInfo() : printer_status(0), is_default(fals...
Initialize a variable in PrinterBasicInfo.
Coverity: Initialize a variable in PrinterBasicInfo. BUG=none TEST=none CID=16140 Review URL: http://codereview.chromium.org/7218029 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@89992 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ropik/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,yitian134/ch...
7d836c7fd8b6379bacdfe805b321bcd6f206204e
impl/API/ewk_settings_private.cc
impl/API/ewk_settings_private.cc
#include "ewk_settings_private.h" #include "net/http/http_stream_factory.h" void Ewk_Settings::setSpdyEnabled(bool flag) { net::HttpStreamFactory::set_spdy_enabled(flag); } void Ewk_Settings::setCurrentLegacyFontSizeMode(tizen_webview::Legacy_Font_Size_Mode mode) { m_currentLegacyFontSizeMode = mode; m_pre...
#include "ewk_settings_private.h" #include "net/http/http_stream_factory.h" void Ewk_Settings::setSpdyEnabled(bool flag) { net::HttpStreamFactory::set_spdy_enabled(flag); } void Ewk_Settings::setCurrentLegacyFontSizeMode(tizen_webview::Legacy_Font_Size_Mode mode) { m_currentLegacyFontSizeMode = mode; #if !defi...
Disable call to WebPreferences::current_legacy_font_size_mode. Missing API.
Disable call to WebPreferences::current_legacy_font_size_mode. Missing API. Signed-off-by: Antonio Gomes <a1.gomes@sisa.samsung.com> Conflicts: impl/API/ewk_settings_private.cc
C++
bsd-3-clause
hgl888/chromium-efl,hgl888/chromium-efl,crosswalk-project/chromium-efl,crosswalk-project/chromium-efl,crosswalk-project/chromium-efl,hgl888/chromium-efl,crosswalk-project/chromium-efl,hgl888/chromium-efl,hgl888/chromium-efl
d7c5ed89ca2a5304ba4bbc1551f74a6a5fb64dc1
chrome/browser/ui/webui/print_preview_ui.cc
chrome/browser/ui/webui/print_preview_ui.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/ui/webui/print_preview_ui.h" #include "base/values.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/...
// 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/ui/webui/print_preview_ui.h" #include "base/values.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/...
Print Preview: Fix typo from r78639.
Print Preview: Fix typo from r78639. BUG=76707 TEST=page count initialized correctly in print preview. R=arv@chromium.org Review URL: http://codereview.chromium.org/6688041 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@78747 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
a746e03c0d7a3bece56454d84bcc325fe6f5437d
test/UnitTest/TestVariant.cpp
test/UnitTest/TestVariant.cpp
#include <nstd/Debug.h> #include <nstd/Variant.h> void_t testVariant() { // test default constructor { Variant var; ASSERT(var.isNull()); ASSERT(var.toBool() == false); } // test boolean constructor { Variant var(true); ASSERT(var.toBool() == true); } // test map constructor { ...
#include <nstd/Debug.h> #include <nstd/Variant.h> void_t testVariant() { // test default constructor { Variant var; ASSERT(var.isNull()); ASSERT(var.toBool() == false); } // test boolean constructor { Variant var(true); ASSERT(var.toBool() == true); } // test map constructor { ...
Use Unicode compatible in Variant test
Variant: Use Unicode compatible in Variant test
C++
apache-2.0
craflin/libnstd
de0b36b9bdd42abfa1f5b05db1e814f0e278e919
ros_pkg_with_tests/src/test/test_square.cpp
ros_pkg_with_tests/src/test/test_square.cpp
#include "square.h" #include <gtest/gtest.h> TEST(TestSuite, squareTwo) { const double ret = square(2); ASSERT_EQ(4, ret); } TEST(TestSuite, squareFour) { const double ret = square(4.1); ASSERT_EQ(16.81, ret); } // Run all the tests that were declared with TEST() int main(int argc, char **argv){ testing::I...
#include "square.h" #include <gtest/gtest.h> TEST(TestSuite, squareTwo) { const double ret = square(2); ASSERT_EQ(5, ret); } TEST(TestSuite, squareFour) { const double ret = square(4.1); ASSERT_EQ(16.81, ret); } // Run all the tests that were declared with TEST() int main(int argc, char **argv){ testing::I...
Make sure failed tests actually fail.
Make sure failed tests actually fail.
C++
bsd-3-clause
felixduvallet/ros-travis-integration,felixduvallet/ros-travis-integration,felixduvallet/ros-travis-integration
7bf1f7fe4281a4983672b849853b649b4eb1342f
Haxe/Templates/Source/HaxeRuntime/Private/PrintfCapture.cpp
Haxe/Templates/Source/HaxeRuntime/Private/PrintfCapture.cpp
#include "HaxeRuntime.h" #ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS #endif #include "PrintfCaptureTypes.h" #include "CoreMinimal.h" #include "uhx/expose/HxcppRuntime.h" #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <string.h> #if PLATFORM_WINDOWS && !defined(vsnprintf) #define vsnprintf _v...
#include "HaxeRuntime.h" #include "uhx/NoDeprecateHeader.h" #include "PrintfCaptureTypes.h" #include "CoreMinimal.h" #include "uhx/expose/HxcppRuntime.h" #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <string.h> #if PLATFORM_WINDOWS && !defined(vsnprintf) #define vsnprintf _vsnprintf #endif #de...
Update to latest perforce change Change 16676 by waneck@wnk-razer on 2018/03/08 15:01:22
[CL-16676] Update to latest perforce change Change 16676 by waneck@wnk-razer on 2018/03/08 15:01:22 [unreal.hx] Get rid of the CRT SECURE deprecation warnings on PrintfCapture
C++
mit
proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx
c2d86f6171c41255d304ad59fb6d4a8588897a77
tests/src/personTests.cpp
tests/src/personTests.cpp
#include "Person.h" #include <gtest/gtest.h> TEST(GreeterTests, PersonGetNameTest) { Person p{"Woz"}; ASSERT_STREQ(p.getName().c_str(), "Woz"); }
#include "Person.h" #include <stdexcept> #include <gtest/gtest.h> TEST(GreeterTests, PersonValidCtorTest) { ASSERT_NO_THROW({ Person p{"Alexa"}; }); } TEST(GreeterTests, PersonInvalidCtorTest) { ASSERT_THROW({ Person p{""}; }, std::invalid_argument); } TEST(GreeterTests, PersonGetNameTest) { ...
Add UT for invalid param in ctor
Add UT for invalid param in ctor
C++
unlicense
eariassoto/cpp-project-template
12c918a03c5cef611a01ca99ddceba7dca279bb9
libs/csutil/generic/memutil_impl_virtsize.cpp
libs/csutil/generic/memutil_impl_virtsize.cpp
/* Copyright (C) 2010 by Frank Richter This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in ...
/* Copyright (C) 2010 by Frank Richter This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in ...
Fix integer overflow reported by gcc
Fix integer overflow reported by gcc git-svn-id: 28d9401aa571d5108e51b194aae6f24ca5964c06@34079 8cc4aa7f-3514-0410-904f-f2cc9021211c
C++
lgpl-2.1
crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS
df036cb5c3efbcda189695ad7204bf7cf025efe5
3RVX/Logger.cpp
3RVX/Logger.cpp
#include "Logger.h" #include <string> void Logger::Start() { #ifdef ENABLE_3RVX_LOGTOFILE /* Disable buffering */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); FILE *out, *err; _wfreopen_s(&out, L"3RVX_Log.txt", L"w", stdout); _wfreopen_s(&err, L"3RVX_Log.txt", L"w", stde...
#include "Logger.h" #include <string> void Logger::Start() { #ifdef ENABLE_3RVX_LOGTOFILE /* Disable buffering */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); FILE *out, *err; _wfreopen_s(&out, L"3RVX_Log.txt", L"w", stdout); _wfreopen_s(&err, L"3RVX_Log.txt", L"w", stde...
Fix release build console bug
Fix release build console bug
C++
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX
769ab7c369ef43bff2d96aa72af3a6ddedc875b8
chrome/browser/chromeos/status_area_button.cc
chrome/browser/chromeos/status_area_button.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/status_area_button.h" #include "app/gfx/canvas.h" #include "app/gfx/skbitmap_operations.h" #include "app/resource_b...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/status_area_button.h" #include "app/gfx/canvas.h" #include "app/gfx/skbitmap_operations.h" #include "app/resource_b...
Fix for Release build break
Fix for Release build break Review URL: http://codereview.chromium.org/293050 git-svn-id: http://src.chromium.org/svn/trunk/src@29656 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 43f80bde7c30b954275cbe636b8522517653304d
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...
80a125a1e96fc877fce4c6926e68bc6d78e5a55b
branches/source-generator/main.cpp
branches/source-generator/main.cpp
#include "generator.h" int main() { QStringList l; l << "kernel_metamodel.xml" << "basicbehaviors_metamodel.xml" << "trace.xml" << "requirements_metamodel.xml" << "class_metamodel.xml" << "usecase_metamodel.xml" << "sequence_metamodel.xml" //<< "communication_metamodel.xml" << "statemachines_metamodel.xm...
#include "generator.h" int main() { QStringList l; l << "kernel_metamodel.xml" << "basicbehaviors_metamodel.xml" << "trace.xml" << "requirements_metamodel.xml" << "class_metamodel.xml" << "usecase_metamodel.xml" << "sequence_metamodel.xml" //<< "communication_metamodel.xml" << "statemachines_metamodel.xm...
Create generator object on stack. Testing build system.
Create generator object on stack. Testing build system.
C++
apache-2.0
tara-sova/qreal,Julia-Khramyshkina/qreal,RomanBelkov/qreal,DenisKogutich/qreal,RomanBelkov/qreal,iakov/qreal,DenisKogutich/qreal,tara-sova/qreal,Julia-Khramyshkina/qreal,iakov/qreal,iakov/qreal,ZiminGrigory/qreal,qreal/qreal,Ashatta/qreal,dvvrd/qreal,RomanBelkov/qreal,Victor-Y-Fadeev/qreal,dvvrd/qreal,Ashatta/qreal,Jul...
f305964989aa9ebc7765aad1fad6e0c9e4e4f65a
bin/NativeTests/NativeTests.cpp
bin/NativeTests/NativeTests.cpp
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Disable the warning on the nativetests.cpp
Disable the warning on the nativetests.cpp
C++
mit
Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore
3a02f1b3a00dc0b3764d77f429825559fcf0ecc0
tests/test-getfullyqualifiedname.cpp
tests/test-getfullyqualifiedname.cpp
//! @file test-getfullyqualifiedname.cpp //! @author George Fleming <v-geflem@microsoft.com> //! @brief Unit tests for GetFullyQualifiedName #include <stdio.h> #include <gtest/gtest.h> #include "getfullyqualifiedname.h" //! Test fixture for GetComputerNameTest class GetFullyQualifiedNameTest : public ::testing::Test ...
//! @file test-getfullyqualifiedname.cpp //! @author George Fleming <v-geflem@microsoft.com> //! @brief Unit tests for GetFullyQualifiedName #include <stdio.h> #include <gtest/gtest.h> #include "getfullyqualifiedname.h" //! Test fixture for GetComputerNameTest class GetFullyQualifiedNameTest : public ::testing::Test ...
Change /bin/hostname to just hostname, and let sh figure out the path
Change /bin/hostname to just hostname, and let sh figure out the path
C++
mit
PaulHigin/PowerShell,jsoref/PowerShell,bingbing8/PowerShell,KarolKaczmarek/PowerShell,JamesWTruher/PowerShell-1,kmosher/PowerShell,daxian-dbw/PowerShell,PaulHigin/PowerShell,kmosher/PowerShell,TravisEz13/PowerShell,bmanikm/PowerShell,PaulHigin/PowerShell,JamesWTruher/PowerShell-1,PaulHigin/PowerShell,jsoref/PowerShell,...
c9e0d4bdf0297e62fffe659000f921ff8bb5e6e0
src/compiler/build_tables/item_set_closure.cc
src/compiler/build_tables/item_set_closure.cc
#include "compiler/build_tables/item_set_closure.h" #include <algorithm> #include <set> #include "tree_sitter/compiler.h" #include "compiler/build_tables/follow_sets.h" #include "compiler/build_tables/item.h" #include "compiler/prepared_grammar.h" namespace tree_sitter { using std::set; using rules::ISymbol; ...
#include "compiler/build_tables/item_set_closure.h" #include <algorithm> #include <set> #include "tree_sitter/compiler.h" #include "compiler/build_tables/follow_sets.h" #include "compiler/build_tables/item.h" #include "compiler/prepared_grammar.h" namespace tree_sitter { using std::set; using rules::ISymbol; ...
Optimize item set closure function
Optimize item set closure function
C++
mit
tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter
099535afdace095de488eb79b98b9c0e5157f6a1
phonon/tests/captureapptest/capture_test_main.cpp
phonon/tests/captureapptest/capture_test_main.cpp
/* This file is part of the KDE project * Copyright (C) 2010 Casian Andrei <skeletk13@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the ...
/* This file is part of the KDE project * Copyright (C) 2010 Casian Andrei <skeletk13@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the ...
Modify title for capture app
Modify title for capture app
C++
lgpl-2.1
KDE/phonon-gstreamer,KDE/phonon-xine,KDE/phonon-quicktime,KDE/phonon-xine,shadeslayer/phonon-gstreamer,KDE/phonon-gstreamer,KDE/phonon-waveout,shadeslayer/phonon-gstreamer,KDE/phonon-xine,KDE/phonon-directshow,KDE/phonon-mmf,shadeslayer/phonon-gstreamer,KDE/phonon-directshow
bb4ada759d9731a6591d6e2a10f72d0229c1549e
tensorflow/compiler/tf2xla/xla_gpu_backend.cc
tensorflow/compiler/tf2xla/xla_gpu_backend.cc
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Remove the comment that says b/34969189 blocking TruncateNormal.
[XLA:GPU] Remove the comment that says b/34969189 blocking TruncateNormal. The issue has been fixed and the GPU backend now supports atomic operations on small data types. PiperOrigin-RevId: 178401552
C++
apache-2.0
caisq/tensorflow,JingJunYin/tensorflow,drpngx/tensorflow,zasdfgbnm/tensorflow,xodus7/tensorflow,Kongsea/tensorflow,eaplatanios/tensorflow,yongtang/tensorflow,JingJunYin/tensorflow,freedomtan/tensorflow,seanli9jan/tensorflow,ghchinoy/tensorflow,jalexvig/tensorflow,gojira/tensorflow,annarev/tensorflow,karllessard/tensorf...
3ad8fb7ecde5fb7e5b080423f9a76d82579b148a
test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.members/overflow.pass.cpp
test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.members/overflow.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. // //===----------------------------------------...
Mark strstreams tests as being supported on all OS X versions
[libcxx] Mark strstreams tests as being supported on all OS X versions I wasn't able to reproduce the issue referred to by the comment using the libc++'s shipped with mac OS X 10.7 and 10.8, so I assume this may have been fixed in a function that is now shipped in the headers. In that case, the tests will pass no matt...
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
2b594da066ace0fc1d6124c4b762418aafa11862
gui/hierarchical_viewer.cpp
gui/hierarchical_viewer.cpp
#include "hierarchical_viewer.hpp" HierarchicalViewer::HierarchicalViewer(QWidget *parent) : QTreeWidget(parent) { /* Placeholders for testing purposes */ setColumnCount(1); setHeaderLabel("Executable file"); QTreeWidgetItem *filename = addRoot("hacker.out"); QTreeWidgetItem *elf_header = addChild(...
#include "hierarchical_viewer.hpp" HierarchicalViewer::HierarchicalViewer(QWidget *parent) : QTreeWidget(parent) { /* Placeholders for testing purposes */ headerItem()->setHidden(true); QTreeWidgetItem *elf_header = addRoot("ELF Header"); QTreeWidgetItem *pht = addRoot("Program Header Table"); QTre...
Update hierarchicalViewer content placeholder to follow target look
Update hierarchicalViewer content placeholder to follow target look
C++
mit
stefanmirea/mangler,SilentControl/mangler
7350e5112a37ad19fe219462056a8f7ca55fd49f
src/Genes/King_Protection_Gene.cpp
src/Genes/King_Protection_Gene.cpp
#include "Genes/King_Protection_Gene.h" #include <string> #include "Genes/Gene.h" #include "Game/Board.h" #include "Game/Color.h" #include "Game/Square.h" #include "Moves/Move.h" double King_Protection_Gene::score_board(const Board& board, Piece_Color perspective, size_t, double) const noexcept { auto square_cou...
#include "Genes/King_Protection_Gene.h" #include <string> #include "Genes/Gene.h" #include "Game/Board.h" #include "Game/Color.h" #include "Game/Square.h" #include "Moves/Move.h" double King_Protection_Gene::score_board(const Board& board, Piece_Color perspective, size_t, double) const noexcept { auto square_cou...
Move unchanging lookup to outside of loop
Move unchanging lookup to outside of loop
C++
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
49bd0d69644c0d14bfbee56c9be7ba5d94c3b63a
src/bindings/javascript/parser.cpp
src/bindings/javascript/parser.cpp
/* Copyright libCellML Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
/* Copyright libCellML Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
Add in isStrict/setStrict to javascript bindings Parser class.
Add in isStrict/setStrict to javascript bindings Parser class.
C++
apache-2.0
cellml/libcellml,cellml/libcellml,cellml/libcellml,cellml/libcellml
052d97fecfe6684fcdb47f3dcd61dbc63e401385
plugins/qt/qobjectfinalizer.cpp
plugins/qt/qobjectfinalizer.cpp
#include "qobjectfinalizer.h" #include <QVariant> #include "getvalue.h" #include "pushvalue.h" #include "toqobject.h" #include "convert.h" duk_ret_t dukpp03::qt::qobjectfinalizer(duk_context* ctx) { QVariant* v = dukpp03::Finalizer<dukpp03::qt::BasicContext>::getVariantToFinalize(ctx); dukpp03::qt::BasicContex...
#include "qobjectfinalizer.h" #include <QVariant> #include "getvalue.h" #include "pushvalue.h" #include "toqobject.h" #include "convert.h" duk_ret_t dukpp03::qt::qobjectfinalizer(duk_context* ctx) { QVariant* v = dukpp03::Finalizer<dukpp03::qt::BasicContext>::getVariantToFinalize(ctx); dukpp03::qt::BasicContex...
Patch for PVS-studio related checks.
[QT] Patch for PVS-studio related checks.
C++
mit
mamontov-cpp/dukpp-03,mamontov-cpp/dukpp-03,mamontov-cpp/dukpp-03,mamontov-cpp/dukpp-03,mamontov-cpp/dukpp-03,mamontov-cpp/dukpp-03,mamontov-cpp/dukpp-03
5f0b2b4cd6936a91dd5482a70b852879891f7284
src/optimizer/simple_optimizer.cpp
src/optimizer/simple_optimizer.cpp
//===----------------------------------------------------------------------===// // // PelotonDB // // simple_optimizer.cpp // // Identification: /peloton/src/optimizer/simple_optimizer.cpp // // Copyright (c) 2016, Carnegie Mellon University Database Group // //===------------------------------...
//===----------------------------------------------------------------------===// // // PelotonDB // // simple_optimizer.cpp // // Identification: /peloton/src/optimizer/simple_optimizer.cpp // // Copyright (c) 2016, Carnegie Mellon University Database Group // //===------------------------------...
Remove switch case temporarlily for bulid purposes
Remove switch case temporarlily for bulid purposes
C++
apache-2.0
vittvolt/peloton,yingjunwu/peloton,cmu-db/peloton,AngLi-Leon/peloton,prashasthip/peloton,AllisonWang/peloton,apavlo/peloton,eric-haibin-lin/peloton-1,apavlo/peloton,malin1993ml/peloton,eric-haibin-lin/peloton-1,phisiart/peloton-p3,malin1993ml/peloton,vittvolt/peloton,haojin2/peloton,malin1993ml/peloton,ShuxinLin/peloto...
18954501e111d86e393ebe97b70eb5c248dfde39
src/optimizer/simple_optimizer.cpp
src/optimizer/simple_optimizer.cpp
//===----------------------------------------------------------------------===// // // PelotonDB // // simple_optimizer.cpp // // Identification: /peloton/src/optimizer/simple_optimizer.cpp // // Copyright (c) 2016, Carnegie Mellon University Database Group // //===------------------------------...
//===----------------------------------------------------------------------===// // // PelotonDB // // simple_optimizer.cpp // // Identification: /peloton/src/optimizer/simple_optimizer.cpp // // Copyright (c) 2016, Carnegie Mellon University Database Group // //===------------------------------...
Remove switch case temporarlily for bulid purposes
Remove switch case temporarlily for bulid purposes
C++
apache-2.0
ranxian/peloton,ranxian/peloton,ranxian/peloton,ranxian/peloton,ranxian/peloton,ranxian/peloton
a676372691b9f52da785be29c9d5323d39559abe
test/ubsan/TestCases/Misc/log-path_test.cc
test/ubsan/TestCases/Misc/log-path_test.cc
// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316 // XFAIL: android // RUN: %clangxx -fsanitize=undefined %s -O1 -o %t // Regular run. // RUN: %run %t -4 2> %t.out // RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t.out // Good log_path. // RUN: rm -f %t.log.* // RUN: %env_ubsan_opts=log_pa...
// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316 // XFAIL: android // The globs below do not work in the lit shell. // REQUIRES: shell // RUN: %clangxx -fsanitize=undefined %s -O1 -o %t // Regular run. // RUN: %run %t -4 2> %t.out // RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t.out //...
Mark the log_path ubsan test as requiring a shell. It uses globs.
Mark the log_path ubsan test as requiring a shell. It uses globs. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@246566 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
3556799ffac342c53f707c151d813a6905063b12
chrome/renderer/renderer_logging_linux.cc
chrome/renderer/renderer_logging_linux.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/renderer_logging.h" #include "base/logging.h" #include "googleurl/src/gurl.h" namespace renderer_logging { // Sets the UR...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/renderer_logging.h" #include "base/logging.h" #include "googleurl/src/gurl.h" namespace renderer_logging { // Sets the UR...
Comment out a very annoying NOTIMPLEMENTED().
Comment out a very annoying NOTIMPLEMENTED(). Review URL: http://codereview.chromium.org/56183 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@13024 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,markYoungH/chromium.src,anirudhSK/chromium,Fireblend/chromium-crosswalk,anirudhSK/chromium,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,Chilledhea...
c564c5de169fff2ca4d8c3fe31e218ea60232217
src/plugins/file/fileplugin.cpp
src/plugins/file/fileplugin.cpp
#include "fileplugin.h" #include "direngine.h" #ifdef Q_OS_WIN #include "fileenginewin.h" #endif #include "fileenginefallback.h" FilePlugin::FilePlugin(QObject *parent) : AbstractFileEnginePlugin(parent) { } QStringList FilePlugin::schemes() const { return QStringList() << "file" << "qrc"; } AbstractFileEng...
#include "fileplugin.h" #include "syncdirengine.h" #ifdef Q_OS_WIN #include "fileenginewin.h" #endif #include "fileenginefallback.h" #include <QIO/SyncDirEngineWrapper> FilePlugin::FilePlugin(QObject *parent) : AbstractFileEnginePlugin(parent) { } QStringList FilePlugin::schemes() const { return QStringList...
Use sync dir engine instead of async
Use sync dir engine instead of async
C++
lgpl-2.1
ABBAPOH/qio
57b2bf23975912ae9573fde33feb4653c3a12c11
test/unit/framework/main.cc
test/unit/framework/main.cc
#include <caf/set_scheduler.hpp> #include "vast.h" #include "vast/filesystem.h" #include "vast/logger.h" #include "vast/serialization.h" #include "framework/unit.h" int main(int argc, char* argv[]) { // Work around CAF bug that blocks VAST in our "distributed" actor unit test // when using less than three thread...
#include <caf/set_scheduler.hpp> #include "vast.h" #include "vast/filesystem.h" #include "vast/logger.h" #include "vast/serialization.h" #include "framework/unit.h" int main(int argc, char* argv[]) { // Because we use several blocking actors in the unit tests, we need at least // some real parallelism to avoid a...
Increase minimum threads in test suite to 4.
Increase minimum threads in test suite to 4.
C++
bsd-3-clause
vast-io/vast,pmos69/vast,pmos69/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,vast-io/vast,mavam/vast,pmos69/vast,mavam/vast,mavam/vast,pmos69/vast
6f4a4acbc64493ede78fcab5fa35da1944bc69ba
base/i18n/icu_util_nacl_win64.cc
base/i18n/icu_util_nacl_win64.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/i18n/icu_util.h" namespace icu_util { bool Initialize() { return true; } } // namespace icu_util
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/i18n/icu_util.h" namespace base { namespace i18n { BASE_I18N_EXPORT bool InitializeICU() { return true; } } // namespace i18n } ...
Build Fix for Win: Make base_i18n_nacl_win64.dll.lib to be generated
Build Fix for Win: Make base_i18n_nacl_win64.dll.lib to be generated Since r219164, using GYP_DEFINES=component=shared_library causes build error with missing base_i18n_nacl_win64.dll.lib. This patch changes to use full qualified name of base::i18n::InitializeICU() renamed by r219164 from icu_util::Initialize(). BUG...
C++
bsd-3-clause
crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,markYoungH/chromium.src,Jonekee/...
78e0602ed47a2e00b8945a70012f0dc2212699b4
Plugins/org.mitk.gui.qt.common/src/QmitkDataNodeSelectionProvider.cpp
Plugins/org.mitk.gui.qt.common/src/QmitkDataNodeSelectionProvider.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...
/*=================================================================== 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...
Return a NULL selection if QItemSelectionModel is set.
Return a NULL selection if QItemSelectionModel is set.
C++
bsd-3-clause
rfloca/MITK,danielknorr/MITK,lsanzdiaz/MITK-BiiG,MITK/MITK,iwegner/MITK,RabadanLab/MITKats,iwegner/MITK,danielknorr/MITK,rfloca/MITK,NifTK/MITK,rfloca/MITK,danielknorr/MITK,fmilano/mitk,lsanzdiaz/MITK-BiiG,nocnokneo/MITK,fmilano/mitk,RabadanLab/MITKats,NifTK/MITK,MITK/MITK,nocnokneo/MITK,rfloca/MITK,nocnokneo/MITK,rflo...
0c60b0a686fb59b35ca9e1fa3cb7064ef000aa1d
test/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp
test/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.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. // //===----------------------------------------...
Remove a stray tab that snuck into a test. No functionality change
Remove a stray tab that snuck into a test. No functionality change git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@202739 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
8c32ddc645bcc64c776471bb16739520ec1b078b
chrome/browser/extensions/extension_popup_apitest.cc
chrome/browser/extensions/extension_popup_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" // Flaky, http://c...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" // Times out. See ...
Disable ExtensionApiTest.Popup. It's been timing out for the last 750+ runs.
Disable ExtensionApiTest.Popup. It's been timing out for the last 750+ runs. TBR=michaeln BUG=46601 TEST=ExtensionApiTest.FLAKY_Popup no longer runs Review URL: http://codereview.chromium.org/3603003 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@61170 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
7fc1f19e155df1e1847d495ef962fd6d5406b9cb
src/configure/generators/NMakefile.cpp
src/configure/generators/NMakefile.cpp
#include "NMakefile.hpp" #include <configure/Build.hpp> #include <configure/Filesystem.hpp> #include <configure/quote.hpp> #include <configure/Node.hpp> namespace configure { namespace generators { bool NMakefile::is_available(Build& build) { return build.fs().which("nmake") != boost::none; } std::string NMak...
#include "NMakefile.hpp" #include <configure/Build.hpp> #include <configure/Filesystem.hpp> #include <configure/quote.hpp> #include <configure/Node.hpp> namespace configure { namespace generators { bool NMakefile::is_available(Build& build) { return build.fs().which("nmake") != boost::none; } std::string NMak...
Check that include files exists in nmakefiles.
Check that include files exists in nmakefiles.
C++
bsd-3-clause
hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure
664eedf1fdb39149ae2d4362849fee7904a401e9
src/broadcasters/static_tf/src/static_tf_node.cpp
src/broadcasters/static_tf/src/static_tf_node.cpp
#include <ros/ros.h> #include <tf/transform_broadcaster.h> int main(int argc, char** argv){ ros::init(argc, argv, "static_tf_node"); ros::NodeHandle n; ros::Rate r(100); tf::TransformBroadcaster broadcaster; while(n.ok()){ broadcaster.sendTransform( tf::StampedTransform( tf::Transform( tf::Qua...
#include <ros/ros.h> #include <tf/transform_broadcaster.h> int main(int argc, char** argv){ ros::init(argc, argv, "static_tf_node"); ros::NodeHandle n; ros::Rate r(100); tf::TransformBroadcaster broadcaster; while(n.ok()){ broadcaster.sendTransform( tf::StampedTransform( tf::Transfor...
Replace tab to space of indent on static_tf
Replace tab to space of indent on static_tf
C++
bsd-3-clause
CIR-KIT/fifth_robot_pkg,CIR-KIT/fifth_robot_pkg,CIR-KIT/fifth_robot_pkg
2f53ef81724440d051749d486bdeade65d85ef1c
messagebus/src/vespa/messagebus/routing/retrytransienterrorspolicy.cpp
messagebus/src/vespa/messagebus/routing/retrytransienterrorspolicy.cpp
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "retrytransienterrorspolicy.h" #include <vespa/messagebus/errorcode.h> namespace mbus { RetryTransientErrorsPolicy::RetryTransientErrorsPolicy() : _enabled(true), _baseDelay(1.0) {}...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "retrytransienterrorspolicy.h" #include <vespa/messagebus/errorcode.h> namespace mbus { RetryTransientErrorsPolicy::RetryTransientErrorsPolicy() : _enabled(true), _baseDelay(1.0) {}...
Use relaxed memory ordering for speed.
Use relaxed memory ordering for speed.
C++
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
e930ff5c34229dddfabb1709a9773a45bb8706bc
test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp
test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp
// RUN: %clang_cc1 -S -emit-llvm -o %t.ll %s -triple x86_64-apple-darwin10 // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o %t-c++11.ll %s -triple x86_64-apple-darwin10 // RUN: diff %t.ll %t-c++11.ll // rdar://12897704 struct sAFSearchPos { unsigned char *pos; unsigned char count; }; static volatile struct ...
// RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o - %s -triple x86_64-apple-darwin10 | FileCheck %s // RUN: %clang_cc1 -S -emit-llvm -o %t.ll %s -triple x86_64-apple-darwin10 // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o %t-c++11.ll %s -triple x86_64-apple-darwin10 // RUN: diff %t.ll %t-c++11.ll // rdar://12897704 s...
Improve on my last test for patch for // rdar://12897704
Improve on my last test for patch for // rdar://12897704 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@172154 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
03ef193f5310f62989285d88cd0e54e05f927769
lib/asan/lit_tests/malloc_delete_mismatch.cc
lib/asan/lit_tests/malloc_delete_mismatch.cc
// Check that we detect malloc/delete mismatch only if the approptiate flag // is set. // RUN: %clangxx_asan -g %s -o %t 2>&1 // RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=1 %t 2>&1 | \ // RUN: %symbolize | FileCheck %s // No error here. // RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=0 %t #include <stdlib.h> static volat...
// Check that we detect malloc/delete mismatch only if the approptiate flag // is set. // RUN: %clangxx_asan -g %s -o %t 2>&1 // RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=1 %t 2>&1 | \ // RUN: %symbolize | FileCheck %s // No error here. // RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=0 %t #include <stdlib.h> static volat...
Fix another FileCheck pattern to be c++filt-proof.
[ASan] Fix another FileCheck pattern to be c++filt-proof. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@170878 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
58d4def531e8e4d57412a08f70e33840ea9b8e53
net/http/http_auth_handler_basic_unittest.cc
net/http/http_auth_handler_basic_unittest.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "testing/gtest/include/gtest/gtest.h" #include "base/basictypes.h" #include "net/http/http_auth_handler_basic.h" namespace net { TEST...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "testing/gtest/include/gtest/gtest.h" #include "base/basictypes.h" #include "net/http/http_auth_handler_basic.h" namespace net { TEST...
Add an HTTP basic auth unit test for an empty username.
Add an HTTP basic auth unit test for an empty username. R=eroman BUG=297 Review URL: http://codereview.chromium.org/8859 git-svn-id: http://src.chromium.org/svn/trunk/src@4109 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: f9261bf0792274bf2ed1ada056a1d9dca2be377a
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...
e8443fe8937b699b3847adc2c135587a382084a8
chrome/browser/sessions/session_restore_delegate.cc
chrome/browser/sessions/session_restore_delegate.cc
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sessions/session_restore_delegate.h" #include "base/metrics/field_trial.h" #include "chrome/browser/sessions/session_restore_sta...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sessions/session_restore_delegate.h" #include "base/metrics/field_trial.h" #include "chrome/browser/sessions/session_restore_sta...
Change logic to enable for group Enabled (for A/B testing).
Change logic to enable for group Enabled (for A/B testing). This allows to have multiple Disabled group, e.g. Disabled/Disabled_control, and thus eases experimentation. TBR=sky@chromium.org BUG=465815 Review URL: https://codereview.chromium.org/1062243002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7...
C++
bsd-3-clause
axinging/chromium-crosswalk,Just-D/chromium-1,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk,Chilledheart/chromium,ltilve/...
d2dfd6be586769ce77d7890abfb6d4e9cc261535
src/ofxHapImageSequence.cpp
src/ofxHapImageSequence.cpp
#include "ofxHapImageSequence.h" ofxHapImageSequence::ofxHapImageSequence() { } ofxHapImageSequence::ofxHapImageSequence(ofDirectory& directory) { load(directory); } ofxHapImageSequence::ofxHapImageSequence(const std::string& path) { load(path); } ofxHapImageSequence::~ofxHapImageSequence() { } void ofxH...
#include "ofxHapImageSequence.h" ofxHapImageSequence::ofxHapImageSequence() { } ofxHapImageSequence::ofxHapImageSequence(ofDirectory& directory) { load(directory); } ofxHapImageSequence::ofxHapImageSequence(const std::string& path) { load(path); } ofxHapImageSequence::~ofxHapImageSequence() { } void ofxH...
Allow instantiation of sequence from file path
Allow instantiation of sequence from file path Accept a file path within the directory or directory path when creating/loading an ofxHapImageSequence
C++
bsd-2-clause
bangnoise/ofxHapImageSequence
1f97ccc3eecf2452822e6ef5cd5434fc6ec5e5a0
ConstCastIsDangerous/ConstCastIsDangerous.cpp
ConstCastIsDangerous/ConstCastIsDangerous.cpp
#include <iostream> class MyClass { public: MyClass(int value) : m_fixedValue(value) {} const int m_fixedValue; static const int m_fixedStaticValue; }; const int MyClass::m_fixedStaticValue = 9; int main() { const MyClass myInstance(9); std::cout << myInstance.m_fixedValue << std::endl; const_cast<int&...
#include <iostream> class MyClass { public: MyClass(int value) : m_fixedValue(value) {} const int m_fixedValue; static const int m_fixedStaticValue; }; const int MyClass::m_fixedStaticValue = 9; int main() { const MyClass myInstance(9); std::cout << myInstance.m_fixedValue << std::endl; const_cast<int&...
Put an additional print in place.
Put an additional print in place. One can now see which const cast is causing the crash.
C++
mit
jbcoe/CppSandbox,jbcoe/CppSandbox,jbcoe/CppSandbox,hanw/cppsandbox,hanw/cppsandbox,hanw/cppsandbox
65c4ed4a7db8a9ecb9cef9ae77f4508f77faf493
osquery/tables/networking/linux/arp.cpp
osquery/tables/networking/linux/arp.cpp
// Copyright 2004-present Facebook. All Rights Reserved. #include <stdio.h> #include <string.h> #include "osquery/database.h" namespace osquery { namespace tables { QueryData genArp() { Row r; QueryData results; FILE *proc_arp_fd; char *line = nullptr; size_t length; int ret; // We are already callin...
// Copyright 2004-present Facebook. All Rights Reserved. #include <stdio.h> #include <string.h> #include <boost/algorithm/string.hpp> #include <boost/algorithm/string/split.hpp> #include "osquery/database.h" namespace osquery { namespace tables { QueryData genArp() { Row r; QueryData results; FILE *proc_arp_...
Fix boost split on linux to remove sscanf
Fix boost split on linux to remove sscanf
C++
bsd-3-clause
prabhakhar/osquery,kost/osquery,grayark/osquery,Abhikos/osquery,unixboy/osquery,anusornc/osquery,runasand/osquery,hackgnar/osquery,0xdabbad00/osquery,arirubinstein/osquery,hackgnar/osquery,eastebry/osquery,0xdabbad00/osquery,friedbutter/osquery,alex/osquery,dushmis/osquery,kost/osquery,mwielgoszewski/osquery,tburgin/os...
adacbd2f35d25b82ace8c0c1c007b3c2a981c9a3
src/threads/part4/AtomicCounter.cpp
src/threads/part4/AtomicCounter.cpp
#include <thread> #include <atomic> #include <iostream> #include <vector> struct AtomicCounter { std::atomic<int> value; void increment(){ ++value; } void decrement(){ --value; } int get(){ return value.load(); } }; int main(){ AtomicCounter counter; std...
#include <thread> #include <atomic> #include <iostream> #include <vector> struct AtomicCounter { std::atomic<int> value; AtomicCounter() : value(0) {} void increment(){ ++value; } void decrement(){ --value; } int get(){ return value.load(); } }; int main(){ ...
Make sure std::atomic is initialized correctly
Make sure std::atomic is initialized correctly G++ seems to have some issues with default initialization of std::atomic
C++
mit
wichtounet/articles,HankFaan/articles
b9e42fcd033604ad61eef282255cb3a4df383eeb
chrome/browser/web_applications/web_app_android.cc
chrome/browser/web_applications/web_app_android.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/web_applications/web_app.h" namespace web_app { namespace internals { bool CreatePlatformShortcut( const FilePath& web_...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/web_applications/web_app.h" namespace web_app { namespace internals { bool CreatePlatformShortcut( const FilePath& web_...
Add dummy DeletePlatformShortcuts() for Android.
Add dummy DeletePlatformShortcuts() for Android. This is part of the unit_tests linking effort on Android. BUG=136787 Review URL: https://chromiumcodereview.appspot.com/10693176 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@147276 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,dednal/chromium.src,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,mog...
88aeed07173fab137a19d163aa04b0490db9a43b
chrome/browser/ui/views/dropdown_bar_host_aura.cc
chrome/browser/ui/views/dropdown_bar_host_aura.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/dropdown_bar_host.h" #include "base/logging.h" #include "ui/aura/window.h" #include "ui/views/widget/widget.h" usi...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/dropdown_bar_host.h" #include "base/logging.h" #include "ui/aura/window.h" #include "ui/views/widget/widget.h" usi...
Fix findbar visibility when switching between tabs.
aura: Fix findbar visibility when switching between tabs. BUG=110936 TEST=manually Review URL: https://chromiumcodereview.appspot.com/9293031 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@119909 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
yitian134/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,yitian134/...
60a5d804d8de541ec21206e9b146a0b847273a99
src/objectptr.cpp
src/objectptr.cpp
/* * Copyright 2003-2005 The Apache Software Foundation. * * 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 ap...
/* * Copyright 2003-2005 The Apache Software Foundation. * * 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 ap...
Switch from InterlockedExchangePointer back to APR atomic
LOGCXX-132: Switch from InterlockedExchangePointer back to APR atomic git-svn-id: a7c1976543b50a5b791fd6a475a0ba067ae951b4@407850 13f79535-47bb-0310-9956-ffa450edef68
C++
apache-2.0
mir-ror/log4cxx,mir-ror/log4cxx,mir-ror/log4cxx,mir-ror/log4cxx
1102afb8c5474f6b1e2cdff6ac0b8b0e913441e4
lib/Target/XCore/XCoreTargetObjectFile.cpp
lib/Target/XCore/XCoreTargetObjectFile.cpp
//===-- XCoreTargetObjectFile.cpp - XCore object files --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- XCoreTargetObjectFile.cpp - XCore object files --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add newline at end of file to remove gcc warning.
Add newline at end of file to remove gcc warning. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@77791 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm...
0628f02c7e4812a1c3a83dac8bfe623b3f84fc4c
opencog/modules/QueryModule.cc
opencog/modules/QueryModule.cc
/* * QueryModule.cc * * Load the query subsystem as a module. * Copyright (c) 2008 Linas Vepstas <linas@linas.org> */ #include <opencog/query/PatternSCM.h> #include "QueryModule.h" using namespace opencog; DECLARE_MODULE(QueryModule); QueryModule::QueryModule(CogServer& cs) : Module(cs), _pat(NULL) { } QueryM...
/* * QueryModule.cc * * Load the query subsystem as a module. * Copyright (c) 2008 Linas Vepstas <linas@linas.org> */ #include <opencog/query/PatternSCM.h> #include "QueryModule.h" using namespace opencog; DECLARE_MODULE(QueryModule); QueryModule::QueryModule(CogServer& cs) : Module(cs), _pat(NULL) { } QueryM...
Call the Query Module's init
Call the Query Module's init
C++
agpl-3.0
rohit12/opencog,rodsol/opencog,ruiting/opencog,TheNameIsNigel/opencog,prateeksaxena2809/opencog,AmeBel/opencog,kinoc/opencog,andre-senna/opencog,jlegendary/opencog,eddiemonroe/opencog,iAMr00t/opencog,roselleebarle04/opencog,gavrieltal/opencog,virneo/opencog,virneo/opencog,virneo/opencog,TheNameIsNigel/opencog,Tiggels/o...
d1278198e53f4a4028adcf0038d47875f6ec1545
ui/views/controls/textfield/textfield_controller.cc
ui/views/controls/textfield/textfield_controller.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/views/controls/textfield/textfield_controller.h" namespace views { TextfieldController::IsCommandIdEnabled(int command_id) const { re...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/views/controls/textfield/textfield_controller.h" namespace views { bool TextfieldController::IsCommandIdEnabled(int command_id) const {...
Fix the fix. Added missing return type.
Fix the fix. Added missing return type. TBR=varunjain@chromium.org TEST=ChromiumOS clang bots build Review URL: https://chromiumcodereview.appspot.com/9233010 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@118450 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,rogerwang/chromium,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,dushu1203/chromium.src,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,patrickm/chromium.src,rogerwang/chromium,ondra-novak/chromium.src...
221c099e89172dc12bff601827a29dfa2154811b
chrome/browser/extensions/extension_bookmarks_apitest.cc
chrome/browser/extensions/extension_bookmarks_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Bookmarks) { // TODO(erikkay) no initial state fo...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" // TODO(brettw) bug 19866: this test is disabled because it is flaky. IN_PROC_BROWSER_TEST_F...
Disable the Bookmarks ExtensionAPITest becuase it is flaky.
Disable the Bookmarks ExtensionAPITest becuase it is flaky. Review URL: http://codereview.chromium.org/173149 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@23877 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
fujunwei/chromium-crosswalk,robclark/chromium,dednal/chromium.src,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,fujunwei/chrom...
51cf4600a5982694f93e36c77d696b06e44f9af1
chrome/browser/extensions/extension_tabs_apitest.cc
chrome/browser/extensions/extension_tabs_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/browser.h" #include "chrome/browser/pref_service.h" #include "chrom...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/browser.h" #include "chrome/browser/pref_service.h" #include "chrom...
Disable ExtensionApiTest.Tabs on Mac. TEST=no random redness on Mac OS X 10.6 bot BUG=37387 TBR=skerner@
Disable ExtensionApiTest.Tabs on Mac. TEST=no random redness on Mac OS X 10.6 bot BUG=37387 TBR=skerner@ git-svn-id: http://src.chromium.org/svn/trunk/src@40616 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 8a6a905d8137757370a84a53a6f8e3a06fa2bffd
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...
e9cbee684b0a049fc382371e0dc2e3d4f09c7359
chrome/browser/extensions/extension_infobar_apitest.cc
chrome/browser/extensions/extension_infobar_apitest.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 "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" #if defined(TOOLKI...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" #if defined(TOOLKI...
Mark a test as flaky on ChromeOS.
Mark a test as flaky on ChromeOS. BUG=40141 TEST=None Review URL: http://codereview.chromium.org/1575015 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@43384 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house-of-life-chromium,Crystalnix/ho...
f978698f5882d46f3baf3607a4ec484d6a67e36f
test/unit/lel/operation/unary.cpp
test/unit/lel/operation/unary.cpp
// Copyright 2017, Dawid Kurek, <dawikur@gmail.com> #include "lel/operation/unary.hpp" #include "gtest/gtest.h" TEST(unary_test, logical_not_can_be_used_in_constexpr) { std::logical_not<> logical_not; static_assert(logical_not(false), ""); } TEST(unary_test, indirection_can_be_used_in_constexpr) { LeL::Opera...
// Copyright 2017, Dawid Kurek, <dawikur@gmail.com> #include "lel/operation/unary.hpp" #include "gtest/gtest.h" TEST(unary_test, logical_not_can_be_used_in_constexpr) { std::logical_not<> logical_not; static_assert(logical_not(false), ""); }
Remove problemanic on VS test
Remove problemanic on VS test
C++
mit
dawikur/lel,dawikur/lel,dawikur/lel
6a16259b6540db9bd740d3159058c656898532c2
chrome/common/net/test_url_fetcher_factory.cc
chrome/common/net/test_url_fetcher_factory.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 "chrome/common/net/test_url_fetcher_factory.h" TestURLFetcher::TestURLFetcher(int id, const GURL& url, ...
// 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 "chrome/common/net/test_url_fetcher_factory.h" TestURLFetcher::TestURLFetcher(int id, const GURL& url, ...
Fix compile failure on GCC
Fix compile failure on GCC BUG=54274 TEST=none git-svn-id: http://src.chromium.org/svn/trunk/src@65426 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 5e342b24ea929256ace9c305fff8b359ec232489
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...
4a2783b2d60b440c95f8f9228ac66cb638586b35
1-common-tasks/input-streams/validate-multiple-reads.cpp
1-common-tasks/input-streams/validate-multiple-reads.cpp
// Validate multiple reads #include <sstream> #include <string> int main() { std::istringstream stream{"John Smith 32"}; std::string first_name; std::string family_name; int age; if (stream >> first_name && stream >> family_name && stream >> age) { // Use values } } // Ensure that multiple stream...
// Validate multiple reads #include <sstream> #include <string> int main() { std::istringstream stream{"Chief Executive Officer\n" "John Smith\n" "32"}; std::string position; std::string first_name; std::string family_name; int age; if (std::getline(stream...
Improve validate multiple reads sample
Improve validate multiple reads sample
C++
cc0-1.0
tmwoz/CppSamples-Samples,rollbear/CppSamples-Samples,thatbrod/CppSamples-Samples,vjacquet/CppSamples-Samples,sftrabbit/CppSamples-Samples,brunotag/CppSamples-Samples,mnpk/CppSamples-Samples,darongE/CppSamples-Samples
62a0bcddd93d5cdda8ec6955561b395f31b31e22
cpp/ql/test/library-tests/dataflow/taint-tests/bsd.cpp
cpp/ql/test/library-tests/dataflow/taint-tests/bsd.cpp
void sink(...); int source(); // --- accept --- struct sockaddr { unsigned char length; int sa_family; char* sa_data; }; int accept(int, const sockaddr*, int*); void sink(sockaddr); void test_accept() { int s = source(); sockaddr addr; int size = sizeof(sockaddr); int a = accept(s, &addr, &size); sin...
void sink(...); int source(); // --- accept --- struct sockaddr { unsigned char length; int sa_family; char* sa_data; }; int accept(int, sockaddr*, int*); void sink(sockaddr); void test_accept() { int s = source(); sockaddr addr; int size = sizeof(sockaddr); int a = accept(s, &addr, &size); sink(a); ...
Fix the `accept` prototype in the dataflow taint tests
C++: Fix the `accept` prototype in the dataflow taint tests
C++
mit
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql
cc5ba4fcf2361ddf76c223126fcd6da68693d586
Xcode/ESP/src/examples/user_touche.cpp
Xcode/ESP/src/examples/user_touche.cpp
/** @example user_touche.cpp Touche example. See <a href="https://github.com/damellis/ESP/wiki/%5BExample%5D-Touché-swept-frequency-capacitive-sensing">documentation on the wiki</a>. */ #include <ESP.h> BinaryIntArraySerialStream stream(115200, 160); TcpOStream oStream("localhost", 5204); GestureRecognitionPipeline...
/** @example user_touche.cpp Touche example. See <a href="https://github.com/damellis/ESP/wiki/%5BExample%5D-Touché-swept-frequency-capacitive-sensing">documentation on the wiki</a>. */ #include <ESP.h> BinaryIntArraySerialStream stream(115200, 160); TcpOStream oStream("localhost", 5204); GestureRecognitionPipeline...
Add true-positive and false-negative warning thresholds to Touche example.
Add true-positive and false-negative warning thresholds to Touche example.
C++
bsd-3-clause
damellis/ESP,damellis/ESP
bb1c184d4b0a54c3aa1a740df0a985b5d0a3f911
interpreter/cling/lib/UserInterface/RequiredSymbols.cpp
interpreter/cling/lib/UserInterface/RequiredSymbols.cpp
// request symbols #include "cling/Interpreter/Interpreter.h" #include "cling/Interpreter/CValuePrinter.h" #include "cling/Interpreter/DynamicExprInfo.h" #include "cling/Interpreter/InterpreterCallbacks.h" #include "cling/Interpreter/LookupHelper.h" #include "cling/Interpreter/ValuePrinter.h" #include "cling/Interprete...
// request symbols #include "cling/Interpreter/Interpreter.h" #include "cling/Interpreter/CValuePrinter.h" #include "cling/Interpreter/DynamicExprInfo.h" #include "cling/Interpreter/InterpreterCallbacks.h" #include "cling/Interpreter/LookupHelper.h" #include "cling/Interpreter/ValuePrinter.h" #include "cling/Interprete...
Put the symbol requester func into the proper namespace!
Put the symbol requester func into the proper namespace! git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@46987 27541ba8-7e3a-0410-8455-c3a389f83636
C++
lgpl-2.1
bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT
216caa2171f965eeaf9870f7d8d60f1630e1e145
06.MemoryManagement/TheMarsMission/RandomGenerator.cpp
06.MemoryManagement/TheMarsMission/RandomGenerator.cpp
#include "RandomGenerator.h" RandomGenerator::RandomGenerator() { // reset random seed - to generate different values each time. std::srand(time(0)); } RandomGenerator::~RandomGenerator() { std::cout << "Random deleted" << std::endl; } int RandomGenerator::getRandomNumber(int min, int max, bool includeMa...
#include "RandomGenerator.h" RandomGenerator::RandomGenerator() { // reset random seed - to generate different values each time. std::srand(time(0)); } RandomGenerator::~RandomGenerator() { std::cout << "Random deleted" << std::endl; } int RandomGenerator::getRandomNumber(int min, int max, bool includeMa...
Fix bug with generating numbers.
Fix bug with generating numbers.
C++
mit
M-Yankov/CPlusPlus,M-Yankov/CPlusPlus
5414464e3076461bf47d570ccd684ac46c7bcaa9
grantlee_loadertags/include.cpp
grantlee_loadertags/include.cpp
/* Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> */ #include "include.h" #include <QStringList> #include <QtPlugin> #include "parser.h" #include "template.h" #include <QDebug> IncludeNodeFactory::IncludeNodeFactory() { } Node* IncludeNodeFactory::getNode(const QString &tagContent, Parser *p) { QStr...
/* Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> */ #include "include.h" #include <QStringList> #include <QtPlugin> #include "parser.h" #include "template.h" #include <QDebug> IncludeNodeFactory::IncludeNodeFactory() { } Node* IncludeNodeFactory::getNode(const QString &tagContent, Parser *p) { QStr...
Allow both single and double quotes in string literals.
Allow both single and double quotes in string literals.
C++
lgpl-2.1
simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee
3c0e3eb9d21ec2a1b7b139f907ff906c093f3157
test/std/localization/locale.categories/category.monetary/locale.moneypunct/money_base.pass.cpp
test/std/localization/locale.categories/category.monetary/locale.moneypunct/money_base.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. // //===----------------------------------------...
Use static_assert instead of runtime assert in std::money_base tests.
Use static_assert instead of runtime assert in std::money_base tests. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@273360 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
ae76c62623eab14fff9a634a1815dba2b3e1826a
dv/uvm/core_ibex/common/ibex_cosim_agent/spike_cosim_dpi.cc
dv/uvm/core_ibex/common/ibex_cosim_agent/spike_cosim_dpi.cc
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <svdpi.h> #include <cassert> #include "cosim.h" #include "spike_cosim.h" extern "C" { void *spike_cosim_init(const char *isa_string, svBitVecVal *start_pc, ...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <svdpi.h> #include <cassert> #include "cosim.h" #include "spike_cosim.h" extern "C" { void *spike_cosim_init(const char *isa_string, svBitVecVal *start_pc, ...
Add memory region to match UVM env
[dv,cosim] Add memory region to match UVM env This extends our memory range to be between 0 and 0xFFFF_FFFF. This is needed because in the case of no match between UVM memory model and spike memory model, we see a mismatch. Signed-off-by: Canberk Topal <e6b05429a51cc3258c31cb1f7836595b60921a29@lowrisc.org>
C++
apache-2.0
lowRISC/ibex,AmbiML/ibex,lowRISC/ibex,lowRISC/ibex,AmbiML/ibex,AmbiML/ibex,lowRISC/ibex,AmbiML/ibex
dbabeb279d89b1e1f609c6dbd260c3bedf698898
test/CodeGenCXX/debug-info-artificial-arg.cpp
test/CodeGenCXX/debug-info-artificial-arg.cpp
// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s template<class X> class B { public: explicit B(X* p = 0); }; class A { public: A(int value) : m_a_value(value) {}; A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {} virtual ~A() {} private: int m_a_va...
// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s template<class X> class B { public: explicit B(X* p = 0); }; class A { public: A(int value) : m_a_value(value) {}; A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {} virtual ~A() {} private: int m_a_va...
Debug Info: update testing cases when the context field of subprogram is updated to use DIScopeRef.
Debug Info: update testing cases when the context field of subprogram is updated to use DIScopeRef. Paired commit with r192378. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@192379 91177308-0d34-0410-b5e6-96231b3b80d8
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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
3d508409c2f59dffd8034ccc814bdbaf887f53cd
chrome/browser/extensions/extension_storage_apitest.cc
chrome/browser/extensions/extension_storage_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Storage) { ASSERT_TRUE(RunExtensionTest("storage"...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" // This test is disabled. See bug 25746 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_St...
Disable ExtensionApiTest.Storage because it crashes the browser_tests too.
Disable ExtensionApiTest.Storage because it crashes the browser_tests too. BUG:25746 Review URL: http://codereview.chromium.org/328024 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@30021 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
c396aea06cf9b3d15d42e8200f45dffa25ee652f
cirkit_unit03_driver/src/cirkit_unit03_driver_node.cpp
cirkit_unit03_driver/src/cirkit_unit03_driver_node.cpp
/****************************************************** * This is CIR-KIT 3rd robot control driver. * Author : Arita Yuta(Kyutech) ******************************************************/ #include "cirkit_unit03_driver.hpp" int main(int argc, char** argv) { ros::init(argc, argv, "Third_robot_driver_node"); ROS_I...
/****************************************************** * This is CIR-KIT 3rd robot control driver. * Author : Arita Yuta(Kyutech) ******************************************************/ #include "cirkit_unit03_driver.hpp" int main(int argc, char** argv) { ros::init(argc, argv, "cirkit_unit03_driver_node"); ROS...
Update node name to cirkit_unit03
Update node name to cirkit_unit03
C++
bsd-3-clause
CIR-KIT-Unit03/cirkit_unit03_robot,CIR-KIT-Unit03/cirkit_unit03_robot
dbb2ebf03905bb67d4e6b980b5cb37891a1d2193
chrome/browser/profiles/avatar_menu_desktop.cc
chrome/browser/profiles/avatar_menu_desktop.cc
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/profiles/avatar_menu.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/profiles/profile.h" #include "chrom...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/profiles/avatar_menu.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/profiles/profile.h" #include "chrom...
Use the default, non-high-res avatar when badging the taskbar.
[Win] Use the default, non-high-res avatar when badging the taskbar. BUG=374173 TEST=Start Chrome with --new-profile-management. Open and 'Incognito' window. The taksbar icon should now have a grey background. Review URL: https://codereview.chromium.org/286933008 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@...
C++
bsd-3-clause
markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,Chilledheart/chromium,M4sse/chromium.src,dushu1203/chromium.src,ondra...
19188aac3bb968e82efc8e1ea45b178a068a2bbf
chrome/browser/extensions/extension_websocket_apitest.cc
chrome/browser/extensions/extension_websocket_apitest.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 "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_paths.h" #include "chrome/test/ui_test_utils.h" #include "net/...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_paths.h" #include "chrome/test/ui_test_utils.h" #include "net/...
Disable this test on Linux, because it will fail as soon as WebKit's version is rolled forward.
Disable this test on Linux, because it will fail as soon as WebKit's version is rolled forward. TEST=none BUG=40976 Review URL: http://codereview.chromium.org/1610016 git-svn-id: http://src.chromium.org/svn/trunk/src@44127 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 020af06a5bccc3a77f9167c0c727a4e147d02...
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...
9b6fab89d0ca57ad4201ef333f6e4688dab42b66
experimental/native_file_system/virtual_root_provider_tizen.cc
experimental/native_file_system/virtual_root_provider_tizen.cc
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/experimental/native_file_system/virtual_root_provider.h" #include <tzplatform_config.h> #include <map> #include <string> VirtualRootPr...
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/experimental/native_file_system/virtual_root_provider.h" #include <tzplatform_config.h> #include <map> #include <string> VirtualRootPr...
Remove Ringtone from virtual root
[Tizen] Remove Ringtone from virtual root IVI doesn't need "Ringtone" path. So, remove it.
C++
bsd-3-clause
weiyirong/crosswalk-1,jpike88/crosswalk,dreamsxin/crosswalk,jondong/crosswalk,hgl888/crosswalk,mrunalk/crosswalk,hgl888/crosswalk-efl,tedshroyer/crosswalk,minggangw/crosswalk,xzhan96/crosswalk,fujunwei/crosswalk,huningxin/crosswalk,qjia7/crosswalk,siovene/crosswalk,Bysmyyr/crosswalk,dreamsxin/crosswalk,Bysmyyr/crosswal...
d52c41f8b48d19b15384b44f62efb6929b2863be
src/qt-components/marble-touch/main.cpp
src/qt-components/marble-touch/main.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 2011 Daniel Marth <danielmarth@gmx.at> // A QML-interface of Marble for the Meego operatin...
// 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 2011 Daniel Marth <danielmarth@gmx.at> // A QML-interface of Marble for the Meego operatin...
Add the argument --portrait to marble-touch to start in portrait mode.
Add the argument --portrait to marble-touch to start in portrait mode.
C++
lgpl-2.1
utkuaydin/marble,probonopd/marble,tzapzoor/marble,tucnak/marble,tzapzoor/marble,David-Gil/marble-dev,adraghici/marble,Earthwings/marble,tucnak/marble,rku/marble,AndreiDuma/marble,adraghici/marble,AndreiDuma/marble,tzapzoor/marble,rku/marble,tzapzoor/marble,David-Gil/marble-dev,David-Gil/marble-dev,probonopd/marble,quan...
b464ffc4c8b091c183f81bcc3720b1417e3cbae8
chrome/browser/extensions/extension_websocket_apitest.cc
chrome/browser/extensions/extension_websocket_apitest.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 "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_paths.h" #include "chrome/test/ui_test_utils.h" #include "net/...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_paths.h" #include "chrome/test/ui_test_utils.h" #include "net/...
Disable ExtensionApiTest.WebSocket due to a timeout.
Disable ExtensionApiTest.WebSocket due to a timeout. TBR=ukai TEST=disabled BUG=38225 Review URL: http://codereview.chromium.org/1002003 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@41704 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,ChromiumWebApps/chromium,markYoungH/chromium.src,rogerwang/chromium,fujunwei/chromium-crosswalk,Pluto-tv/chromium-crosswalk,anirudhSK/chrom...
29b29d338836e9987cc06e6a95fdf8fb8afb034a
src/libaktualizr/package_manager/packagemanagerconfig.cc
src/libaktualizr/package_manager/packagemanagerconfig.cc
#include "package_manager/packagemanagerconfig.h" #include <boost/log/trivial.hpp> void PackageConfig::updateFromPropertyTree(const boost::property_tree::ptree& pt) { CopyFromConfig(type, "type", pt); CopyFromConfig(os, "os", pt); CopyFromConfig(sysroot, "sysroot", pt); CopyFromConfig(ostree_server, "ostree_s...
#include "package_manager/packagemanagerconfig.h" #include <boost/log/trivial.hpp> void PackageConfig::updateFromPropertyTree(const boost::property_tree::ptree& pt) { CopyFromConfig(type, "type", pt); CopyFromConfig(os, "os", pt); CopyFromConfig(sysroot, "sysroot", pt); CopyFromConfig(ostree_server, "ostree_s...
Add a missing writeOption in pacman config
Add a missing writeOption in pacman config Signed-off-by: Laurent Bonnans <0909bc0a3d1b0c91d8e00372b9633e8e9ea958de@here.com>
C++
mpl-2.0
advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp,advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp,advancedtelematic/aktualizr
e5d9643825c99c3e539d574738560d552f78a3b9
test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cc
test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cc
// Regression test for a crash in getpwnam_r and similar interceptors. // RUN: %clangxx -O0 -g %s -o %t && %run %t #include <assert.h> #include <pwd.h> #include <signal.h> #include <stdio.h> #include <sys/types.h> #include <unistd.h> int main(void) { struct passwd pwd; struct passwd *pwdres; char buf[10000]; ...
// Regression test for a crash in getpwnam_r and similar interceptors. // RUN: %clangxx -O0 -g %s -o %t && %run %t #include <assert.h> #include <errno.h> #include <pwd.h> #include <signal.h> #include <stdio.h> #include <sys/types.h> #include <unistd.h> int main(void) { struct passwd pwd; struct passwd *pwdres; ...
Fix getpwnam test on ppc64le Fedora 21.
[Sanitizer] Fix getpwnam test on ppc64le Fedora 21. Summary: On ppc64le Fedora 21, getpwnam_r("no-such-user", ...) returns ENOENT instead of 0. Tolerate this in the test case. Reviewers: eugenis Reviewed By: eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9233 git-svn-id: c199f29...
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
a4f448633278360f7cb8ef2135f68291cb021a9f
searchcore/src/vespa/searchcore/proton/metrics/executor_metrics.cpp
searchcore/src/vespa/searchcore/proton/metrics/executor_metrics.cpp
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "executor_metrics.h" namespace proton { void ExecutorMetrics::update(const vespalib::ThreadStackExecutorBase::Stats &stats) { maxPending.set(stats.queueSize.max()); accepted.inc(sta...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "executor_metrics.h" namespace proton { void ExecutorMetrics::update(const vespalib::ThreadStackExecutorBase::Stats &stats) { maxPending.set(stats.queueSize.max()); accepted.inc(sta...
Use auto and captitalize first word in sentence.
Use auto and captitalize first word in sentence.
C++
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
23f9599dfd98a0ae1af57e1092371f02747653c0
engine/core/windows/SystemWin.cpp
engine/core/windows/SystemWin.cpp
// Copyright 2015-2020 Elviss Strazdins. All rights reserved. #include <cstdlib> #include <shellapi.h> #include "SystemWin.hpp" #include "EngineWin.hpp" #include "../../utils/Log.hpp" int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { try { int argc; LPWSTR* argv = ...
// Copyright 2015-2020 Elviss Strazdins. All rights reserved. #include <cstdlib> #include <shellapi.h> #include "SystemWin.hpp" #include "EngineWin.hpp" #include "../../utils/Log.hpp" int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { try { int argc; std::unique_ptr...
Store Engine by value on Windows and keep argv in unique_ptr
Store Engine by value on Windows and keep argv in unique_ptr
C++
unlicense
elnormous/ouzel,elnormous/ouzel,elnormous/ouzel
c75e7e8fc2e2d2388df1183c76ce0c5f877718fa
examples/fft_simple_spectrum/fft_simple_spectrum.cpp
examples/fft_simple_spectrum/fft_simple_spectrum.cpp
#include "aquila/global.h" #include "aquila/source/generator/SineGenerator.h" #include "aquila/transform/FftFactory.h" #include "aquila/tools/TextPlot.h" int main() { // input signal parameters const std::size_t SIZE = 64; const Aquila::FrequencyType sampleFreq = 2000; const Aquila::FrequencyType f1 = ...
#include "aquila/global.h" #include "aquila/source/generator/SineGenerator.h" #include "aquila/transform/FftFactory.h" #include "aquila/tools/TextPlot.h" int main() { // input signal parameters const std::size_t SIZE = 64; const Aquila::FrequencyType sampleFreq = 2000, f1 = 125, f2 = 700; Aquila::Sine...
Put all frequencies in one definition.
Put all frequencies in one definition.
C++
apache-2.0
zsiciarz/aquila,tempbottle/aquila,sav6622/aquila,synkarae/Quasar,Aldor007/aquila,synkarae/aquila,synkarae/aquila,sav6622/aquila,zsiciarz/aquila,tempbottle/aquila,Aldor007/aquila,Aldor007/aquila,sav6622/aquila,zsiciarz/aquila,tempbottle/aquila,synkarae/aquila,synkarae/Quasar,synkarae/Quasar,zsiciarz/aquila
fced4f4b12a1d1de98222ee01fa55a222c684eb4
chromecast/media/cma/backend/media_pipeline_device.cc
chromecast/media/cma/backend/media_pipeline_device.cc
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromecast/media/cma/backend/media_pipeline_device.h" #include "chromecast/media/cma/backend/audio_pipeline_device_default.h" #include "chromec...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromecast/media/cma/backend/media_pipeline_device.h" #include "chromecast/media/cma/backend/audio_pipeline_device_default.h" #include "chromec...
Initialize MediaPipelineDevice elements in correct order
Initialize MediaPipelineDevice elements in correct order Using a delegated constructor had us depending on undefined behaviour - we require the clock to be created first, but the calls can be made in any order. BUG= Review URL: https://codereview.chromium.org/1203763002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d...
C++
bsd-3-clause
hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,chuan9/chromium-crosswalk,Chilledheart/chromium,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,chuan9/chromiu...
0974d9b2070ee34b4c08c0a8d689378607693405
source/microbit/main.cpp
source/microbit/main.cpp
#include "MicroBit.h" extern "C" { void mp_run(void); void microbit_display_event(void); } static void event_listener(MicroBitEvent evt) { if (evt.value == MICROBIT_DISPLAY_EVT_ANIMATION_COMPLETE) { microbit_display_event(); } } void app_main() { uBit.MessageBus.listen(MICROBIT_ID_DISPLA...
#include "MicroBit.h" extern "C" { void mp_run(void); void microbit_display_event(void); } static void event_listener(MicroBitEvent evt) { if (evt.value == MICROBIT_DISPLAY_EVT_ANIMATION_COMPLETE) { microbit_display_event(); } } void app_main() { /* // debugging: print memory layout ...
Add commented-out debugging printfs for examining memory layout.
Add commented-out debugging printfs for examining memory layout.
C++
mit
JoeGlancy/micropython,JoeGlancy/micropython,JoeGlancy/micropython
bd88d4feaa77f32c5e4e5daf4f22891f5d4b12e0
CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.cpp
CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.cpp
// Copyright 2010-2014 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "JavascriptPropertyWrapper.h" #include "JavascriptObjectWrapper.h" #include "CefAppWrapper.h" using name...
// Copyright 2010-2014 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "JavascriptPropertyWrapper.h" #include "JavascriptObjectWrapper.h" #include "CefAppWrapper.h" using name...
Fix variable naming - was method, should be property
Fix variable naming - was method, should be property
C++
bsd-3-clause
zhangjingpu/CefSharp,AJDev77/CefSharp,Haraguroicha/CefSharp,Octopus-ITSM/CefSharp,wangzheng888520/CefSharp,rover886/CefSharp,jamespearce2006/CefSharp,illfang/CefSharp,battewr/CefSharp,dga711/CefSharp,dga711/CefSharp,rlmcneary2/CefSharp,yoder/CefSharp,joshvera/CefSharp,zhangjingpu/CefSharp,gregmartinhtc/CefSharp,Octopus...
0b8a2201067e36875f60b62aa62820b4a3fd08ff
src/unit_VEHICLE/chrono_vehicle/ChVehicleModelData.cpp
src/unit_VEHICLE/chrono_vehicle/ChVehicleModelData.cpp
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Update the default location for the data folder for unit_VEHICLE
Update the default location for the data folder for unit_VEHICLE
C++
bsd-3-clause
Milad-Rakhsha/chrono,jcmadsen/chrono,rserban/chrono,dariomangoni/chrono,andrewseidl/chrono,rserban/chrono,armanpazouki/chrono,jcmadsen/chrono,rserban/chrono,Milad-Rakhsha/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono,jcmadsen/chrono,andrewseidl/chrono,tjolsen/chrono,Milad-Rakhsha/chrono,armanpazouki/chrono,armanpazou...
d20c575f1b01565f5b426872ed248298139ed618
protocols/groupwise/libgroupwise/tasks/requesttask.cpp
protocols/groupwise/libgroupwise/tasks/requesttask.cpp
// // C++ Implementation: requesttask // // Description: // // // Author: SUSE AG (C) 2004 // // Copyright: See COPYING file that comes with this distribution // // #include "gwfield.h" #include "request.h" #include "response.h" #include "requesttask.h" RequestTask::RequestTask( Task * parent ) : Task( parent ) { ...
// // C++ Implementation: requesttask // // Description: // // // Author: SUSE AG (C) 2004 // // Copyright: See COPYING file that comes with this distribution // // #include "gwfield.h" #include "request.h" #include "response.h" #include "requesttask.h" RequestTask::RequestTask( Task * parent ) : Task( parent ) { ...
Make checking for a good return code the default condition for success, for request tasks. May need to revert if the server doesn't always respond.
Make checking for a good return code the default condition for success, for request tasks. May need to revert if the server doesn't always respond. svn path=/branches/groupwise_in_anger/kdenetwork/kopete/; revision=339103
C++
lgpl-2.1
josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136
f84ff04454fec85f08c41682b0c9263d3cc2b10a
resources/imageresource.cpp
resources/imageresource.cpp
#include "SDL.h" #include "resources/imageresource.h" namespace Zabbr { /** * Constructor. * * @param name The name of the image. * @param surface The surface of the image. */ ImageResource::ImageResource(std::string name, SDL_Surface* surface) : SDLSurfaceResource(name, surface) { } /*...
#include "SDL.h" #include "SDL_image.h" #include "resources/imageresource.h" namespace Zabbr { /** * Constructor. * * @param name The name of the image. * @param surface The surface of the image. */ ImageResource::ImageResource(std::string name, SDL_Surface* surface) : SDLSurfaceResource(n...
Load images with SDL_image and make transparancy work
Load images with SDL_image and make transparancy work
C++
bsd-3-clause
nathansamson/zabbr
bae9940525fc230a475593b7dadec27886e62255
src/tests/strduptest.cpp
src/tests/strduptest.cpp
#include "../test.h" #include <cstdlib> class StrdupTest : public TestBase { public: StrdupTest() : TestBase("strdup") { } virtual void* Parse(const char* json) const { return strdup(json); } virtual char* Stringify(void* userdata) const { return strdup((char*)userdata); } virtual c...
#include "../test.h" #include <cstdlib> class StrdupTest : public TestBase { public: StrdupTest() : TestBase("strdup") { } virtual void* Parse(const char* json) const { return strdup(json); } virtual char* Stringify(void* userdata) const { return strdup((char*)userdata); } virtual c...
Implement strdup's statistics by strlen()
Implement strdup's statistics by strlen()
C++
mit
tesis100/nativejson-benchmark,DavadDi/nativejson-benchmark,wangfakang/nativejson-benchmark,wangfakang/nativejson-benchmark,DavadDi/nativejson-benchmark,tesis100/nativejson-benchmark,tesis100/nativejson-benchmark,miloyip/nativejson-benchmark,tesis100/nativejson-benchmark,miloyip/nativejson-benchmark,tesis100/nativejson-...
7a235f6958862974b18b371cecdbcd3961f964bf
test/unit/math/prim/arr/err/check_opencl_test.cpp
test/unit/math/prim/arr/err/check_opencl_test.cpp
#ifdef STAN_OPENCL #include <stan/math/prim/mat.hpp> #include <stan/math/prim/arr.hpp> #include <gtest/gtest.h> TEST(ErrorHandlingOpenCL, checkThrows) { const char* function = "test_func"; const char* msg = "test"; EXPECT_THROW(stan::math::throw_openCL(function, msg), std::domain_error); } #else #include <gtest/...
#ifdef STAN_OPENCL #include <stan/math/prim/mat.hpp> #include <stan/math/prim/arr.hpp> #include <gtest/gtest.h> TEST(ErrorHandlingOpenCL, checkThrows) { const char* function = "test_func"; cl::Error e(-5, "CL_OUT_OF_RESOURCES"); EXPECT_THROW(stan::math::check_ocl_error(function, e), std::system_error); } #else #...
Fix the broken opencl error test
Fix the broken opencl error test
C++
bsd-3-clause
stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math
01153d5a73f13a8ad358ae020f439332d6153485
test/std/input.output/iostreams.base/ios/iostate.flags/bool.pass.cpp
test/std/input.output/iostreams.base/ios/iostate.flags/bool.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 missing include in test.
Add missing include in test. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@290751 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
9af3d81cf4565a6ab4d50e7f4e32e32d4f361edd
test/var_len_pool_test.cpp
test/var_len_pool_test.cpp
/* * var_len_pool_test.cpp - Test suite for varrable lengthed allocation pool */ #include "test_suite.h" #include "../src/VarLenPool.h" /* * VarLenPoolBasicTest() - This function allocates a series of memory * using an increasing sequence and then check * for corr...
/* * var_len_pool_test.cpp - Test suite for varrable lengthed allocation pool */ #include "test_suite.h" #include "../src/VarLenPool.h" /* * VarLenPoolBasicTest() - This function allocates a series of memory * using an increasing sequence and then check * for corr...
Fix iter variable not used problem; Adding framweork for multiuthreaded test of VarLenPool
Fix iter variable not used problem; Adding framweork for multiuthreaded test of VarLenPool
C++
apache-2.0
wangziqi2013/EpochManager
f90bfefb3cf5c2ad270353b4c4daebb0988ae37b
thinglang/runtime/types/core/TimeType.cpp
thinglang/runtime/types/core/TimeType.cpp
/** TimeType.cpp Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ #include "../InternalTypes.h" #include "../../execution/Program.h" /** Methods of TimeType **/ void TimeType::__constructor__() { Program::push(Program::create<TimeInstance>()); } void TimeType::now() { ...
/** TimeType.cpp Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ #include "../InternalTypes.h" #include "../../execution/Program.h" /** Methods of TimeType **/ void TimeType::__constructor__() { Program::push(Program::create<TimeInstance>()); } void TimeType::now() { ...
Use standard time() call for Time.now()
Use standard time() call for Time.now()
C++
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
2c7a32ff0f44d689b5b1d1e21fd45b50374f32bf
test/language.support/support.start.term/quick_exit.pass.cpp
test/language.support/support.start.term/quick_exit.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. // //===----------------------------------------...
Remove xfail tag for darwin from quick_exit test
Remove xfail tag for darwin from quick_exit test git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@222406 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
be3961513012bbbe17bb434c7382ac2fdd1e358f
base/thread_local_posix.cc
base/thread_local_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 "base/thread_local.h" #include <pthread.h> #include "base/logging.h" namespace base { // static void ThreadLocalPlatform::AllocateSl...
// 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 "base/thread_local.h" #include <pthread.h> #include "base/logging.h" namespace base { // static void ThreadLocalPlatform::AllocateSl...
Fix a typo that broke the posix build.
Fix a typo that broke the posix build. git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@1681 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
gavinp/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,ropik/chromium,ropik/c...
5b8a3b63d97ee7b97bb71f68c766685b87f24e81
chrome/renderer/renderer_main_platform_delegate_linux.cc
chrome/renderer/renderer_main_platform_delegate_linux.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/renderer_main_platform_delegate.h" #include "base/debug_util.h" // This is a no op class because we do not have a sandbox ...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/renderer_main_platform_delegate.h" #include "base/debug_util.h" // This is a no op class because we do not have a sandbox ...
Convert sandbox NOTIMPLEMENTED()s into a bug.
Convert sandbox NOTIMPLEMENTED()s into a bug. Review URL: http://codereview.chromium.org/27179 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@10410 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
littlstar/chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,anirudhSK/chromium,robclark/chromium,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,dednal/chromium.src,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,rog...
1f357b36a4343b4764bd7b3c07851a3b3edf718d
SerialPortReceiverThread.cpp
SerialPortReceiverThread.cpp
#include <iostream> #include <time.h> #include <cassert> #include "SerialPortReceiverThread.h" SerialPortReceiverThread::SerialPortReceiverThread( SerialPort& serialPort, ON_BYTE_RECEIVED onByteReceived) : serialPort(serialPort), onByteReceived(onByteReceived) { } bool SerialPortReceiverThread::run() { uint8_t da...
#include <iostream> #include <time.h> #include <cassert> #include "SerialPortReceiverThread.h" SerialPortReceiverThread::SerialPortReceiverThread( SerialPort& serialPort, ON_BYTE_RECEIVED onByteReceived) : serialPort(serialPort), onByteReceived(onByteReceived) { } bool SerialPortReceiverThread::run() { uint8_t da...
Fix a bug receiving unknown character
Fix a bug receiving unknown character On timeout in receiving, treat a invalid character as valid.
C++
mit
takamin/WinSerialPort,takamin/WinSerialPort
9d17e6dc5340525f7a4fe545b18fa4b61be327ac
src/gui-qt/metatiles/mttileset/abstractcursorgraphicsitem.cpp
src/gui-qt/metatiles/mttileset/abstractcursorgraphicsitem.cpp
/* * This file is part of the UnTech Editor Suite. * Copyright (c) 2016 - 2018, Marcus Rowe <undisbeliever@gmail.com>. * Distributed under The MIT License: https://opensource.org/licenses/MIT */ #include "mtgraphicsscenes.h" #include "mttilesetrenderer.h" #include "mttilesetresourceitem.h" #include "stampgraphicsi...
/* * This file is part of the UnTech Editor Suite. * Copyright (c) 2016 - 2018, Marcus Rowe <undisbeliever@gmail.com>. * Distributed under The MIT License: https://opensource.org/licenses/MIT */ #include "mtgraphicsscenes.h" #include "mttilesetrenderer.h" #include "mttilesetresourceitem.h" #include "stampgraphicsi...
Fix click-drag placing tiles in MT editable scene
Fix click-drag placing tiles in MT editable scene
C++
mit
undisbeliever/untech-editor,undisbeliever/untech-editor
d2aceb9fa9f9c8e78c9ba4793d17ca59df746e1b
chrome/browser/ui/touch/frame/browser_non_client_frame_view_factory_touch.cc
chrome/browser/ui/touch/frame/browser_non_client_frame_view_factory_touch.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/ui/views/frame/browser_non_client_frame_view.h" #include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h" #include...
// 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/ui/views/frame/browser_non_client_frame_view.h" #include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h" #include...
Use the non-touch popup frame instead of NULL.
Use the non-touch popup frame instead of NULL. While this change isn't really all that usable in chrome itself, it fixes a number of the tests in browser_tests and ui_tests, and fixes a crash in some other tests to unmask other failures. BUG=none TEST=some failing tests (e.g. BrowserNavigatorTest.*) should pass on th...
C++
bsd-3-clause
gavinp/chromium,adobe/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chro...
1bc08316e08a04e54196b1c0b844e7936053bb1f
WangscapeTest/OptionsFilename.cpp
WangscapeTest/OptionsFilename.cpp
#include "OptionsFilename.h" #include <stdexcept> namespace { std::string filename; bool filenameSet = false; } const std::string& getOptionsFilename() { return filename; } void setOptionsFilename(const std::string & optionsFilename) { if (filenameSet) throw std::runtime_error("Options filename alrea...
#include "OptionsFilename.h" #include <stdexcept> namespace { std::string filename; bool filenameSet = false; } const std::string& getOptionsFilename() { return filename; } void setOptionsFilename(const std::string & optionsFilename) { if (filenameSet) { throw std::runtime_error("Options filename...
Use a full if/else block around an exception throw
Use a full if/else block around an exception throw
C++
mit
serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape
fb16511ae6dd945453f28f988225c102dc19fb7d
test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp
test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp
// Clang on MacOS can find libc++ living beside the installed compiler. // This test makes sure our libTooling-based tools emulate this properly with // fixed compilation database. // // RUN: rm -rf %t // RUN: mkdir %t // // Install the mock libc++ (simulates the libc++ directory structure). // RUN: cp -r %S/Inputs/moc...
// Clang on MacOS can find libc++ living beside the installed compiler. // This test makes sure our libTooling-based tools emulate this properly with // fixed compilation database. // // RUN: rm -rf %t // RUN: mkdir %t // // Install the mock libc++ (simulates the libc++ directory structure). // RUN: cp -r %S/Inputs/moc...
Revert r363298 "[lit] Disable test on darwin when building shared libs."
Revert r363298 "[lit] Disable test on darwin when building shared libs." It broke running check-lld on mac, see https://reviews.llvm.org/D61697 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@363379 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,apple/swift-clang,apple/swift-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,llvm-mirror/clang,llvm-mirror/cl...
6fa21ee7cc0176ce43a26d705c7182ea7bddf756
Examples/ClientExample.cpp
Examples/ClientExample.cpp
#include "Kontroller/Client.h" int main(int argc, char* argv[]) { Kontroller::Client client; client.setButtonCallback([](Kontroller::Button button, bool pressed) { printf("%s %s\n", Kontroller::getName(button), pressed ? "pressed" : "released"); }); client.setDialCallback([](Kontroller::Dial dia...
#include "Kontroller/Client.h" int main(int argc, char* argv[]) { const char* endpoint = argc > 1 ? argv[1] : "127.0.0.1"; Kontroller::Client client(endpoint); client.setButtonCallback([](Kontroller::Button button, bool pressed) { printf("%s %s\n", Kontroller::getName(button), pressed ? "pressed" : ...
Use command line args for client endpoint
Use command line args for client endpoint
C++
mit
aaronmjacobs/Kontroller
7ce985f7505dc4fd3dba327a826933be66e3654d
examples/lazysusan/main.cpp
examples/lazysusan/main.cpp
#include <iostream> #include <wcl/tracking/LazySusan.h> using namespace std; using namespace wcl; int main(int argc, char* argv[]) { if (argc != 2) { cout << "Usage: lazy_susan [device]" << endl; return 1; } cout << "Connecting to Lazy Susan... "; LazySusan* ls = new LazySusan(argv[1]); TrackedObjec...
#include <iostream> #include <wcl/tracking/LazySusan.h> using namespace std; using namespace wcl; int main(int argc, char* argv[]) { if (argc != 2) { cout << "Usage: lazy_susan [device]" << endl; return 1; } cout << "Connecting to Lazy Susan... "; LazySusan* ls = new LazySusan(argv[1]); TrackedObjec...
Fix warning in lazy susan example
examples: Fix warning in lazy susan example
C++
bsd-2-clause
WearableComputerLab/LibWCL,WearableComputerLab/LibWCL,WearableComputerLab/LibWCL,WearableComputerLab/LibWCL
021c09318028bc10c74bc77cb0daafc64e8bc1b1
himan-lib/source/logger.cpp
himan-lib/source/logger.cpp
/* * logger.cpp * */ #include "logger.h" namespace himan { HPDebugState logger::MainDebugState = himan::kInfoMsg; logger::logger() : itsDebugState(kInfoMsg), itsUserName("HimanDefaultLogger") { } logger::logger(const std::string& theUserName) : itsDebugState(MainDebugState), itsUserName(theUserName) { } logger::l...
/* * logger.cpp * */ #include "logger.h" namespace himan { HPDebugState logger::MainDebugState = himan::kDebugMsg; logger::logger() : itsDebugState(kInfoMsg), itsUserName("HimanDefaultLogger") { } logger::logger(const std::string& theUserName) : itsDebugState(MainDebugState), itsUserName(theUserName) { } logger::...
Change default logging level to debug (was previously set in himan.cpp)
Change default logging level to debug (was previously set in himan.cpp)
C++
mit
fmidev/himan,fmidev/himan,fmidev/himan