[all-commits] [llvm/llvm-project] 320311: [clang][parser] Unify rejecting (non) decl stmts w...
tbaederr via All-commits
all-commits at lists.llvm.org
Mon Apr 19 03:44:33 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 320311a01b4938fca8f5127193167d367d1a9f87
https://github.com/llvm/llvm-project/commit/320311a01b4938fca8f5127193167d367d1a9f87
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2021-04-19 (Mon, 19 Apr 2021)
Changed paths:
M clang/lib/Parse/ParseStmt.cpp
M clang/test/SemaCXX/warn-unused-label-error.cpp
Log Message:
-----------
[clang][parser] Unify rejecting (non) decl stmts with gnu attributes
The comment here was introduced in
a3e01cf822f7415337e5424af3c6f4c94a12c1b9 and suggests that we should
handle declaration statements and non-declaration statements the same,
but don't because ProhibitAttributes() can't handle GNU attributes. That
has recently changed, so remove the comment and handle all statements
the same.
Differential Revision: https://reviews.llvm.org/D99936
More information about the All-commits
mailing list