Andersbakken/rtags — pull request #227 by terranpro (2014-09-09 22:23:03+00:00)
Title: Fix missing namespace completions in global namespace

Hi,

My setup has been missing completions for global namespaces.
Example: the 'std' namespace isn't shown; the only near matches shown are stdin,stdout,stderr

However, when prefixing '::std', it would show a namespace completion. Similarly, 'std::placeholders' was also available for completion.

Looking at CompletionThread.cpp it appears the priority for the first, missing case was '75' and it was being filtered away. I'm not sure why the first case is a higher priority than the latter, but I didn't find much of a difference without priority filtering.

Relevant enum in clang c++ interface:
http://clang.llvm.org/doxygen/CodeCompleteConsumer_8h_source.html

(using clang 3.3)

Also added a rtags-ac completion action to auto-add the '::' to the end of a namespace.

Best Regards,
Brian