[PATCH] D59467: [clang] Adding the Likely Attribute from C++2a to AST
Gauthier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 16 16:38:03 PDT 2019
Tyker created this revision.
Tyker added a reviewer: aaron.ballman.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
attributes after an if like:
if (...) [[likely]]
are now applied on the if instead of the following statement.
i added the likely attribute in the necessary places Attr.td, AttrDocs.td.
i added a diagnostics kind for C++2a and for likely not used on an if statement.
Repository:
rC Clang
https://reviews.llvm.org/D59467
Files:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Parse/ParseStmt.cpp
clang/lib/Sema/SemaStmtAttr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59467.191002.patch
Type: text/x-patch
Size: 5185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190316/927710a2/attachment.bin>
More information about the cfe-commits
mailing list