This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Producer.swift | |
// RxSwift | |
// | |
// Created by Krunoslav Zaher on 2/20/15. | |
// Copyright © 2015 Krunoslav Zaher. All rights reserved. | |
// | |
class Producer<Element> : Observable<Element> { | |
override init() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inner Reference Type | |
final internal class CoWInnerClass { | |
var identifier: Int | |
init(_ id: Int) { | |
identifier = id | |
} | |
} | |
// The struct with inner reference type. | |
struct CoWValueWithRef: CustomStringConvertible { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*- | |
* This code is derived from | |
* http://llvm.org/svn/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp | |
* with the following license: | |
* | |
* University of Illinois/NCSA | |
* Open Source License | |
* | |
* Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. | |
* All rights reserved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "oclint/CompilerInstance.h" | |
#include <clang/Basic/TargetInfo.h> | |
#include <clang/Frontend/FrontendActions.h> | |
#include <clang/StaticAnalyzer/Frontend/FrontendActions.h> | |
#include "oclint/Options.h" | |
using namespace oclint; |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace clang { | |
namespace detail { | |
template <typename T, typename U> | |
struct has_same_member_pointer_type : std::false_type {}; | |
template <typename T, typename U, typename R, typename... P> | |
struct has_same_member_pointer_type<R (T::*)(P...), R (U::*)(P...)> | |
: std::true_type {}; | |
template <bool has_same_type> struct is_same_method_impl { | |
template <typename FirstMethodPtrTy, typename SecondMethodPtrTy> | |
static bool isSameMethod(FirstMethodPtrTy FirstMethodPtr, |
OlderNewer