forked from niosus/EasyClangComplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEasyClangComplete.sublime-settings
67 lines (52 loc) · 2.2 KB
/
EasyClangComplete.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
// Where should clang search for headers
// These will be appended to build with `-I` flag each
"include_dirs" : [
"/usr/include",
"$project_base_path/src",
"/workspace/$project_name/src",
],
// set the standard library flag.
"std_flag" : "-std=c++11",
// search for .clang_complete file up the tree. Use includes from it if found
"search_clang_complete_file": true,
// search for CMakeLists.txt with a "project" command in it. Run cmake on this
// file from temporary folder to generate compilation database. Update
// .clang_complete file with these generated flags.
"generate_flags_with_cmake": true,
// what to do if old flags were found in .clang_complete file?
// can be one of the following:
// - "ask": ask the user every time we need to overwite .clang_complete
// - "merge": merge all together, ignore dublicates
// - "overwrite": overwrite whatever is already in the file
// - "keep_old": ignore flags from cmake, keep old one instead
"cmake_flags_priority": "ask",
// add these to CMAKE_PREFIX_PATH. Needed if you have an esoteric build system
"cmake_prefix_paths": [
"~/relative/path",
"/absolute/path"],
// show compile errors on save
"errors_on_save": true,
// triggers for auto-completion
"triggers" : [ ".", "->", "::"],
// use libclang. If set to false will use clang_binary and parse the output of
// `clang_binary -Xclang -code-complete-at...` instead.
"use_libclang" : true,
// make plugin verbose
"verbose" : false,
// add folder with current file with `-I` flag
"include_file_folder" : true,
// add parent folder of the current file's one with `-I` flag
"include_file_parent_folder" : true,
// pick the clang binary used by the plugin. This is used to determine the
// version of the plugin and pick correct libclang bindings.
"clang_binary" : "clang++",
// ignore triggers and try to complete after each character
// WARNING: can be very slow
"autocomplete_all" : false,
// override all clang flags by project-specific settings defined under
// `settings`->`clang_flags` in `*.sublime-project` file
"use_project_specific_settings": false,
// hide the completions generated by other plugins
"hide_default_completions": false,
}