summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/CodeCompleteConsumer.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-05-20 14:19:46 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-05-20 14:19:46 +0000
commitc25c0b9da5889013922609a596b100ee2e479d6d (patch)
tree5dc017400faa8fb358899a22faf01d35737e9044 /clang/lib/Sema/CodeCompleteConsumer.cpp
parent49c3b20737f445c37ef9d8cefb885d13b7747f7a (diff)
downloadbcm5719-llvm-c25c0b9da5889013922609a596b100ee2e479d6d.tar.gz
bcm5719-llvm-c25c0b9da5889013922609a596b100ee2e479d6d.zip
Bitpack CodeCompletionResults.
llvm-svn: 157158
Diffstat (limited to 'clang/lib/Sema/CodeCompleteConsumer.cpp')
-rw-r--r--clang/lib/Sema/CodeCompleteConsumer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/Sema/CodeCompleteConsumer.cpp b/clang/lib/Sema/CodeCompleteConsumer.cpp
index ce9bbb9238a..dfbc98f3515 100644
--- a/clang/lib/Sema/CodeCompleteConsumer.cpp
+++ b/clang/lib/Sema/CodeCompleteConsumer.cpp
@@ -573,14 +573,8 @@ void CodeCompletionResult::computeCursorKindAndAvailability(bool Accessible) {
}
case RK_Macro:
- Availability = CXAvailability_Available;
- CursorKind = CXCursor_MacroDefinition;
- break;
-
case RK_Keyword:
- Availability = CXAvailability_Available;
- CursorKind = CXCursor_NotImplemented;
- break;
+ llvm_unreachable("Macro and keyword kinds are handled by the constructors");
}
if (!Accessible)
OpenPOWER on IntegriCloud