[Index] Create PP callbacks in the ASTConsumer
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 29 Aug 2019 10:23:29 +0000 (10:23 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 29 Aug 2019 10:23:29 +0000 (10:23 +0000)
commitfd5b0011a78b2d028fc7c8f3ba4298b888355978
treeacb9e3a439eea43881bd09f95cc8b2982d080b6d
parentf001f2208961f12d3378620b7e6efd9471eb5732
[Index] Create PP callbacks in the ASTConsumer

Doing so removes one reason to create a custom FrontendAction.
FrontendActions are not desirable because they are difficult to compose.
ASTConsumers are much easier to compose.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370323 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Index/IndexingAction.cpp