summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-24 20:21:13 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-24 20:21:13 +0000
commit127851084d42e79e930a7cceca4eec02afd482f7 (patch)
tree941c0eac261b433785b36dc942d8c5b8aacbdf96 /clang/lib/Parse/Parser.cpp
parent3aeedd1e5a8dd198589fbd45eac015f1317a8d72 (diff)
downloadbcm5719-llvm-127851084d42e79e930a7cceca4eec02afd482f7.tar.gz
bcm5719-llvm-127851084d42e79e930a7cceca4eec02afd482f7.zip
Implement preprocessor code completion where a macro name is expected,
e.g., after #ifdef/#ifndef or #undef, or inside a defined <macroname> expression in a preprocessor conditional. llvm-svn: 111954
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp4
1 files changed, 4 insertions, 0 deletions
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);
+}
OpenPOWER on IntegriCloud