diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-24 22:20:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-24 22:20:20 +0000 |
commit | f29c5233085a5af795c3c01b94d319e5b3235d56 (patch) | |
tree | 29a09575d6701839943ab6c54aab7ac4a476db0e /lib/Parse/Parser.cpp | |
parent | db918646c0d549a48b85734cb735e094886890d2 (diff) |
Implement code completion for preprocessor expressions and in macro
arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 13db742f18..dd244bb895 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -1133,7 +1133,7 @@ void Parser::FieldCallback::_anchor() { // Code-completion pass-through functions void Parser::CodeCompleteDirective(bool InConditional) { - Actions.CodeCompletePreprocessorDirective(getCurScope(), InConditional); + Actions.CodeCompletePreprocessorDirective(InConditional); } void Parser::CodeCompleteInConditionalExclusion() { @@ -1141,5 +1141,16 @@ void Parser::CodeCompleteInConditionalExclusion() { } void Parser::CodeCompleteMacroName(bool IsDefinition) { - Actions.CodeCompletePreprocessorMacroName(getCurScope(), IsDefinition); + Actions.CodeCompletePreprocessorMacroName(IsDefinition); +} + +void Parser::CodeCompletePreprocessorExpression() { + Actions.CodeCompletePreprocessorExpression(); +} + +void Parser::CodeCompleteMacroArgument(IdentifierInfo *Macro, + MacroInfo *MacroInfo, + unsigned ArgumentIndex) { + Actions.CodeCompletePreprocessorMacroArgument(getCurScope(), Macro, MacroInfo, + ArgumentIndex); } |