conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix for broken sample on the linux machines.\n" }, { "from": "human", "value": "#import <Foundation/Foundation.h>\n#include <iostream>\n\nint main (int argc, const char * argv[])\n{\n NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];\n\n NSFileHandle...
objective-c++
chosen
[ { "from": "system", "value": "Declare +new instead of -new in test.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@172126 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -emit-llvm -fcxx-except...
objective-c++
chosen
[ { "from": "system", "value": "iOS: Fix improved BWE field trial.\n\nBUG=webrtc:6664\nNOTRY=True\n\nReview-Url: https://codereview.webrtc.org/2488863002\nCr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#14990}\n" }, { "from": "human", "value": "/*\n * Copyright 2016 The WebRTC Proj...
objective-c++
chosen
[ { "from": "system", "value": "[TSan][libdispatch] Change test to have two simultaneous timers\n\nChange test semantics by waiting for both timer callbacks at the end\ninstead of serializing operations: start/wait timer 1 then 2.\n\nReviewed By: kubamracek\n\nDifferential Revision: https://reviews.llvm.org/D...
objective-c++
chosen
[ { "from": "system", "value": "Make this test pass on Release builds.\n\nOn Assert builds the \"call\" was matching the variable name in\n%call = call ...\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@197167 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// Test...
objective-c++
chosen
[ { "from": "system", "value": "Update header ref to new location.\n\nReview URL: http://codereview.chromium.org/27063\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@10215 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n" }, { "from": "human", "value": "// Copyright (c) 2009 The Chromium Authors. A...
objective-c++
chosen
[ { "from": "human", "value": "CodeGenObjCXX: Add a test for r214699\n\nI forgot to add this with the changes for r214699.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@214829 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 -emit-llvm -fblocks -o ...
objective-c++
chosen
[ { "from": "system", "value": "Fix Nan / Inf serialization issue\n\nSummary:\nSonar was trying to convert folly dynamics containing NaN and Inf to json.\nFolly doesn't allow this so we have to get rid of them before converting.\n\nSee https://fb.facebook.com/groups/230455004101832/permalink/483173632163300/ ...
objective-c++
chosen
[ { "from": "system", "value": "Improve iOS region string (thanks @maaniv!)\n" }, { "from": "human", "value": "#ifdef HX_MACOS\n#import <Cocoa/Cocoa.h>\n#else\n#import <UIKit/UIKit.h>\n#endif\n\n#include <system/Locale.h>\n\n\nnamespace lime {\n\t\n\t\n\tstd::string* Locale::GetSystemLocale () {\n...
objective-c++
chosen
[ { "from": "system", "value": "gm: Include system_preferences.h in mac file.\n\nThis fixes the FIXME in there.\n\nR=epoger@google.com\n\nReview URL: https://codereview.appspot.com/6576049\n\ngit-svn-id: e8541e15acce502a64c929015570ad1648e548cd@5692 2bbb7eff-a529-9590-31e7-b0007b416f81\n" }, { "from":...
objective-c++
chosen
[ { "from": "system", "value": "[Mac] Update to newest Chromium upstream.\n" }, { "from": "human", "value": "// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#include \"cont...
objective-c++
chosen
[ { "from": "system", "value": "Update header ref to new location.\n\nReview URL: http://codereview.chromium.org/27063\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@10215 0039d316-1c4b-4281-b951-d872f2087c98\n" }, { "from": "human", "value": "// Copyright (c) 2009 The Chromium Authors. A...
objective-c++
chosen
[ { "from": "system", "value": "Expand @property(class) declaration to support older versions of Xcode.\n\n@property(class) was added in Xcode 8; by explicitly declaring the\nsetAllowsAutomaticWindowTabbing accessor, we can continue building\nwith Xcode 6.2.\n" }, { "from": "human", "value": "// D...
objective-c++
chosen
[ { "from": "system", "value": "Remove unused include directives from example\n" }, { "from": "human", "value": "#import \"GameViewController.h\"\n#import <Metal/Metal.h>\n#import <simd/simd.h>\n#import <MetalKit/MetalKit.h>\n#import \"SharedStructures.h\"\n#include <Pomdog/Math/Vector3.hpp>\n#inc...
objective-c++
chosen
[ { "from": "human", "value": "[tsan] Test that false races from ObjC's dealloc, .cxx_destruct, and initialize are ignored\n\nDifferential Revision: https://reviews.llvm.org/D26228\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@286693 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt"...
objective-c++
chosen
[ { "from": "human", "value": "Test case for r117075. Radar 6635085.\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@117079 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %llvmgcc -fno-exceptions %s -S -emit-llvm -o - | FileCheck %s\nstruct Foo\n{\n int x;\...
objective-c++
chosen
[ { "from": "system", "value": "Add mention of iOS7-support-drop TODO list.\n\nBUG=502968\n\nReview URL: https://codereview.chromium.org/1198633003\n\nCr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#335481}\n" }, { "from": "human", "value": "// Copyright 2012 The Chromium Authors. A...
objective-c++
chosen
[ { "from": "system", "value": "Return early when render widget host view is null\n" }, { "from": "human", "value": "// Copyright (c) 2016 GitHub, Inc.\n// Use of this source code is governed by the MIT license that can be\n// found in the LICENSE file.\n\n#include \"atom/browser/api/atom_api_web_...
objective-c++
chosen
[ { "from": "human", "value": "Add a test case, to make sure there is no crash on IRGen when using PCH\n\nRelated to rdar://13114142\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@176227 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 %s -emit-pch ...
objective-c++
chosen
[ { "from": "system", "value": "Add triple in the hope of unbreaking the bubuildbot\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@130280 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fsyntax-only -fobjc-gc -fobjc-nonfragile-abi -verify %s\n\n...
objective-c++
chosen
[ { "from": "system", "value": "Move handler to a variable\n" }, { "from": "human", "value": "#include <Foundation/Foundation.h>\n#include <string>\n\nbool UrlDownload(const std::string& url, double timeout, std::string& errorMessage) {\n NSURL *nsurl = [NSURL URLWithString:[NSString stringWith...
objective-c++
chosen
[ { "from": "system", "value": "Make our toolbar tell accessibility it is a toolbar.\n\nBUG=none\nTEST=none\n\nReview URL: http://codereview.chromium.org/501176\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@35165 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n" }, { "from": "human", "value": " /...
objective-c++
chosen
[ { "from": "system", "value": "Initialize the window_ ivar in PlatformView to gfx::kNullAcceleratedWidget\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LIC...
objective-c++
chosen
[ { "from": "system", "value": "Make init more objective-c like" }, { "from": "human", "value": "#include \"MX3Snapshot.h\"\n\n#include <mx3/mx3.hpp>\n#include \"objc_adapter.h\"\nusing mx3::ObjcAdapter;\n\n@implementation MX3Snapshot {\n std::unique_ptr<mx3::SqlSnapshot> __snapshot;\n}\n\n- (ins...
objective-c++
chosen
[ { "from": "system", "value": "mac: Update signature of ShowOneClickSigninDialog() to match declaration.\n\nThe declaration was changed in http://codereview.chromium.org/9592015,\nbut the mac implementation wasn't updated.\n\nBUG=117015,90078\nTEST=Add -all_load to the linker flags.\n__Z24ShowOneClickSigninD...
objective-c++
chosen
[ { "from": "system", "value": "Support iPad for iOS8 +\n" }, { "from": "human", "value": "#import \"FrispSocial.h\"\n\n@implementation FrispSocial\n\n static FrispSocial * _instance = [[FrispSocial alloc] init];\n\n+ (id) instance {\n return _instance;\n}\n\n- (void) share:(NSString *)text me...
objective-c++
chosen
[ { "from": "system", "value": "Fix cmdline argument passing in SampleApp/Mac.\n\nWhen SampleApp was ported to Cocoa, it lost the ability to pass a test\nname on the command line. Fix it.\n\nReview URL: http://codereview.appspot.com/5328042/\n\n\n" }, { "from": "human", "value": "\n/*\n * Copyri...
objective-c++
chosen
[ { "from": "human", "value": "Test to compile the rewritten file for my last patch.\n(radar 7649577 related).\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@96274 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-ext...
objective-c++
chosen
[ { "from": "human", "value": "Add test case for <rdar://problem/8288645>. While this is fixed in trunk, we previously were getting the following assertion failure not too long ago:\n\nAssertion failed: (getContainingDC(DC) == CurContext && \"The next DeclContext should be lexically contained in the current ...
objective-c++
chosen
[ { "from": "system", "value": "Fix compiling error of dummy.\n" }, { "from": "human", "value": "//\n// ViewController.m\n// cbase\n//\n// Created by Quanlong He on 9/2/13.\n// Copyright (c) 2013 Quanlong He. All rights reserved.\n//\n\n#import \"ViewController.h\"\n\n#include \"chromium/base/...
objective-c++
chosen
[ { "from": "system", "value": "Disable strict command line parsing on Mac\n" }, { "from": "human", "value": "#import \"sys/rand.hpp\"\n#import \"sys/path_posix.hpp\"\n#import \"sys/clock.hpp\"\n#import <getopt.h>\n\nbool gEditor;\n\nstatic void init(int argc, char *argv[])\n{\n int opt;\n c...
objective-c++
chosen
[ { "from": "system", "value": "Fix for MPLY-6742. Search spinner shouldn't increment speed when performing multiple searches. Buddy: Judith\n" }, { "from": "human", "value": "// Copyright eeGeo Ltd (2012-2015), All Rights Reserved\n\n#include \"SearchMenuResultsSpinner.h\"\n\nconst float SpinnerP...
objective-c++
chosen
[ { "from": "system", "value": "Adjust capture preset for more accuracy\n" }, { "from": "human", "value": "//\n// AWCameraCtrl.m\n// SmartOrganizer\n//\n// Created by iwat on 11/10/15.\n// Copyright © 2015 AuthorWise. All rights reserved.\n//\n\n#import <opencv2/highgui/ios.h>\n\n#import \"CVW...
objective-c++
chosen
[ { "from": "system", "value": "Remove referece type onproperty of abstract\nclass type. // rdar://14261999\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@185734 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-ro...
objective-c++
chosen
[ { "from": "system", "value": "Fix yet one more test\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@150129 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s\n\nclass C {\n\n void f() {\n int foo, bar;\n\n ...
objective-c++
chosen
[ { "from": "system", "value": "gm: Include system_preferences.h in mac file.\n\nThis fixes the FIXME in there.\n\nR=epoger@google.com\n\nReview URL: https://codereview.appspot.com/6576049\n" }, { "from": "human", "value": "/*\n * Copyright 2012 Google Inc.\n *\n * Use of this source code is gover...
objective-c++
chosen
[ { "from": "system", "value": "Drop the SBSettings button delay time to 0.25 seconds.\n\n\n\n" }, { "from": "human", "value": "#import <Foundation/Foundation.h>\n\n#define PREFERENCES_FILE @\"/var/mobile/Library/Preferences/net.howett.safaridownloader.plist\"\n\nextern \"C\" BOOL isCapable() {\n ...
objective-c++
chosen
[ { "from": "system", "value": "Mac: Add AssertIOAllowed() call to CopyFile()\n\nBUG=60211\nTEST=trybots\n\nReview URL: http://codereview.chromium.org/4133005\n\ngit-svn-id: http://src.chromium.org/svn/trunk/src@64309 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n\nFormer-commit-id: 8dddceb72a9eae0256f666a405b6dcba3e...
objective-c++
chosen
[ { "from": "system", "value": "Mac: Add AssertIOAllowed() call to CopyFile()\n\nBUG=60211\nTEST=trybots\n\nReview URL: http://codereview.chromium.org/4133005\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@64309 0039d316-1c4b-4281-b951-d872f2087c98\n" }, { "from": "human", "value": "// Co...
objective-c++
chosen
[ { "from": "human", "value": "Add current locale for OSX platform\n" }, { "from": "gpt", "value": "#include \"pixelboost/util/localisation/localisation.h\"\n\nstd::string pb::GetCurrentLocale()\n{\n return [[[NSLocale preferredLanguages] objectAtIndex:0] UTF8String];\n}\n" } ]
objective-c++
chosen
[ { "from": "system", "value": "Set focus to PIN entry box in pref-pane\n\nAlso set Apply button as default (triggered by Enter key)\n\n\nBUG=129214\nTEST=manual\n\n\nReview URL: https://chromiumcodereview.appspot.com/10456048\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@139915 0039d316-1c4b-4281-b...
objective-c++
chosen
[ { "from": "system", "value": "Edit ios plugin notification permitted func\n" }, { "from": "human", "value": "extern \"C\"{\n void CleanIconBadge_();\n void OpenAppSetting_();\n bool IsNotificationPermitted_();\n}\n\n// Clean app icon badge\nvoid CleanIconBadge_(){\n [UIApplication sh...
objective-c++
chosen
[ { "from": "human", "value": "Add an ivar test for modern objc abi translator.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@151316 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 -E %s -o %t.mm\n// RUN: %clang_cc1 -x objective-c++ -fblocks -...
objective-c++
chosen
[ { "from": "human", "value": "Test case for r110459. Radar 8264751. Test case by Fariborz Jahanian!\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@110467 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %llvmgcc %s -S -emit-llvm\nstruct TFENode {\n TFENode...
objective-c++
chosen
[ { "from": "system", "value": "[analyzer] Add a test for copy-constructor inlining.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@161274 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -analyze -analyzer-checker=core -fobjc-arc -cfg-add-implici...
objective-c++
chosen
[ { "from": "system", "value": "Fix for [MPLY-9790]; iOS 60FPS Whitelist is now a 30FPS Blacklist. New devices will no longer need to be added to the list to get the benefit of 60FPS.\nBuddy: Jonty\n" }, { "from": "human", "value": "// Copyright eeGeo Ltd (2012-2015), All Rights Reserved\n\n#inclu...
objective-c++
chosen
[ { "from": "system", "value": "Exit application on main thread\n" }, { "from": "human", "value": "// Copyright (C) 2016 Elviss Strazdins\n// This file is part of the Ouzel engine.\n\n#import <Cocoa/Cocoa.h>\n#include \"ApplicationMacOS.h\"\n#import \"AppDelegate.h\"\n\nnamespace ouzel\n{\n App...
objective-c++
chosen
[ { "from": "system", "value": "Fix test to not depend on objc.h header.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@110729 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -Wstrict-selector-match -fsyntax-only -verify %s\n\n#include <objc/o...
objective-c++
chosen
[ { "from": "human", "value": "Add another test case for r101029, which verifies that we now\ncorrectly diagnose instantiation of a function parameter with Objective-C\nclass type (since Objective-C classes can't be passed by value).\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@101031 91177308-0d...
objective-c++
chosen
[ { "from": "system", "value": "Add iOS attributed text implementation\n" }, { "from": "human", "value": "//\n// Created by Dawid Drozd aka Gelldur on 6/15/16.\n//\n\n#include <component/view/Text.h>\n\n#include <platform/Context.h>\n#include <log.h>\n#include <ColorUtils.h>\n\n#import <UIKit/UIKi...
objective-c++
chosen
[ { "from": "system", "value": "Move TaskManagerMacUnitTest over to Cocoatest.\n\nBUG=none\nTEST=none\n\nReview URL: http://codereview.chromium.org/404010\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@32246 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n" }, { "from": "human", "value": "// Copyri...
objective-c++
chosen
[ { "from": "system", "value": "Check that window is an EventDispatchingWindow\n" }, { "from": "human", "value": "// Copyright (c) 2016 GitHub, Inc.\n// Use of this source code is governed by the MIT license that can be\n// found in the LICENSE file.\n\n#include \"atom/browser/common_web_contents_...
objective-c++
chosen
[ { "from": "system", "value": "Enhance test to check on expected rewritten output.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@94368 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -...
objective-c++
chosen
[ { "from": "system", "value": "Fix compilation in XCode 4.6\n" }, { "from": "human", "value": "#ifdef PIXELBOOST_PLATFORM_OSX\n\n#include <Foundation/Foundation.h>\n\n#include \"pixelboost/file/fileHelpers.h\"\n\nnamespace pb\n{\n \nnamespace FileHelpers\n{\n \nstd::string GetRootPath()...
objective-c++
chosen
[ { "from": "system", "value": "Move TaskManagerMacUnitTest over to Cocoatest.\n\nBUG=none\nTEST=none\n\nReview URL: http://codereview.chromium.org/404010\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@32246 0039d316-1c4b-4281-b951-d872f2087c98\n" }, { "from": "human", "value": "// Copyri...
objective-c++
chosen
[ { "from": "system", "value": "Add first test case for put/get data\n" }, { "from": "human", "value": "//\n// BCRocksTests.m\n// BCRocks\n//\n// Created by Iska on 15/11/14.\n// Copyright (c) 2014 BrainCookie. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <XCTest/XCTest.h>\n#im...
objective-c++
chosen
[ { "from": "system", "value": "Fix to add [FIRApp configure].\n" }, { "from": "human", "value": "//\n// FirebaseApp.m\n// ee_x\n//\n// Created by Zinge on 5/10/17.\n//\n//\n\n#include \"ee/firebase/core/FirebaseApp.hpp\"\n\n#if defined(EE_X_IOS)\n#import <UIKit/UIViewController.h>\n\n#include ...
objective-c++
chosen
[ { "from": "human", "value": "Test case for r110250. Radar 8264670. Test case by Fariborz Jahanian!\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@110254 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %llvmgcc %s -S -emit-llvm\nstruct TRunSoon {\n templa...
objective-c++
chosen
[ { "from": "system", "value": "Fix cmdline argument passing in SampleApp/Mac.\n\nWhen SampleApp was ported to Cocoa, it lost the ability to pass a test\nname on the command line. Fix it.\n\nReview URL: http://codereview.appspot.com/5328042/\n\n\n\ngit-svn-id: e8541e15acce502a64c929015570ad1648e548cd@2538 2...
objective-c++
chosen
[ { "from": "system", "value": "Make our toolbar tell accessibility it is a toolbar.\n\nBUG=none\nTEST=none\n\nReview URL: http://codereview.chromium.org/501176\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@35165 0039d316-1c4b-4281-b951-d872f2087c98\n" }, { "from": "human", "value": " /...
objective-c++
chosen
[ { "from": "human", "value": "Add a testcase that exercises DIBuilder's handling of cyclic debug info nodes.\n\nrdar://problem/19839612\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@229522 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 -triple x...
objective-c++
chosen
[ { "from": "system", "value": "Add a test case to check a member's default constructor is also run.\n\nThis is a follow-up to r266645.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@266706 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -tripl...
objective-c++
chosen
[ { "from": "system", "value": "Improve test case from prior commit ever so slightly\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@129866 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fsyntax-only -verify %s\n// rdar: // 8379892\n\nstruct X {...
objective-c++
chosen
[ { "from": "human", "value": "Test for previously checked in patch.\n// rdar://11374235\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@156552 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 -E %s -o %t.mm\n// RUN: %clang_cc1 -x objective-c++ -fm...
objective-c++
chosen
[ { "from": "system", "value": "[attributes] Add more tests for os_returns_retained\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@348443 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fsyntax-only -verify %s\n\n// expected-no-diagnostics\n\nst...
objective-c++
chosen
[ { "from": "system", "value": "Add windows implementation of GetResourcePath\n" }, { "from": "human", "value": "//\n// CSystemUtilities.mm\n// SwingGame\n//\n// Created by Tim Brier on 26/09/2014.\n// Copyright (c) 2014 tbrier. All rights reserved.\n//\n\n// ==================================...
objective-c++
chosen
[ { "from": "system", "value": "Revert \"fix window cycling between plots and main window via shortcut key\"\n\nThis reverts commit a7b564b094bdfa0f09bce3061d2dee6aaa892b3e.\n\nThis change broke some keyboard shortcuts (e.g. Undo)\n" }, { "from": "human", "value": "/*\n * WebViewWithKeyEquiv.mm\n ...
objective-c++
chosen
[ { "from": "system", "value": "Build fix for OS X.\n" }, { "from": "human", "value": "/**\n * Appcelerator Titanium - licensed under the Apache Public License 2\n * see LICENSE in the root folder for details on the license.\n * Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.\n */\n\n#i...
objective-c++
chosen
[ { "from": "system", "value": "Make rewritten source compiled with clang++.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@97762 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t...
objective-c++
chosen
[ { "from": "system", "value": "Increase font-size for block quotes.\n" }, { "from": "human", "value": "//\n// CDAMarkdownViewController.m\n// ContentfulSDK\n//\n// Created by Boris Bügling on 17/03/14.\n//\n//\n\n#import <Bypass/Bypass.h>\n\n#import \"CDAMarkdownViewController.h\"\n\n@interfac...
objective-c++
chosen
[ { "from": "system", "value": "Use class extension to avoid type conversion\n" }, { "from": "human", "value": "// Copyright (c) 2016 GitHub, Inc.\n// Use of this source code is governed by the MIT license that can be\n// found in the LICENSE file.\n\n#include \"atom/browser/common_web_contents_de...
objective-c++
chosen
[ { "from": "system", "value": "Remove trailing whitespace to make test compatible with typeless pointer migration\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@229273 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fobjc-arc -fobjc-runtime-has...
objective-c++
chosen
[ { "from": "system", "value": "Fix OSX retina display support.\n\nChange-Id: I712b089c36e9c696c44a8d99a3d21819798a6142\nReviewed-on: https://swiftshader-review.googlesource.com/4430\nReviewed-by: Nicolas Capens <0612353e1fcebbfd4b302d9337447ca0cdfa9122@google.com>\nTested-by: Nicolas Capens <0612353e1fcebbfd...
objective-c++
chosen
[ { "from": "system", "value": "Move TaskManagerMacUnitTest over to Cocoatest.\n\nBUG=none\nTEST=none\n\nReview URL: http://codereview.chromium.org/404010\n\ngit-svn-id: http://src.chromium.org/svn/trunk/src@32246 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n\nFormer-commit-id: 5f56c3cd3c4799ec8b49ffe0c80794927c8d73...
objective-c++
chosen
[ { "from": "system", "value": "[graphite] Fix creation of command buffer for different SDK/OS versions\n\nBug: skia:12466\nChange-Id: I9828c59f0406e457e723f78940b1f42ff343fa2e\nReviewed-on: https://skia-review.googlesource.com/c/skia/+/455500\nAuto-Submit: Jim Van Verth <509afb0bfbb23ecaaf1fb3323209f531b45e7...
objective-c++
chosen
[ { "from": "human", "value": "Add a test case for r150976.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@151027 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -g -emit-obj %s\n\n// This test passes if clang does...
objective-c++
chosen
[ { "from": "system", "value": "Implement OS X expanded show\n" }, { "from": "human", "value": "#include <boxer/boxer.h>\n#import <Cocoa/Cocoa.h>\n\nnamespace boxer {\n\nvoid show(const char *message, const char *title) {\n NSAlert *alert = [[NSAlert alloc] init];\n [alert addButtonWithTitle:@...
objective-c++
chosen
[ { "from": "system", "value": "Update device motion less often.\n" }, { "from": "human", "value": "//\n// IOSInputModule.mm\n// GameEngine\n//\n// Created by Jon Sharkey on 2013-11-13.\n// Copyright 2013 Sharkable. All rights reserved.\n//\n\n#include \"gameengine/apple/modules/ios/IOSInputMo...
objective-c++
chosen
[ { "from": "system", "value": "Check if not assigning to self\n" }, { "from": "human", "value": "// Copyright 2015-2020 Elviss Strazdins. All rights reserved.\n\n#include \"AutoreleasePool.hpp\"\n\nnamespace ouzel::core::cocoa\n{\n AutoreleasePool::AutoreleasePool() noexcept:\n pool([[N...
objective-c++
chosen
[ { "from": "system", "value": "Determine the Helper name from the App name\n" }, { "from": "human", "value": "// Copyright (c) 2013 GitHub, Inc.\n// Use of this source code is governed by the MIT license that can be\n// found in the LICENSE file.\n\n#include \"atom/app/atom_main_delegate.h\"\n\n#...
objective-c++
chosen
[ { "from": "system", "value": "Add mac implementation of file helper functions\n" }, { "from": "human", "value": "#ifdef PIXELBOOST_PLATFORM_OSX\n\n#include \"pixelboost/file/fileHelpers.h\"\n\nnamespace pb\n{\n \nnamespace FileHelpers\n{\n \nstd::string GetRootPath()\n{\n NSAutorele...
objective-c++
chosen
[ { "from": "system", "value": "Fix copying of array contents\n" }, { "from": "human", "value": "//\n// NSArray+MCO.cpp\n// mailcore2\n//\n// Created by DINH Viêt Hoà on 1/29/13.\n// Copyright (c) 2013 MailCore. All rights reserved.\n//\n\n#import \"NSArray+MCO.h\"\n\n#include \"MCBaseTypes.h\...
objective-c++
chosen
[ { "from": "system", "value": "[tsan] Change nullptr to NULL in one Darwin test.\n\nDepending on the version of libcxx, nullptr might not be available. Let's use NULL instead.\n\n\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@264058 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "huma...
objective-c++
chosen
[ { "from": "system", "value": ":apple: Fix converting from windows virtual keycode back to mac keycode\n" }, { "from": "human", "value": "// Copyright (c) 2013 GitHub, Inc.\n// Use of this source code is governed by the MIT license that can be\n// found in the LICENSE file.\n\n#include \"atom/bro...
objective-c++
chosen