[Index] Add setPreprocessor member to IndexDataConsumer.
ClosedPublic

Authored by ioeric on Wed, Dec 6, 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.Wed, Dec 6, 1:19 AM
hokein accepted this revision.Wed, Dec 6, 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.Wed, Dec 6, 1:42 AM

You can get the preprocessor from the ASTContext, no?

ioeric added a comment.Wed, Dec 6, 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.Thu, Dec 7, 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.