[SemaCodeComplete] Expose a method to create CodeCompletionString for macros.
authorEric Liu <ioeric@google.com>
Fri, 6 Jul 2018 09:43:57 +0000 (09:43 +0000)
committerEric Liu <ioeric@google.com>
Fri, 6 Jul 2018 09:43:57 +0000 (09:43 +0000)
commit00f43c959d420a6c64ac14288dde630bb3b1f3bd
tree4217ac643225b0cba495d868bd43e051875b61c3
parent742bf1a255691f2988c50031c92e1d7cfd913ace
[SemaCodeComplete] Expose a method to create CodeCompletionString for macros.

Summary:
The method only takes PPreprocessor and don't require structures that
might not be available (e.g. Sema and ASTContext) when CodeCompletionString
needs to be generated for macros.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D48973

llvm-svn: 336427
clang/include/clang/Sema/CodeCompleteConsumer.h
clang/lib/Sema/SemaCodeComplete.cpp