repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
sarang2dan/git-coan2 | src/idempotence.cpp | <gh_stars>1-10
/***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contributed origi... |
sarang2dan/git-coan2 | src/parsed_line.cpp | /***************************************************************************
* Copyright (C) 2013 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contributed originally by <NAME>... |
sarang2dan/git-coan2 | test_coan/wordsize.cpp | #include <stdio.h>
int main(void)
{
printf("%lu\n",(unsigned long)sizeof(void *));
return 0;
}
|
sarang2dan/git-coan2 | src/unexplained_expansion.cpp | <gh_stars>1-10
/***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contributed origi... |
sarang2dan/git-coan2 | src/hash_include.cpp | <filename>src/hash_include.cpp<gh_stars>1-10
/***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* ... |
sarang2dan/git-coan2 | src/filesys.cpp | /***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Redistribution and use in source... |
sarang2dan/git-coan2 | src/explained_expansion.cpp | <reponame>sarang2dan/git-coan2
/***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* C... |
sarang2dan/git-coan2 | src/symbol.cpp | <filename>src/symbol.cpp
/***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contrib... |
sarang2dan/git-coan2 | src/citable.cpp | /***************************************************************************
* Copyright (C) 2013 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contributed originally by <NAME>... |
sarang2dan/git-coan2 | src/contradiction.cpp | /***************************************************************************
* Copyright (C) 2004, 2006 Symbian Software Ltd. *
* All rights reserved. *
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. ... |
canfoundation/history-tools | src/pg_plugin.hpp | <reponame>canfoundation/history-tools
// copyright defined in LICENSE.txt
#pragma once
#include <appbase/application.hpp>
class pg_plugin : public appbase::plugin<pg_plugin> {
public:
APPBASE_PLUGIN_REQUIRES()
pg_plugin();
virtual ~pg_plugin();
virtual void set_program_options(appbase::options_des... |
canfoundation/history-tools | wasms/chain/chain-server.cpp | <filename>wasms/chain/chain-server.cpp
// copyright defined in LICENSE.txt
#include "chain.hpp"
#include <eosio/database.hpp>
#include <eosio/input_output.hpp>
void process(block_info_request& req, const eosio::database_status& status) {
auto s = query_database(eosio::query_block_info_range_index{
.first ... |
canfoundation/history-tools | src/pg_plugin.cpp | <filename>src/pg_plugin.cpp
// copyright defined in LICENSE.txt
#include "pg_plugin.hpp"
#include "util.hpp"
#include <fc/exception/exception.hpp>
using namespace appbase;
using namespace std::literals;
static abstract_plugin& _pg_plugin = app().register_plugin<pg_plugin>();
pg_plugin::pg_plugin() {}
pg_plugin::~p... |
canfoundation/history-tools | src/wasm_ql.hpp | // copyright defined in LICENSE.txt
#pragma once
#include "wasm_ql_plugin.hpp"
#include <eosio/vm/backend.hpp>
namespace wasm_ql {
struct shared_state {
bool console = {};
std::string allow_origin = {};
std::string wasm_... |
canfoundation/history-tools | src/fill_plugin.cpp | <gh_stars>0
// copyright defined in LICENSE.txt
#include "fill_plugin.hpp"
#include "util.hpp"
#include <boost/algorithm/string.hpp>
#include <fc/exception/exception.hpp>
using namespace appbase;
using namespace std::literals;
static abstract_plugin& _fill_plugin = app().register_plugin<fill_plugin>();
fill_plugin... |
canfoundation/history-tools | src/wasm_ql.cpp | <reponame>canfoundation/history-tools
// copyright defined in LICENSE.txt
#include "wasm_ql.hpp"
#include <fc/log/logger.hpp>
#include <fc/scoped_exit.hpp>
using namespace abieos::literals;
namespace wasm_ql {
struct callbacks;
using backend_t = eosio::vm::backend<callbacks>;
using rhf_t = eosio::vm::registere... |
canfoundation/history-tools | src/state_history_pg.hpp | <filename>src/state_history_pg.hpp<gh_stars>0
// copyright defined in LICENSE.txt
#pragma once
#include "query_config.hpp"
#include "state_history.hpp"
#include <pqxx/pqxx>
namespace state_history {
namespace pg {
inline std::string null_value(bool bulk) {
if (bulk)
return "\\N";
else
return... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/temp_placeholders.hpp | <reponame>canfoundation/history-tools
// copyright defined in LICENSE.txt
// todo: remove or replace everything in this file
#pragma once
extern "C" void print_range(const char* begin, const char* end);
|
canfoundation/history-tools | src/query_config_plugin.hpp | <reponame>canfoundation/history-tools<gh_stars>10-100
// copyright defined in LICENSE.txt
#pragma once
#include <appbase/application.hpp>
class query_config_plugin : public appbase::plugin<query_config_plugin> {
public:
APPBASE_PLUGIN_REQUIRES()
query_config_plugin();
virtual ~query_config_plugin();
... |
canfoundation/history-tools | demo-talk/src/talk-client.cpp | <reponame>canfoundation/history-tools<filename>demo-talk/src/talk-client.cpp
#include "talk.hpp"
#include <eosio/input_output.hpp>
#include <eosio/parse_json.hpp>
#include <eosio/schema.hpp>
// initialize this WASM
extern "C" __attribute__((eosio_wasm_entry)) void initialize() {}
// produce JSON schema for request
e... |
canfoundation/history-tools | src/query_config_plugin.cpp | // copyright defined in LICENSE.txt
#include "query_config_plugin.hpp"
#include "util.hpp"
#include <fc/exception/exception.hpp>
using namespace appbase;
using namespace std::literals;
static abstract_plugin& _query_config_plugin = app().register_plugin<query_config_plugin>();
query_config_plugin::query_config_plu... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/tagged_variant.hpp | // copyright defined in LICENSE.txt
#pragma once
#include <eosio/name.hpp>
#include <eosio/varint.hpp>
#include <variant>
/// \file
/// A `tagged_variant` is a type-safe union; it may contain one value from a set of types. Each type
/// is tagged with a name; this name appears in the JSON representation and optionall... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/input_output.hpp | <filename>libraries/eosiolib/wasmql/eosio/input_output.hpp
// copyright defined in LICENSE.txt
#pragma once
#include <eosio/print.hpp>
#include <eosio/rope.hpp>
#include <string_view>
#include <vector>
namespace eosio {
/// \exclude
typedef void* cb_alloc_fn(void* cb_alloc_data, size_t size);
/// \exclude
extern "... |
canfoundation/history-tools | src/wasm_ql_http.cpp | <gh_stars>0
// copyright defined in LICENSE.txt
// Adapted from Boost Beast Advanced Server example
//
// Copyright (c) 2016-2019 <NAME> (<EMAIL>)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "wasm_... |
canfoundation/history-tools | wasms/chain/chain-client.cpp | // copyright defined in LICENSE.txt
#include "chain.hpp"
#include <eosio/input_output.hpp>
#include <eosio/parse_json.hpp>
#include <eosio/schema.hpp>
extern "C" __attribute__((eosio_wasm_entry)) void initialize() {}
extern "C" void describe_query_request() { eosio::set_output_data(eosio::make_json_schema<chain_quer... |
canfoundation/history-tools | src/rocksdb_plugin.hpp | // copyright defined in LICENSE.txt
#pragma once
#include <appbase/application.hpp>
#include "query_config_plugin.hpp"
#include "state_history_rocksdb.hpp"
struct rocksdb_inst {
state_history::rdb::database database;
std::unique_ptr<const state_history::kv::config> query_config{};
ro... |
canfoundation/history-tools | wasms/token/token-client.cpp | // copyright defined in LICENSE.txt
#include "token.hpp"
#include <eosio/input_output.hpp>
#include <eosio/parse_json.hpp>
#include <eosio/schema.hpp>
#include <eosio/to_json.hpp>
extern "C" __attribute__((eosio_wasm_entry)) void initialize() {}
extern "C" void describe_query_request() { eosio::set_output_data(eosio... |
canfoundation/history-tools | src/fill_rocksdb_plugin.hpp | // copyright defined in LICENSE.txt
#pragma once
#include "fill_plugin.hpp"
#include "rocksdb_plugin.hpp"
class fill_rocksdb_plugin : public appbase::plugin<fill_rocksdb_plugin> {
public:
APPBASE_PLUGIN_REQUIRES((fill_plugin)(rocksdb_plugin))
fill_rocksdb_plugin();
virtual ~fill_rocksdb_plugin();
... |
canfoundation/history-tools | wasms/chain/chain.hpp | <gh_stars>10-100
// copyright defined in LICENSE.txt
// todo: remaining tables
// todo: read-only non-contract capabilities in /v1/chain
#pragma once
#include <eosio/block_select.hpp>
struct block_info_request {
eosio::block_select first = {};
eosio::block_select last = {};
uint32_t ... |
canfoundation/history-tools | src/fill_rocksdb_plugin.cpp | <gh_stars>10-100
// copyright defined in LICENSE.txt
#include "fill_rocksdb_plugin.hpp"
#include "state_history_connection.hpp"
#include "state_history_rocksdb.hpp"
#include "util.hpp"
#include <boost/asio/connect.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hp... |
canfoundation/history-tools | src/state_history_kv.hpp | // copyright defined in LICENSE.txt
#pragma once
#include "query_config.hpp"
#include "state_history.hpp"
namespace state_history {
namespace kv {
using namespace abieos::literals;
inline void inc_key(std::vector<char>& key) {
for (auto it = key.rbegin(); it != key.rend(); ++it)
if (++*it)
r... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/block_select.hpp | <gh_stars>10-100
// copyright defined in LICENSE.txt
#pragma once
#include <eosio/database.hpp>
#include <eosio/tagged_variant.hpp>
/// \file
/// ```c++
/// using absolute_block = tagged_type<"absolute"_n, int32_t>;
/// using head_block = tagged_type<"head"_n, int32_t>;
/// using irreversible_block = tagg... |
canfoundation/history-tools | wasms/legacy/legacy-server.cpp | // copyright defined in LICENSE.txt
#include <cwchar>
namespace std {
size_t wcslen(const wchar_t* str) { return ::wcslen(str); }
} // namespace std
#include <abieos.hpp>
#include <eosio/database.hpp>
#include <eosio/input_output.hpp>
#include <eosio/parse_json.hpp>
namespace eosio {
eosio::rope to_json(const eosi... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/temp_placeholders.cpp | // copyright defined in LICENSE.txt
// todo: remove or replace everything in this file
#include <eosio/name.hpp>
#include <eosio/temp_placeholders.hpp>
#include <memory>
extern "C" void prints(const char* cstr) { print_range(cstr, cstr + strlen(cstr)); }
extern "C" void prints_l(const char* cstr, uint32_t len) { pri... |
canfoundation/history-tools | src/wasm_ql_plugin.cpp | // copyright defined in LICENSE.txt
// todo: timeout wasm
// todo: timeout sql
// todo: what should memory size limit be?
// todo: check callbacks for recursion to limit stack size
// todo: reformulate get_input_data and set_output_data for reentrancy
// todo: wasms get whether a query is present
// todo: indexes on a... |
canfoundation/history-tools | src/wasm_ql_http.hpp | <filename>src/wasm_ql_http.hpp
// copyright defined in LICENSE.txt
#pragma once
#include "wasm_ql.hpp"
namespace wasm_ql {
struct http_server {
virtual ~http_server() {}
static std::shared_ptr<http_server> create( //
int num_threads, const std::shared_ptr<const shared_state>& state, const std::strin... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/struct_reflection.hpp | <reponame>canfoundation/history-tools
// copyright defined in LICENSE.txt
#pragma once
#include <string_view>
#include <type_traits>
/// \file
/// \unique_name reflection
/// These macros describe a struct to the JSON conversion and JSON schema functions.
/// Members mentioned by `STRUCT_MEMBER` are converted. Membe... |
canfoundation/history-tools | src/wasm_ql_rocksdb_plugin.cpp | // copyright defined in LICENSE.txt
#include "wasm_ql_rocksdb_plugin.hpp"
#include "util.hpp"
#include <fc/exception/exception.hpp>
using namespace appbase;
namespace kv = state_history::kv;
namespace rdb = state_history::rdb;
static abstract_plugin& _wasm_ql_rocksdb_plugin = app().register_plugin<wasm_ql_rocksdb_... |
canfoundation/history-tools | src/wasm_ql_rocksdb_plugin.hpp | <gh_stars>10-100
// copyright defined in LICENSE.txt
#pragma once
#include "rocksdb_plugin.hpp"
#include "wasm_ql_plugin.hpp"
class wasm_ql_rocksdb_plugin : public appbase::plugin<wasm_ql_rocksdb_plugin> {
public:
APPBASE_PLUGIN_REQUIRES((rocksdb_plugin)(wasm_ql_plugin))
wasm_ql_rocksdb_plugin();
virt... |
canfoundation/history-tools | src/fill_plugin.hpp | // copyright defined in LICENSE.txt
#pragma once
#include "state_history.hpp"
#include <appbase/application.hpp>
class fill_plugin : public appbase::plugin<fill_plugin> {
public:
APPBASE_PLUGIN_REQUIRES()
fill_plugin();
virtual ~fill_plugin();
virtual void set_program_options(appbase::options_desc... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/to_json.hpp | <reponame>canfoundation/history-tools<filename>libraries/eosiolib/wasmql/eosio/to_json.hpp
// copyright defined in LICENSE.txt
#pragma once
#include "fpconv.c"
#include <date/date.h>
#include <eosio/asset.hpp>
#include <eosio/fixed_bytes.hpp>
#include <eosio/rope.hpp>
#include <eosio/shared_memory.hpp>
#include <eos... |
canfoundation/history-tools | src/rocksdb_plugin.cpp | <reponame>canfoundation/history-tools<gh_stars>10-100
// copyright defined in LICENSE.txt
#include "rocksdb_plugin.hpp"
#include "util.hpp"
#include <fc/exception/exception.hpp>
using namespace appbase;
using namespace std::literals;
struct rocksdb_plugin_impl {
boost::filesystem::path config_path = ... |
canfoundation/history-tools | src/wasm_ql_plugin.hpp | // copyright defined in LICENSE.txt
#pragma once
#include <appbase/application.hpp>
#include "query_config.hpp"
#include "state_history.hpp"
struct query_session {
virtual ~query_session() {}
virtual state_history::fill_status get_fill_status() = 0;
virtua... |
canfoundation/history-tools | src/state_history_rocksdb.hpp | <reponame>canfoundation/history-tools<filename>src/state_history_rocksdb.hpp<gh_stars>10-100
// copyright defined in LICENSE.txt
#pragma once
#include "state_history_kv.hpp"
#include <boost/filesystem.hpp>
#include <fc/exception/exception.hpp>
#include <rocksdb/db.h>
namespace state_history {
namespace rdb {
templa... |
canfoundation/history-tools | demo-talk/src/talk.hpp | <gh_stars>10-100
#pragma once
#include <eosio/shared_memory.hpp>
#include <eosio/struct_reflection.hpp>
#include <eosio/tagged_variant.hpp>
#include <optional>
#include <vector>
#ifdef WASM_QL
using talk_string = eosio::shared_memory<std::string_view>; // wasm-ql: this type is more efficient
#else
using talk_string =... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/shared_memory.hpp | <filename>libraries/eosiolib/wasmql/eosio/shared_memory.hpp
// copyright defined in LICENSE.txt
#pragma once
#include <eosio/datastream.hpp>
#include <string_view>
namespace eosio {
/// Tag objects which share memory with streams or with other things. These reduce
/// deserialization overhead, but require the source... |
canfoundation/history-tools | wasms/legacy/legacy-server.hpp | <filename>wasms/legacy/legacy-server.hpp
#pragma once
#include <eosio/database.hpp>
struct get_code_result {
get_code_result(eosio::account a)
: account_name(a.name)
// , code_hash(a.code_version) TODO
// , wasm(a.code)
, abi(a.abi) {}
eosio::name ... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/schema.hpp | <filename>libraries/eosiolib/wasmql/eosio/schema.hpp
// copyright defined in LICENSE.txt
#pragma once
#include <eosio/struct_reflection.hpp>
#include <eosio/to_json.hpp>
#include <type_traits>
namespace eosio {
/// \output_section Get JSON Schema type name (Default)
/// Get JSON Schema type name. The argument is ig... |
canfoundation/history-tools | demo-talk/src/talk-server.cpp | <gh_stars>10-100
#include "talk.hpp"
#include <eosio/database.hpp>
#include <eosio/input_output.hpp>
// Get first child with id >= min_id
std::optional<message> get_message(uint64_t parent, uint64_t min_id, const eosio::database_status& status) {
auto s = query_database(eosio::query_contract_index64_range_code_ta... |
canfoundation/history-tools | src/fill_pg_plugin.hpp | // copyright defined in LICENSE.txt
#pragma once
#include "fill_plugin.hpp"
#include "pg_plugin.hpp"
#include <appbase/application.hpp>
class fill_pg_plugin : public appbase::plugin<fill_pg_plugin> {
public:
APPBASE_PLUGIN_REQUIRES((pg_plugin)(fill_plugin))
fill_pg_plugin();
virtual ~fill_pg_plugin();
... |
canfoundation/history-tools | src/state_history.hpp | // copyright defined in LICENSE.txt
#pragma once
#include "abieos_exception.hpp"
namespace state_history {
struct extension {
uint16_t type = {};
abieos::input_buffer data = {};
};
ABIEOS_REFLECT(extension) {
ABIEOS_MEMBER(extension, type)
ABIEOS_MEMBER(extension, data)
}
struct fill_st... |
canfoundation/history-tools | libraries/eosiolib/wasmql/eosio/parse_json.hpp | <gh_stars>10-100
// copyright defined in LICENSE.txt
#pragma once
#include <eosio/asset.hpp>
#include <eosio/fixed_bytes.hpp>
#include <eosio/shared_memory.hpp>
#include <eosio/tagged_variant.hpp>
#include <eosio/temp_placeholders.hpp>
namespace eosio {
/// \exclude
void parse_json_skip_space(const char*& pos, const... |
SergeyKrivohatskiy/chat-with-asio | src/main.cpp | #include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <queue>
#include <boost/thread/executors/basic_thread_pool.hpp>
#include <boost/asio.hpp>
#include <boost/thread.hpp>
#include <google/protobuf/io/coded_stream.h>
#include "message.pb.h"
/*************************************... |
rdeioris/ExternalWindowActor | ExternalWindowActor.cpp | <filename>ExternalWindowActor.cpp
// Copyright <NAME>
#include "ExternalWindowActor.h"
// Sets default values
AExternalWindowActor::AExternalWindowActor()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
Exte... |
wanghuan578/chrome-gn | src/base/sha1.cc | <reponame>wanghuan578/chrome-gn
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/sha1.h"
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "base/sys_byteorder.h"
... |
wanghuan578/chrome-gn | src/gn/file_writer.cc | <reponame>wanghuan578/chrome-gn<gh_stars>10-100
// Copyright 2020 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 "gn/file_writer.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "gn/file... |
wanghuan578/chrome-gn | src/gn/function_get_label_info.cc | <reponame>wanghuan578/chrome-gn
// 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 "gn/err.h"
#include "gn/filesystem_utils.h"
#include "gn/functions.h"
#include "gn/label.h"
#include "gn/parse_tr... |
wanghuan578/chrome-gn | examples/ios/host/main.cc | <gh_stars>10-100
// Copyright 2019 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 <stdlib.h>
#include <iostream>
#include <string>
namespace {
// Returns the current user username.
std::string Username() {
... |
wanghuan578/chrome-gn | src/base/json/json_value_converter.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 "base/json/json_value_converter.h"
namespace base {
namespace internal {
bool BasicValueConverter<int>::Convert(const base::Value& value,
... |
wanghuan578/chrome-gn | examples/simple_build/hello.cc | <reponame>wanghuan578/chrome-gn<gh_stars>1000+
// 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 <stdio.h>
#include "hello_shared.h"
#include "hello_static.h"
int main(int argc, char* argv[]) {... |
wanghuan578/chrome-gn | src/gn/target_unittest.cc | <reponame>wanghuan578/chrome-gn
// Copyright (c) 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 "gn/target.h"
#include <memory>
#include <utility>
#include "gn/build_settings.h"
#include "gn/config.h"
#i... |
wanghuan578/chrome-gn | src/util/ticks.cc | <gh_stars>10-100
// Copyright 2018 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 "ticks.h"
#include "base/logging.h"
#include "build_config.h"
#if defined(OS_WIN)
#include <windows.h>
#elif defined(OS_MACOSX... |
wanghuan578/chrome-gn | src/gn/vector_utils_unittest.cc | <filename>src/gn/vector_utils_unittest.cc
// Copyright 2020 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 "gn/vector_utils.h"
#include "util/test/test.h"
#include <string>
TEST(VectorSetSorter, AsVectorWith... |
wanghuan578/chrome-gn | examples/simple_build/tutorial/tutorial.cc | // Copyright 2020 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 <stdio.h>
int main(int argc, char* argv[]) {
printf("Hello from the tutorial.\n");
return 0;
}
|
wanghuan578/chrome-gn | src/gn/string_atom_unittest.cc | // Copyright (c) 2020 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 "gn/string_atom.h"
#include "util/test/test.h"
#include <algorithm>
#include <array>
#include <set>
#include <string>
#include <vector>
TE... |
wanghuan578/chrome-gn | src/gn/swift_values_generator.cc | // Copyright 2020 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 "gn/swift_values_generator.h"
#include "gn/label.h"
#include "gn/scope.h"
#include "gn/settings.h"
#include "gn/swift_values.h"
#include "gn/swi... |
wanghuan578/chrome-gn | src/gn/functions_target_rust_unittest.cc | <gh_stars>10-100
// Copyright 2019 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 "gn/config.h"
#include "gn/scheduler.h"
#include "gn/scope.h"
#include "gn/test_with_scheduler.h"
#include "gn/test_with_scope.h... |
wanghuan578/chrome-gn | src/gn/string_output_buffer_unittest.cc | // Copyright 2020 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 "gn/string_output_buffer.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include... |
wanghuan578/chrome-gn | src/gn/xml_element_writer_unittest.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 "gn/xml_element_writer.h"
#include <sstream>
#include "util/test/test.h"
namespace {
class MockValueWriter {
public:
explicit MockValueWri... |
wanghuan578/chrome-gn | src/base/win/scoped_handle.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 "base/win/scoped_handle.h"
#include <windows.h>
namespace base {
namespace win {
// Static.
bool HandleTraits::CloseHandle(HANDLE handle) {... |
wanghuan578/chrome-gn | src/base/json/json_writer.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 "base/json/json_writer.h"
#include <stdint.h>
#include <cmath>
#include <limits>
#include "base/json/string_escape.h"
#include "base/loggi... |
wanghuan578/chrome-gn | src/gn/config_values_extractors.cc | // Copyright (c) 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 "gn/config_values_extractors.h"
#include "gn/escape.h"
namespace {
class EscapedStringWriter {
public:
explicit EscapedStringWriter(con... |
wanghuan578/chrome-gn | src/util/msg_loop.cc | <reponame>wanghuan578/chrome-gn
// Copyright 2018 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 "util/msg_loop.h"
#include "base/logging.h"
namespace {
#if !defined(OS_ZOS)
thread_local MsgLoop* g_current;
... |
wanghuan578/chrome-gn | src/gn/function_set_default_toolchain.cc | // Copyright (c) 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 "gn/build_settings.h"
#include "gn/functions.h"
#include "gn/loader.h"
#include "gn/parse_tree.h"
#include "gn/scope.h"
#include "gn/settings... |
wanghuan578/chrome-gn | src/gn/swift_values.cc | <reponame>wanghuan578/chrome-gn
// Copyright 2020 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 "gn/swift_values.h"
#include "gn/deps_iterator.h"
#include "gn/err.h"
#include "gn/settings.h"
#include "gn/subs... |
wanghuan578/chrome-gn | src/gn/file_writer_unittest.cc | // Copyright 2020 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 "gn/file_writer.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "gn/filesystem_utils.h"
#include "util/te... |
wanghuan578/chrome-gn | src/gn/frameworks_utils_unittest.cc | // Copyright 2020 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 "gn/frameworks_utils.h"
#include "util/test/test.h"
TEST(FrameworksUtils, GetFrameworkName) {
const std::string kFramework = "Foundation.fram... |
wanghuan578/chrome-gn | src/gn/builder_record_map_unittest.cc | <reponame>wanghuan578/chrome-gn
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
#include "gn/builder_record_map.h"
#include "gn/builder_record.h"
#include "gn/label.h"
#include "gn/source_dir.h"
#include "util/test/test.h"
TEST(Bui... |
wanghuan578/chrome-gn | src/util/sys_info.cc | <gh_stars>1-10
// Copyright 2018 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 "util/sys_info.h"
#include "base/logging.h"
#include "util/build_config.h"
#if defined(OS_POSIX)
#include <sys/utsname.h>
#inclu... |
wanghuan578/chrome-gn | src/gn/function_process_file_template_unittest.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 "gn/functions.h"
#include "gn/test_with_scope.h"
#include "util/test/test.h"
TEST(FunctionProcessFileTemplates, SingleString) {
TestWithScope ... |
wanghuan578/chrome-gn | src/gn/string_output_buffer.cc | // Copyright 2020 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 "gn/string_output_buffer.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "gn/err.h"
#include "gn/file_writer.h"
... |
wanghuan578/chrome-gn | src/gn/source_file.cc | // Copyright (c) 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 <string.h>
#include "gn/source_file.h"
#include "base/logging.h"
#include "gn/filesystem_utils.h"
#include "gn/source_dir.h"
#include "util... |
wanghuan578/chrome-gn | src/gn/pointer_set_unittest.cc | <reponame>wanghuan578/chrome-gn
// Copyright 2021 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 "gn/pointer_set.h"
#include "util/test/test.h"
struct Foo {
int x;
};
static const Foo kFoo1[1] = {{1}};
stat... |
wanghuan578/chrome-gn | src/gn/ninja_bundle_data_target_writer.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 "gn/ninja_bundle_data_target_writer.h"
#include "gn/output_file.h"
#include "gn/settings.h"
#include "gn/target.h"
NinjaBundleDataTargetWriter:... |
wanghuan578/chrome-gn | src/gn/inherited_libraries.cc | <reponame>wanghuan578/chrome-gn
// 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 "gn/inherited_libraries.h"
#include "gn/target.h"
InheritedLibraries::InheritedLibraries() = default;
Inherite... |
wanghuan578/chrome-gn | src/base/strings/string_split.cc | <gh_stars>10-100
// 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 "base/strings/string_split.h"
#include <stddef.h>
#include "base/logging.h"
#include "base/strings/string_util.h"
#include... |
wanghuan578/chrome-gn | src/base/logging.cc | <gh_stars>1-10
// 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 "base/logging.h"
#include <limits.h>
#include <stdint.h>
#include <iterator>
#include <thread>
#include "util/build_config.... |
wanghuan578/chrome-gn | src/gn/builtin_tool.cc | <reponame>wanghuan578/chrome-gn
// Copyright 2020 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 "gn/builtin_tool.h"
#include "base/logging.h"
#include "gn/target.h"
// static
const char BuiltinTool::kBuiltinT... |
wanghuan578/chrome-gn | src/gn/unique_vector_unittest.cc | // Copyright (c) 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 "gn/unique_vector.h"
#include <stddef.h>
#include <algorithm>
#include "util/test/test.h"
TEST(UniqueVector, PushBack) {
UniqueVector<i... |
wanghuan578/chrome-gn | src/gn/builder_record.cc | <reponame>wanghuan578/chrome-gn<filename>src/gn/builder_record.cc
// Copyright (c) 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 "gn/builder_record.h"
#include "gn/item.h"
BuilderRecord::BuilderRecord(I... |
wanghuan578/chrome-gn | src/base/strings/utf_string_conversions.cc | // Copyright (c) 2018 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/strings/utf_string_conversions.h"
#include <stdint.h>
#include <string_view>
#include "base/strings/string_util.h"
#include "base/st... |
wanghuan578/chrome-gn | src/gn/swift_variables.cc | // Copyright 2020 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 "gn/swift_variables.h"
namespace variables {
// Swift target vars -----------------------------------------------------
const char kSwiftBridg... |
wanghuan578/chrome-gn | src/gn/ninja_rust_binary_target_writer_unittest.cc | // Copyright 2019 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 "gn/ninja_rust_binary_target_writer.h"
#include "gn/config.h"
#include "gn/rust_values.h"
#include "gn/scheduler.h"
#include "gn/target.h"
#incl... |
wanghuan578/chrome-gn | src/gn/label_unittest.cc | // Copyright (c) 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 <stddef.h>
#include <iterator>
#include "gn/err.h"
#include "gn/label.h"
#include "gn/value.h"
#include "util/build_config.h"
#include "uti... |
wanghuan578/chrome-gn | src/gn/substitution_pattern_unittest.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 "gn/substitution_pattern.h"
#include "gn/err.h"
#include "gn/rust_substitution_type.h"
#include "util/test/test.h"
TEST(SubstitutionPattern, Pa... |
wanghuan578/chrome-gn | src/gn/pool.cc | <filename>src/gn/pool.cc<gh_stars>10-100
// 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 "gn/pool.h"
#include <sstream>
#include "base/logging.h"
Pool::~Pool() = default;
Pool* Pool::AsPool... |
wanghuan578/chrome-gn | src/gn/runtime_deps_unittest.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 <stddef.h>
#include "base/stl_util.h"
#include "gn/runtime_deps.h"
#include "gn/scheduler.h"
#include "gn/target.h"
#include "gn/test_with_sched... |
wanghuan578/chrome-gn | src/gn/ninja_tools.cc | // Copyright 2020 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 "gn/ninja_tools.h"
#include <vector>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/strings/string_number_conv... |
wanghuan578/chrome-gn | src/gn/commands_unittest.cc | <gh_stars>10-100
// 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 <stddef.h>
#include "gn/commands.h"
#include "gn/label_pattern.h"
#include "gn/target.h"
#include "gn/test_with_scope.h"
#inclu... |
wanghuan578/chrome-gn | src/gn/output_conversion_unittest.cc | <reponame>wanghuan578/chrome-gn
// Copyright 2018 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 "gn/output_conversion.h"
#include <sstream>
#include "gn/err.h"
#include "gn/input_conversion.h"
#include "gn/s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.