This is an archive of the discontinued LLVM Phabricator instance.

[ASTMatchers] Add support for boolean literals
ClosedPublic

Authored by Lekensteyn on May 11 2017, 3:52 AM.

Details

Summary

Recognize boolean literals for future extensions ("equals(true)").
Note that a specific VariantValue constructor is added to resolve
ambiguity (like "Value = 5") between unsigned and bool.

Diff Detail

Repository
rL LLVM

Event Timeline

Lekensteyn created this revision.May 11 2017, 3:52 AM
Lekensteyn edited the summary of this revision. (Show Details)
aaron.ballman accepted this revision.May 11 2017, 6:01 AM
aaron.ballman added a subscriber: aaron.ballman.

LGTM!

This revision is now accepted and ready to land.May 11 2017, 6:01 AM
Lekensteyn updated this revision to Diff 98781.May 12 2017, 9:19 AM
Lekensteyn edited the summary of this revision. (Show Details)

v2: Minor updates (fixed comment: // <Boolean> ... to /// <Boolean, consistently put the boolean code blocks before unsigned).

This revision was automatically updated to reflect the committed changes.