Skip to content

Instantly share code, notes, and snippets.

View christianparpart's full-sized avatar
🎃
Loading

Christian Parpart christianparpart

🎃
Loading
View GitHub Profile
release:
version: 0.2.3
platforms:
"Windows":
sha: ABCDEF...
"Ubuntu 18.04":
sha: ...
"Ubuntu 20.04":
sha: ...
@christianparpart
christianparpart / solc-lsp-tcp-listener.patch
Created November 29, 2021 11:48
Patch for reviving LSP TCP listener.
commit 6cccca59014f49c52faaf19f8f2e9f102f519884
Author: Christian Parpart <christian@parpart.family>
Date: Mon Nov 29 12:46:52 2021 +0100
Revert "Drop LSP TCP listener."
This reverts commit 5b61209d11fe046dfc57e4c74762c3da9dfc0e3d.
diff --git a/solc/CMakeLists.txt b/solc/CMakeLists.txt
index 3e3594766..51b77d29b 100644
#include <array>
#include <cassert>
#include <iomanip>
#include <iostream>
#include <limits>
#include <string_view>
#include <tuple>
#include <utility>
#include <immintrin.h>
---
Checks: '-*,clang-diagnostic-*,clang-analyzer-*,bugprone-*,performance-*,readability-non-const-parameter,readability-redundant-*,cppcoreguidelines-slicing'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
CheckOptions:
- key: cert-dcl16-c.NewSuffixes
value: 'L;LL;LU;LLU'
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;
abstract contract A {
modifier m() virtual;
function f() A.m public {}
}
contract B is A {
modifier m() virtual override { _; }
}
@christianparpart
christianparpart / nth.h
Last active December 2, 2020 22:24
C++ helper to extract nth element from a range in a loop.
#pragma once
#include <utility>
#include <iterator>
template <int N, typename Range>
class nth_range {
public:
using RangeIterator = decltype(std::begin(std::declval<Range>()));
constexpr explicit nth_range(Range& _range) noexcept : begin_{std::begin(_range)}, end_{std::end(_range)} {}
#include <type_traits>
#include <typeinfo>
#include <cstdio>
template <
template <class> class T,
class A,
class B
>
bool f(T<A>&& a, T<B>&& b)
@christianparpart
christianparpart / recovered.diff
Created July 21, 2020 14:39
Please apply that to a newly created branch created out of `master` branch.
commit 9ea1b7bbf591ce605d1171b808aa3f68aabe4b40
Author: Rachid <memcpy@local.host>
Date: Tue Jul 21 15:05:12 2020 +0200
[libterminal, terminalview] replace std::bind with lambda
- add cmake package dependency for ubuntu
diff --git a/README.md b/README.md
index 09d703a..4fbdc0d 100644
git checkout master
git pull
git checkout -b my-NEW-branch
git cherry-pick f9b98e1bc186c59b7f23526b8568bc733cebe47a
git push -u origin my-NEW-branch
# make sure you are in YOUR branch
git checkout replace-binds
# retrieve the commit SHA of your commit
SHA=$(git log --oneline HEAD~.. | awk '{print $1}')
git fetch
git reset --hard origin/wip
# XXX are you still in replace-binds branch?