Skip to content

Instantly share code, notes, and snippets.

From 4528dd8a4f8c93472c10dd27a875bd1d21ae0ec0 Mon Sep 17 00:00:00 2001
From: Matej Knopp <matej.knopp@gmail.com>
Date: Tue, 22 Dec 2015 22:09:00 +0100
Subject: [PATCH] initialize text renderer in background thread
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
---
AsyncDisplayKit/ASTextNode.mm | 78 +++++++++++++++++++++++++++++--------------
1 file changed, 53 insertions(+), 25 deletions(-)
import("//build/config/bundle.gni")
config("libuv_config") {
defines = ["USING_UV_SHARED"]
include_dirs = ["include"]
}
source_set("libuv_sources")
{
if (is_win) {
(function () {
let prev = require.getConfig().onError;
// Weird errors in console - at first attempt require is not able to find the
// packages
require.getConfig().onError = function (e) {
if (e.neededBy != "ourModule") {
prev(e);
}
I[20:06:11.785] Updating file c:\mp-dep\x64-debug\include\gstreamer-1.0\gst\gstallocator.h with command
[c:\mp-dep\x64-debug\include]
C:\Program Files\LLVM\bin\clang-tool -IC:/mp-dep/x64-debug/include -IC:/mp-dep/x64-debug/include/glib-2.0 -IC:/mp-dep/x64-debug/lib/glib-2.0/include -IC:/mp-dep/x64-debug/include/gstreamer-1.0 -IC:/mp-dep/x64-debug/lib/gstreamer-1.0/include -IC:/mp-dep/x64-debug/include/libxml2 -IC:/mp-dep/x64-debug/include/QtCore -IC:/mp-dep/x64-debug/include/QtGui -IC:/mp-dep/x64-debug/include/QtWidgets c:\mp-dep\x64-debug\include\gstreamer-1.0\gst\gstallocator.h -fsyntax-only -resource-dir=C:\Program Files\LLVM\lib\clang\10.0.0
V[20:06:11.846] Driver produced command: cc1 -cc1 -triple x86_64-pc-windows-msvc19.15.26730 -fsyntax-only -disable-free -disable-llvm-verifier -discard-value-names -main-file-name gstallocator.h -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=none -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -tar
I[20:11:33.571] clangd version 10.0.0
I[20:11:33.571] Working directory: c:\Users\Matej\Projects\airflow
I[20:11:33.571] argv[0]: clangd
I[20:11:33.571] argv[1]: --log=verbose
I[20:11:33.571] Starting LSP over stdin/stdout
V[20:11:33.574] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":true,"isPreferredSupport":true},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"preselectSupport":true,"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"contextSupport":true,"dynamicRegistration":true,
V[20:14:11.558] <<< {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"cpp","text":"//\r\n// Language.cpp\r\n// CoreMediaCenter\r\n//\r\n// Created by Matej Knopp on 1/27/12.\r\n// Copyright (c) 2012 InMethod s.r.o. All rights reserved.\r\n//\r\n\r\n#include \"language.h\"\r\n#include <mutex>\r\n\r\nnamespace subtitles {\r\n\r\n using namespace fn;\r\n\r\n FN_DISABLE_EXIT_TIME_DESTRUCTORS_WARNING_BEGIN\r\n\r\n List<Language> Language::_languages;\r\n Language Language::_unknown(\"Unknown\", \"UND\");\r\n std::once_flag Language::_flag;\r\n\r\n FN_DISABLE_EXIT_TIME_DESTRUCTORS_WARNING_END\r\n\r\n bool Language::matches(const String & code) const\r\n {\r\n for (const auto & i : _codes)\r\n {\r\n if (i.toLowerCaseASCII() == code.toLowerCaseASCII())\r\n {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n const Language & Language::forCode(const String & cod
---
Checks: 'clang-diagnostic-*,clang-analyzer-*'
WarningsAsErrors: '0'
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
User: Matej
CheckOptions:
- key: bugprone-sizeof-expression.WarnOnSizeOfConstant
value: '0'
I[14:00:09.857] clangd version 11.0.0 (https://github.com/llvm/llvm-project.git a62533c29f842ba39c6e47a09b59bb0ae2dcc31b)
I[14:00:09.858] PID: 76216
I[14:00:09.858] Working directory: /Users/Matej/Projects/Airflow
I[14:00:09.858] argv[0]: /opt/clang/bin/clangd
I[14:00:09.858] argv[1]: -j=8
I[14:00:09.858] argv[2]: --log=verbose
I[14:00:09.858] Starting LSP over stdin/stdout
V[14:00:09.858] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":true,"isPreferredSupport":true},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"preselectSupport":true,"snippetSupport":true,"tagSupport":{"valueSet":[1]}
I[14:01:25.482] clangd version 11.0.0 (https://github.com/llvm/llvm-project.git a62533c29f842ba39c6e47a09b59bb0ae2dcc31b)
I[14:01:25.483] PID: 76377
I[14:01:25.483] Working directory: /Users/Matej/Projects/Airflow
I[14:01:25.483] argv[0]: /opt/clang/bin/clangd
I[14:01:25.483] argv[1]: -j=8
I[14:01:25.483] argv[2]: --log=verbose
I[14:01:25.483] Starting LSP over stdin/stdout
V[14:01:25.485] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":true,"isPreferredSupport":true},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"preselectSupport":true,"snippetSupport":true,"tagSupport":{"valueSet":[1]}
I[14:10:11.985] clangd version 11.0.0 (https://github.com/llvm/llvm-project.git a62533c29f842ba39c6e47a09b59bb0ae2dcc31b)
I[14:10:11.986] PID: 76801
I[14:10:11.986] Working directory: /Users/Matej/Projects/Airflow
I[14:10:11.986] argv[0]: /opt/clang/bin/clangd
I[14:10:11.986] argv[1]: -j=8
I[14:10:11.986] argv[2]: --log=verbose
I[14:10:11.986] Starting LSP over stdin/stdout
V[14:10:11.987] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":true,"isPreferredSupport":true},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"preselectSupport":true,"snippetSupport":true,"tagSupport":{"valueSet":[1]}