hanchenye-llvm-project/clang/lib/Basic
Douglas Gregor 2436e7116b Initial implementation of a code-completion interface in Clang. In
essence, code completion is triggered by a magic "code completion"
token produced by the lexer [*], which the parser recognizes at
certain points in the grammar. The parser then calls into the Action
object with the appropriate CodeCompletionXXX action.

Sema implements the CodeCompletionXXX callbacks by performing minimal
translation, then forwarding them to a CodeCompletionConsumer
subclass, which uses the results of semantic analysis to provide
code-completion results. At present, only a single, "printing" code
completion consumer is available, for regression testing and
debugging. However, the design is meant to permit other
code-completion consumers.

This initial commit contains two code-completion actions: one for
member access, e.g., "x." or "p->", and one for
nested-name-specifiers, e.g., "std::". More code-completion actions
will follow, along with improved gathering of code-completion results
for the various contexts.

[*] In the current -code-completion-dump testing/debugging mode, the
file is truncated at the completion point and EOF is translated into
"code completion".

llvm-svn: 82166
2009-09-17 21:32:03 +00:00
..
Builtins.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
CMakeLists.txt move the various builtins stuff from libast to libbasic. This 2009-06-14 01:05:48 +00:00
ConvertUTF.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
Diagnostic.cpp Initial implementation of a code-completion interface in Clang. In 2009-09-17 21:32:03 +00:00
FileManager.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
IdentifierTable.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
Makefile Don't install Clang libraries. 2009-08-23 05:02:18 +00:00
SourceLocation.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
SourceManager.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
TargetInfo.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
Targets.cpp Fix typo. 2009-09-17 21:15:00 +00:00
TokenKinds.cpp Clean up and document code modification hints. 2009-02-27 17:53:17 +00:00