Skip to content

Instantly share code, notes, and snippets.

@markbenvenuto
markbenvenuto / gen_compiledb.py
Created October 22, 2019 17:52
Generate compile_commands.json on MacOS with Clang
#!/usr/bin/env python3
# Configures the build to use XCode targeting macOS
import json
import os
import os.path
import string
import subprocess
import sys
@markbenvenuto
markbenvenuto / task_to_trace.py
Created February 14, 2019 22:29
task log to chromium trace
# task_to_trace.py
import sys
import re
from dateutil.parser import *
with open(sys.argv[1]) as fh:
lines = fh.readlines()
begin = {}
@markbenvenuto
markbenvenuto / clang-format.diff
Created January 25, 2016 23:02
Clang-Format patch
Adds new option
- ElseNewLine - to get the else behavior we want
- New indentation for namespaces
Index: include/clang/Format/Format.h
===================================================================
--- include/clang/Format/Format.h (revision 229164)
+++ include/clang/Format/Format.h (working copy)
@@ -139,6 +139,8 @@
NI_None,