From 127851084d42e79e930a7cceca4eec02afd482f7 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 24 Aug 2010 20:21:13 +0000 Subject: Implement preprocessor code completion where a macro name is expected, e.g., after #ifdef/#ifndef or #undef, or inside a defined expression in a preprocessor conditional. llvm-svn: 111954 --- clang/lib/Parse/Parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/Parse/Parser.cpp') diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 230506d85f7..13db742f18f 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -1139,3 +1139,7 @@ void Parser::CodeCompleteDirective(bool InConditional) { void Parser::CodeCompleteInConditionalExclusion() { Actions.CodeCompleteInPreprocessorConditionalExclusion(getCurScope()); } + +void Parser::CodeCompleteMacroName(bool IsDefinition) { + Actions.CodeCompletePreprocessorMacroName(getCurScope(), IsDefinition); +} -- cgit v1.2.3