Skip to content

Instantly share code, notes, and snippets.

# Based on @berenm's pull request https://github.com/quarnster/SublimeClang/pull/135
# Create the database with cmake with for example: cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
# or you could have set(CMAKE_EXPORT_COMPILE_COMMANDS ON) in your CMakeLists.txt
# Usage within SublimeClang:
# "sublimeclang_options_script": "python ${home}/code/cmake_options_script.py ",
# 2013.01.26: Pavlo Ilin
# - Removed the usage of cache file - if cmake-scripts are changed often,
# cache file quickly becomes old and wrong.
# - Will recursively go up in directory tree and try to find compile_commands.json
@PIlin
PIlin / 1.cpp
Created January 20, 2013 17:48
// g++ -g -Wall -std=c++11 1.cpp
#include <iostream>
#include <vector>
#include <functional>
typedef std::vector<std::function<int(int)> > VFII;
VFII gen()
{
@PIlin
PIlin / files.diff
Created November 26, 2012 19:54
nxengine double-uchar bug
--- /Users/pavel/tmp/release.asm
+++ /Users/pavel/tmp/release_vol.asm
@@ -37,28 +37,31 @@
Lfunc_begin0:
.loc 1 34 0 @ /Users/pavel/code/NXEngine-iOS/iOS/CaveStory/../../sound/pxt.cpp:34:0
@ BB#0:
+ .loc 1 33 28 prologue_end @ /Users/pavel/code/NXEngine-iOS/iOS/CaveStory/../../sound/pxt.cpp:33:28
+ sub sp, #4
@DEBUG_VALUE: GETWAVEBYTE:wave <- R0+0
@DEBUG_VALUE: GETWAVEBYTE:out <- R1+0