]> granicus.if.org Git - clang/commit
Replace the -code-completion-dump option with
authorDouglas Gregor <dgregor@apple.com>
Tue, 22 Sep 2009 21:11:38 +0000 (21:11 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 22 Sep 2009 21:11:38 +0000 (21:11 +0000)
commitb657f115c3b4e262e72906a28cbcf3eaccd9460c
tree95502c386d41a13dd1c04b189247446b9fb8d18e
parentadd28829c7a8d3c5da9ae140f18d3c9ad2d8b599
Replace the -code-completion-dump option with

  -code-completion-at=filename:line:column

which performs code completion at the specified location by truncating
the file at that position and enabling code completion. This approach
makes it possible to run multiple tests from a single test file, and
gives a more natural command-line interface.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82571 91177308-0d34-0410-b5e6-96231b3b80d8
27 files changed:
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Basic/SourceManager.h
include/clang/Lex/Preprocessor.h
lib/Basic/SourceManager.cpp
lib/Lex/Lexer.cpp
lib/Lex/Preprocessor.cpp
test/CodeCompletion/call.cpp
test/CodeCompletion/enum-switch-case-qualified.cpp
test/CodeCompletion/enum-switch-case.c
test/CodeCompletion/enum-switch-case.cpp
test/CodeCompletion/function-templates.cpp
test/CodeCompletion/functions.cpp
test/CodeCompletion/member-access.c
test/CodeCompletion/member-access.cpp
test/CodeCompletion/namespace-alias.cpp
test/CodeCompletion/namespace.cpp
test/CodeCompletion/nested-name-specifier.cpp
test/CodeCompletion/operator.cpp
test/CodeCompletion/ordinary-name.c
test/CodeCompletion/tag.c
test/CodeCompletion/tag.cpp
test/CodeCompletion/templates.cpp
test/CodeCompletion/truncation.c [new file with mode: 0644]
test/CodeCompletion/truncation.c.h [new file with mode: 0644]
test/CodeCompletion/using-namespace.cpp
test/CodeCompletion/using.cpp
tools/clang-cc/clang-cc.cpp