[Index] Add setPreprocessor member to IndexDataConsumer.
ClosedPublic

Authored by ioeric on Dec 6 2017, 1:19 AM.

Details

Summary

This enables us to use information in Preprocessor when handling symbol
occurrences.

Diff Detail

Repository
rC Clang
ioeric created this revision.Dec 6 2017, 1:19 AM
hokein accepted this revision.Dec 6 2017, 1:42 AM

LGTM.

include/clang/Index/IndexingAction.h
14 ↗(On Diff #125680)

Is this header being used in this file?

This revision is now accepted and ready to land.Dec 6 2017, 1:42 AM

You can get the preprocessor from the ASTContext, no?

ioeric added a comment.Dec 6 2017, 8:02 AM

You can get the preprocessor from the ASTContext, no?

I don't think ASTContext contains preprocessor information.

You can get the preprocessor from the ASTContext, no?

I don't think ASTContext contains preprocessor information.

My bad, it was the SourceManager I had in mind. Ignore me!

ioeric updated this revision to Diff 125913.Dec 7 2017, 2:26 AM
ioeric marked an inline comment as done.
  • Removed a redundant #include
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.