Skip to content

Instantly share code, notes, and snippets.

@rezzafr33
Created June 24, 2015 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rezzafr33/7b30319a17d3f0417ed5 to your computer and use it in GitHub Desktop.
Save rezzafr33/7b30319a17d3f0417ed5 to your computer and use it in GitHub Desktop.
{
// Additional compiler options that are always added to the completion
// parser
"additional_options": [
"-Wno-c++11-narrowing",
"-D__STRICT_ANSI__",
"-DQT_NO_DEBUG",
"-I/usr/lib/clang/3.6.1/include",
"-I/usr/include/gtk-3.0",
"-I/usr/include/at-spi2-atk/2.0",
"-I/usr/include/at-spi-2.0",
"-I/usr/include/dbus-1.0",
"-I/usr/lib/dbus-1.0/include",
"-I/usr/include/gtk-3.0",
"-I/usr/include/gio-unix-2.0/",
"-I/usr/include/cairo",
"-I/usr/include/pango-1.0",
"-I/usr/include/harfbuzz",
"-I/usr/include/pango-1.0",
"-I/usr/include/atk-1.0",
"-I/usr/include/cairo",
"-I/usr/include/pixman-1",
"-I/usr/include/freetype2",
"-I/usr/include/libdrm",
"-I/usr/include/libpng16",
"-I/usr/include/gdk-pixbuf-2.0",
"-I/usr/include/libpng16",
"-I/usr/include/glib-2.0",
"-I/usr/lib/glib-2.0/include" ],
// The cmake build directory where ClangCompletion will look for the
// compiler flags
"build_dir": "build",
// If a valid build directory cannot be found then the default options
// will be used instead
"default_options": ["-std=c++11"],
// Additional paths that are searched when doing completion for include
// directives. Generally, it should always be the default include paths
// set by the compiler. To see the default search paths for the compiler
// type `echo | `gcc -print-prog-name=cc1plus` -v -E` into the command
// line.
"default_include_paths":
[
"/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0",
"/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0/x86_64-unknown-linux-gnu",
"/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0/backward",
"/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/include",
"/usr/local/include",
"/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/include-fixed",
"/usr/include",
"/usr/lib/clang/3.6.1/include",
"/usr/include/gtk-3.0",
"/usr/include/at-spi2-atk/2.0",
"/usr/include/at-spi-2.0",
"/usr/include/dbus-1.0",
"/usr/lib/dbus-1.0/include",
"/usr/include/gtk-3.0",
"/usr/include/gio-unix-2.0/",
"/usr/include/cairo",
"/usr/include/pango-1.0",
"/usr/include/harfbuzz",
"/usr/include/pango-1.0",
"/usr/include/atk-1.0",
"/usr/include/cairo",
"/usr/include/pixman-1",
"/usr/include/freetype2",
"/usr/include/libdrm",
"/usr/include/libpng16",
"/usr/include/gdk-pixbuf-2.0",
"/usr/include/libpng16",
"/usr/include/glib-2.0",
"/usr/lib/glib-2.0/include"
],
// How long ClangComplete will wait for completions. This helps prevent
// clang from blocking the gui thread.
"timeout": 200,
// Suppress sublime's completion suggestions
"inhibit_sublime_completions": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment