summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-10 23:08:15 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-10 23:08:15 +0000
commit504a6ae83ee2a8d9ce7e6b470efc96822be3b2ed (patch)
treefeb17bfc435f7445a7d71caad2d6f7c8ebb40aa3 /clang/tools/c-index-test/c-index-test.c
parentec144538ae3afdd2c56b9f9bee2cba73eec40dce (diff)
downloadbcm5719-llvm-504a6ae83ee2a8d9ce7e6b470efc96822be3b2ed.tar.gz
bcm5719-llvm-504a6ae83ee2a8d9ce7e6b470efc96822be3b2ed.zip
Improve code completion by introducing patterns for the various C and
C++ grammatical constructs that show up in top-level (namespace-level) declarations, member declarations, template declarations, statements, expressions, conditions, etc. For example, we now provide a pattern for static_cast<type>(expr) when we can have an expression, or using namespace identifier; when we can have a using directive. Also, improves the results of code completion at the beginning of a top-level declaration. Previously, we would see value names (function names, global variables, etc.); now we see types, namespace names, etc., but no values. llvm-svn: 93134
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 8e84554e0b2..0e532ffa0e7 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -378,6 +378,11 @@ clang_getCompletionChunkKindSpelling(enum CXCompletionChunkKind Kind) {
case CXCompletionChunk_RightAngle: return "RightAngle";
case CXCompletionChunk_Comma: return "Comma";
case CXCompletionChunk_ResultType: return "ResultType";
+ case CXCompletionChunk_Colon: return "Colon";
+ case CXCompletionChunk_SemiColon: return "SemiColon";
+ case CXCompletionChunk_Equal: return "Equal";
+ case CXCompletionChunk_HorizontalSpace: return "HorizontalSpace";
+ case CXCompletionChunk_VerticalSpace: return "VerticalSpace";
}
return "Unknown";
OpenPOWER on IntegriCloud