Guard against unreadable buffers at initialization

Fix initialization being triggered with unnamed/unreadable buffers,
which was causing parsing of translation units called None, generating
several error messages.

This was happening calling g:ClangUpdateQuickFix().
Fix continuous QuickFix warning for unused args

Fix continuous QuickFix warning when g:clang_complete_macros or
g:clang_complete_patterns are enabled. This options makes reparse
to generate warning messages for unused arguments.

Warning messages for unused arguments are now being filtered out.
No need to sleep after printing debug output.

The output can always be accessed with ':mess'. See #188.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Add a more verbose code completion timer.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Merge pull request #186 from oblitum/suppress_unused_args_diagnostic

Fix continuous QuickFix warning for unused args
Merge pull request #184 from oblitum/empty_bufname

Guard against unreadable buffers at initialization
Merge pull request #189 from tobig/improved_code_completion_timer

Improved code completion timer
Removes checking whether file is readable

Checking whether file is readable prior to loading clang_complete
is wrong. The plugin can't get loaded on creation of new files.
Merge pull request #192 from oblitum/empty_bufname

Removes checking whether file is readable for guard against unreadable buffers at initialization
Pass -stdlib=... to clang to get list of includes

Otherwise wrong library specific paths can be used (from default
standard library).

Closes #195.
Merge: Mass rename C1x references to C11. The name hasn't proliferated like
"C++0x" so this patch is surprisingly small.

Also drop -Wc1x-extensions in favor of -Wc11-extensions. I don't think
we need to keep this around for compatibility.

https://llvm.org/svn/llvm-project/cfe/trunk@147221
Merge from clang

Add CXX_FINAL_ATTR, CXX_OVERRIDE_ATTR, ANNOTATE_ATTR and ASM_LABEL_ATTR
to the python bindinds. patch by Tom Schuster!

https://llvm.org/svn/llvm-project/cfe/trunk@1473
Merge: Implement __eq__ and __ne__ on SourceLocation and SourceRange

There is no type checking in __eq__, so ctypes will throw if the wrong
Python type is passed in to the C function. Personally, I feel garbage
in means garbage out and it isn't worth testing for this explicitly.

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

https://llvm.org/svn/llvm-project/cfe/trunk@14982
Merge: Expose diagnostic category and option info to Python binding

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

https://llvm.org/svn/llvm-project/cfe/trunk@14982
Merge: Implement Cursor.hash

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

https://llvm.org/svn/llvm-project/cfe/trunk@149826
Merge: Add CursorKind.{is_translation_unit, is_preprocessing, is_unexposed}

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

https://llvm.org/svn/llvm-project/cfe/trunk@149827
Merge: add TypeKind.VECTOR

Added a missing enumeration.

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

https://llvm.org/svn/llvm-project/cfe/trunk@149828
Merge: Implement Cursor.underlying_typedef_type

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

https://llvm.org/svn/llvm-project/cfe/trunk@149829
Merge: Implement Cursor.enum_type

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

https://llvm.org/svn/llvm-project/cfe/trunk@149830
Merge: Change type -> Type

Names that have corresponding classes in python are commonly started
with an uppercase letter. Let's follow that convention

https://llvm.org/svn/llvm-project/cfe/trunk@149831