summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-24 22:20:20 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-24 22:20:20 +0000
commitec00a268552c93b79c5049111b674e2aa184bf5d (patch)
tree8306d1d20b1bccbe0f1350275ff010c7bf33b69c /clang/lib/Parse/Parser.cpp
parent3c884a014c87e15f5ac0430e29960129251dc65c (diff)
downloadbcm5719-llvm-ec00a268552c93b79c5049111b674e2aa184bf5d.tar.gz
bcm5719-llvm-ec00a268552c93b79c5049111b674e2aa184bf5d.zip
Implement code completion for preprocessor expressions and in macro
arguments. llvm-svn: 111976
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 13db742f18f..dd244bb895a 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud