This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import ycm_core | |
# These are the compilation flags that will be used in case there's no | |
# compilation database set (by default, one is not set). | |
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR. | |
flags = [] | |
# Set this to the absolute path to the folder (NOT the file!) containing the | |
# compile_commands.json file to use that instead of 'flags'. See here for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var fs = require('fs'); | |
var argv = require('optimist') | |
.usage('Merge multiple clang compile_commands.json into one file.') | |
.demand('o') | |
.alias('o', 'output') | |
.describe('o', "Output merged compile_command.json file.") | |
.argv; | |
var commands = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MergeCompileCommands() | |
{ | |
BIN_DIR=$1 | |
OUT_FILE=$BIN_DIR/compile_commands.json | |
command -v node >/dev/null 2>&1 || { echo >&2 "Node.js (node) is required but not installed. Aborting."; exit 1; } | |
command -v npm >/dev/null 2>&1 || { echo >&2 "Node.js' package manager (npm) is required not installed. Aborting."; exit 1; } | |
# Ensure node app is setup correctly (look for node_modules in target dir). |