From 18ff966814ed1064cc56a6de29909ca82ceffffc Mon Sep 17 00:00:00 2001 From: oyvang Date: Tue, 26 May 2015 10:48:50 +0200 Subject: [PATCH] fixed compile_command cp to source folder --- juci/config.json | 5 +++-- juci/plugins/snippet.py | 19 ++++++++++--------- juci/window.cc | 4 ++-- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/juci/config.json b/juci/config.json index 9b3e661..8b164ef 100644 --- a/juci/config.json +++ b/juci/config.json @@ -72,8 +72,9 @@ "compile_commands": [ "rm -rf ./.build", "mkdir ./.build", - "cmake -B./.build -H.", - "cd ./.build/; make" + "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B./.build -H.", + "cd ./.build/; make", + "cp ./.build/compile_commands.json compile_commands.json" ] }, "example": { diff --git a/juci/plugins/snippet.py b/juci/plugins/snippet.py index 9e1f652..5f77be6 100644 --- a/juci/plugins/snippet.py +++ b/juci/plugins/snippet.py @@ -12,28 +12,29 @@ def initPlugin(): snippets = {} snippets["for"] = """\ -for(#int i=0; #i<#v.size(); #i++) { - std::cout << v[i] << std::endl; +for(int i=0; isignal_button_release_event().