Commit Graph

452 Commits

Author SHA1 Message Date
Pi-Hsun Shih
2d11be9162 Add test for IdentifierUtils::RemoveIdentifierFreeText 2013-03-15 10:52:13 +08:00
peter50216
6a0525254e Fix handling of escaped \ in char or string. 2013-03-14 12:41:20 +08:00
Strahinja Val Markovic
9b2a214cbe Updating an error message for ycm_core not found 2013-03-11 10:50:08 -07:00
Strahinja Val Markovic
8926a98bf4 Updating vimdoc from readme 2013-03-10 10:37:23 -07:00
Strahinja Val Markovic
005175d3f3 Filetype whitelist option added.
Also renaming the filetype blacklist option for the sake of symmetry.
Fixes #178.
2013-03-09 20:32:31 -08:00
Strahinja Val Markovic
c394cb557e 'empty' over 'strlen' for empty string check (duh) 2013-03-09 19:31:00 -08:00
Strahinja Val Markovic
82bd32aa16 Fixing YCM breakage
VimScript is not Python so "!some_string" does not return false when some_string
is not empty (it _does_ return true when some_string _is_ empty). I of course
know this, but my fingers like to forget it from time to time.
2013-03-09 09:47:35 -08:00
Strahinja Val Markovic
81444e207c Don't run when there's no filetype set.
Implements the smaller part of issue #178.
2013-03-08 22:55:14 -08:00
Strahinja Val Markovic
c46b9c6b31 Removing outdated sentence from the README 2013-03-08 22:44:23 -08:00
Strahinja Val Markovic
ba6b40e485 Refactoring the ClangAvailableForBuffer method 2013-03-03 10:48:34 -08:00
Val Markovic
e72652e463 Merge pull request #172 from zehrizzatti/multiple_filetypes
Fix for multiple filetypes set
2013-03-03 10:40:47 -08:00
Zeh Rizzatti
c6aefaef86 Select correct triggers for multiple filetypes
The base class completer Inner chose the first filetype available and
would use the triggers for it.

The triggers are now chosen considering the first for the current buffer
that is supported by the current completer. If there is no intersection,
it fallsback to considering the first filetype for the buffer.
2013-03-03 01:52:56 -04:00
Zeh Rizzatti
ac1e04fc14 Check for a native completer with multiple filetypes
GetFiletypeCompleter would always return a omnicompleter for the first
filetype in case there was no native completer, and the lookup would
stop.

This changes that behaviour to get all possible completers and tries to
find a native one among them. If no native completer is found, it
returns the omnicompleter for the first filetypes, as it used to.
2013-03-02 22:14:22 -04:00
Zeh Rizzatti
1acd3e84c7 Support for multile filetypes in clang_completer
clang_completer would check if the raw value of '&ft' was one of
supported filetypes for the completer.

Vim allows for multiple filetypes with a '.' separator. A file with
ft=qt.cpp, for example, would not be supported by clang_completer even
though it was a cpp file.

This patch changes that behaviour.
2013-03-02 22:02:29 -04:00
Strahinja Val Markovic
5d97e709f5 Adding the any_of.hpp file to BoostParts
Fixes #171, fixes #170
2013-03-02 08:39:03 -08:00
Strahinja Val Markovic
a6e83bfe76 Smart-case sensitive filtering
Fixes #120
2013-03-01 22:18:43 -08:00
Strahinja Val Markovic
831c122d06 Placating the compiler playing dumb about types 2013-03-01 20:34:01 -08:00
Strahinja Val Markovic
54ea5db7cc Refactor for loop into std algo call 2013-03-01 20:15:36 -08:00
Strahinja Val Markovic
c8a9d0590e boost::array instead of std::vector in nodelist
This should provide a minor performance boost & memory reduction.
2013-03-01 20:10:12 -08:00
Strahinja Val Markovic
dae3dcdd9e Style fixes and minor refactoring 2013-03-01 20:09:55 -08:00
Strahinja Val Markovic
6d64a841bb Updating vimdoc from readme 2013-03-01 18:40:02 -08:00
Strahinja Val Markovic
d2db03b021 Better error message when unable to get diags
Fixes #72.
2013-03-01 18:37:10 -08:00
Strahinja Val Markovic
9dd1e68002 More Xs in mktemp to placate Slackware
Fixes #168.
2013-03-01 18:07:39 -08:00
Strahinja Val Markovic
9e0318d229 Not using the system libclang by default
We used to do this but it was unsafe, as issue #167 proves. YCM has to give
libclang an include to YCM's copy of clang system headers (again, see issue #167
for details) and those headers may not be valid for a newer libclang.

If the user really wants to user the system libclang, then he can just always
call cmake himself. The installation guide in the README goes to great lengths
to explain the simple process of building YCM "by hand".

Fixes #167.
2013-03-01 18:03:28 -08:00
Strahinja Val Markovic
67bf88b726 Minor rewording in the README 2013-02-28 09:57:56 -08:00
Strahinja Val Markovic
980a1c2ffc Minor post-PR changes 2013-02-28 09:54:22 -08:00
Strahinja Val Markovic
aafcd4264d Merge branch 'globlist' of github.com:kljohann/YouCompleteMe into kljohann-globlist
Conflicts:
	python/completers/cpp/flags.py
2013-02-28 09:51:38 -08:00
Val Markovic
c24d272df6 Merge pull request #155 from kljohann/reload
Implement completer-specific commands
2013-02-28 09:49:11 -08:00
Johann Klähn
1d566bad80 Implement white-/blacklisting 2013-02-28 18:15:09 +01:00
Johann Klähn
3d305f9c74 Implement completer-specific commands
This provides a framework for completer-writers to create
completer-specific commands. I have in mind to use this for the clang
completer to force reloading of a flags module via `:YcmCompleter reload`.
2013-02-28 11:32:07 +01:00
Strahinja Val Markovic
719b497daa More reliable way of adding -fPIC.
Fixes #162
2013-02-27 19:43:41 -08:00
Strahinja Val Markovic
263b405ab4 Very minor post-pull style-related changes. 2013-02-26 18:28:58 -08:00
Strahinja Val Markovic
95b9eeee18 Merge branch 'master' of github.com:kljohann/YouCompleteMe into kljohann-master 2013-02-26 18:21:46 -08:00
Johann Klähn
e9cce29761 Ask before loading .ycm_extra_conf.py files
To prevent the execution of malicious code the new default is
to ask the user before a `.ycm_extra_conf.py` file is loaded.
This can be disabled using the option `g:ycm_confirm_extra_conf`.

This commit introduces a helper class `FlagsModules` that keeps track of
and caches the currently loaded modules. To introduce further criteria
for a module look at `FlagsModules.ShouldLoad`.

Also `:YcmDebugInfo` now lists the file that was used to determine
the current set of flags.

`Flags.ModuleForFile` could be used in a user-facing command that
opens the `.ycm_extra_conf.py` corresponding to the current file.
A second command could then force a reloding of this module via
`Flags.ReloadModule`.
2013-02-26 11:16:26 +01:00
Strahinja Val Markovic
bae3665602 Adding semantic triggers for Go 2013-02-25 19:09:58 -08:00
Strahinja Val Markovic
05f707344b Updating docs with semantic trigger changes 2013-02-25 11:21:25 -08:00
Val Markovic
c6cf813b7a Merge pull request #154 from blueyed/trigger_for_static_php
g:ycm_semantic_triggers: add '::' to triggers for PHP
2013-02-25 11:16:26 -08:00
Daniel Hahler
f78b9dc29c g:ycm_semantic_triggers: add '::' to triggers for PHP 2013-02-25 11:09:51 +01:00
Johann Klähn
4b3e0a1895 Add code to ask user for confirmation in vimsupport 2013-02-25 10:50:44 +01:00
Johann Klähn
70a2a722fe Add GetBoolValue helper in vimsupport 2013-02-25 10:50:39 +01:00
Strahinja Val Markovic
a6a238bcf6 Deleting outdated comment 2013-02-24 14:46:58 -08:00
Strahinja Val Markovic
eb7bec4fdd Refactoring ClangCompleter to use ResultAnd<> 2013-02-23 17:54:04 -08:00
Strahinja Val Markovic
fb62030122 A few more clang cursorkinds supported
Now C-family completion will have fewer compeletion strings labeled as 'u' kind.
2013-02-23 17:34:10 -08:00
Strahinja Val Markovic
78dd01804d Docs linking to Windows installation wiki page
That wiki page along with the last several commits that make YCM compiled
cleanly with MSVC should make it possible to use YCM on Windows. Fixes #62.
2013-02-23 16:50:21 -08:00
Strahinja Val Markovic
f71b003e9b Removing ycm_core.dll as allowed name
I'm pretty sure that allowing ycm_core.dll was wrong. Python docs state that the
extension for compiled Python modules on Widows is "pyd"; see this link for more
details: http://docs.python.org/2/faq/windows.html#is-a-pyd-file-the-same-as-a-dll

Key quote from the page:
"Of course, foo.pyd is required if you want to say import foo."

CMakeLists.txt has been previously updated to produce a ycm_core.pyd on Windows,
not a ycm_core.dll.
2013-02-23 16:11:15 -08:00
Strahinja Val Markovic
3e5ecd6015 ycm_core should be ycm_core.pyd on Windows 2013-02-23 16:10:36 -08:00
Strahinja Val Markovic
6786d4e71b More style fixes 2013-02-23 15:57:55 -08:00
Val Markovic
ce58bc7d75 ycm_core now compiles cleanly with MSVC 2013-02-23 15:57:55 -08:00
Strahinja Val Markovic
e1584a33b0 Code style fixes 2013-02-23 15:54:44 -08:00
Strahinja Val Markovic
c819c9f31e Typo fix 2013-02-23 13:08:56 -08:00