[PATCH] D33093: [ASTMatchers] Add support for boolean literals
Peter Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 11 03:52:47 PDT 2017
Lekensteyn created this revision.
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.
-------------------------------------------------------
Passes clang-test, patch for equals will follow shortly.
https://reviews.llvm.org/D33093
Files:
include/clang/ASTMatchers/Dynamic/Parser.h
include/clang/ASTMatchers/Dynamic/VariantValue.h
lib/ASTMatchers/Dynamic/Marshallers.h
lib/ASTMatchers/Dynamic/Parser.cpp
lib/ASTMatchers/Dynamic/VariantValue.cpp
unittests/ASTMatchers/Dynamic/ParserTest.cpp
unittests/ASTMatchers/Dynamic/VariantValueTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33093.98603.patch
Type: text/x-patch
Size: 8068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170511/6b9edd9e/attachment.bin>
More information about the cfe-commits
mailing list