[all-commits] [llvm/llvm-project] 387427: Improve docs & test for #pragma clang attribute's ...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Wed Nov 17 05:24:46 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3874277f415dca0bb222956983f117a6211c0e39
https://github.com/llvm/llvm-project/commit/3874277f415dca0bb222956983f117a6211c0e39
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2021-11-17 (Wed, 17 Nov 2021)
Changed paths:
M clang/docs/LanguageExtensions.rst
M clang/test/Parser/pragma-attribute.cpp
Log Message:
-----------
Improve docs & test for #pragma clang attribute's any clause; NFC
There was some confusion during the discussion of a patch as to whether
`any` can be used to blast an attribute with no subject list onto
basically everything in a program by not specifying a subrule. This
patch adds documentation and tests to make it clear that this situation
is not supported and will be diagnosed.
More information about the All-commits
mailing list