Skip to content

Instantly share code, notes, and snippets.

# Clang-Tidy Configuration
---
Checks: "-*,\
clang-analyzer-*,\
-clang-analyzer-deadcode.DeadStores,\
clang-diagnostic-*,\
bugprone-*,\
-bugprone-dynamic-static-initializers,\
-bugprone-forward-declaration-namespace,\
-bugprone-macro-parentheses,\
# Clang-Format Configuration
---
BasedOnStyle: LLVM
# Indent
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
IndentPPDirectives: AfterHash
IndentWrappedFunctionNames: false
root = true
[*]
charset = utf-8
end_of_line = lf
max_line_length = 120
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
* text=lf
*.cmd text eol=crlf
*.rc text eol=crlf
The Iliad (Homer)
The Odyssey (Homer)
The Republic (Plato)
Metamorphoses (Ovid)
Apocolocyntosis (Seneca)
Dubliners (James Joyce)
Exiles (James Joyce)
Ulysses (James Joyce)
Leviathan (Thomas Hobbes)
Meditations (Marcus Aurelius)
// https://aka.ms/terminal
{
// https://aka.ms/terminal-global-settings
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"copyOnSelect": true,
"copyFormatting": true,
"showTabsInTitlebar": false,
"showTerminalTitleInTitlebar": true,
#include <windows.h>
#include <filesystem>
#include <iostream>
#include <sstream>
#include <string>
int main(int argc, char* argv[]) {
// Report command and parameter lengths.
if (argc > 1) {
std::cout
cmake_minimum_required(VERSION 3.19 FATAL_ERROR)
project(icu VERSION 68.1 LANGUAGES C CXX)
#set(ICU_VER "${PROJECT_VERSION_MAJOR}-${PROJECT_VERSION_MINOR}")
#set(ICU_URL "https://github.com/unicode-org/icu/archive/release-${ICU_VER}.tar.gz")
#set(ICU_SHA "5b3cfb519c20511c1c0429b093ec16960f6a6a0d7968a9065fda393f9eba48fc")
#download(${ICU_URL} ${ICU_SHA} src)
set(ICU_DIR "release-${PROJECT_VERSION_MAJOR}-${PROJECT_VERSION_MINOR}")
set(ICU_TAR "icu4c-${PROJECT_VERSION_MAJOR}_${PROJECT_VERSION_MINOR}-src.tgz")
cmake_minimum_required(VERSION 3.19 FATAL_ERROR)
project(icu VERSION 68.1 LANGUAGES C CXX)
# Library: icudt
file(GLOB dt_sources src/source/stubdata/*.cpp)
add_library(dt SHARED ${headers} ${dt_sources})
set_target_properties(dt PROPERTIES OUTPUT_NAME "icudt" INSTALL_RPATH "$ORIGIN")
# Library: icuuc
file(GLOB uc_sources src/source/common/*.cpp)