llvm-project/clang/test
Valeriy Savchenko 81a9707723 [Attr] Apply GNU-style attributes to expression statements
Before this commit, expression statements could not be annotated
with statement attributes.  Whenever parser found attribute, it
unconditionally assumed that it was followed by a declaration.
This not only doesn't allow expression attributes to have attributes,
but also produces spurious error diagnostics.

In order to maintain all previously compiled code, we still assume
that GNU attributes are followed by declarations unless ALL of those
are statement attributes.  And even in this case we are not forcing
the parser to think that it should parse a statement, but rather
let it proceed as if no attributes were found.

Differential Revision: https://reviews.llvm.org/D93630
2021-02-11 16:44:41 +03:00
..
APINotes [NFC][tests] Replace use of GNUisms in usage of diff 2020-11-08 12:07:51 -05:00
ARCMT [clang][cli] Turn arcmt-* options into a single option 2020-11-18 10:53:41 +01:00
AST [clang-tblgen] AnnotateAttr::printPretty has spurious comma when no variadic argument is specified 2021-02-03 11:41:38 -08:00
ASTMerge [ASTImporter] Add support for importing GenericSelectionExpr AST nodes. 2020-12-16 15:39:50 -08:00
Analysis Revert "[analyzer] RetainCountChecker: Add a suppression for OSSymbols." 2021-02-09 23:44:33 -08:00
CXX Revert "DR2064: decltype(E) is only a dependent type if E is type-dependent, not 2021-01-19 12:48:40 -08:00
ClangScanDeps Revert "[clang-scan-deps] Support clang-cl" 2020-12-14 13:32:38 -05:00
CodeCompletion [CodeComplete] Member completion: heuristically resolve some dependent base exprs 2021-02-11 11:03:40 +01:00
CodeGen Avoid conflicts between debug-info and pseudo-probe profiling 2021-02-10 07:09:18 -08:00
CodeGenCUDA [CUDA][HIP] Fix device variable linkage 2021-02-05 15:11:12 -05:00
CodeGenCXX PR48587: is_constant_evaluated() should not evaluate to true during a 2021-02-08 17:34:40 -08:00
CodeGenCoroutines [test] Move coro-retcon-unreachable.ll into llvm/test 2021-01-07 14:06:01 -08:00
CodeGenHIP
CodeGenObjC Revert "[ObjC][ARC] Use operand bundle 'clang.arc.rv' instead of explicitly" 2021-02-09 11:06:32 -05:00
CodeGenObjCXX [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
CodeGenOpenCL [OpenCL] Fix types with signed prefix in arginfo metadata. 2021-02-09 15:13:19 +00:00
CodeGenOpenCLCXX [OpenCL] Fix address space in binding of initializer lists to referencs 2021-02-03 12:48:21 +00:00
CodeGenSYCL
Coverage
CoverageMapping [Coverage] Propogate counter to condition of conditional operator 2021-02-03 13:33:22 -08:00
Driver [Clang, NewPM] Add KMSan support 2021-02-10 14:07:49 -08:00
FixIt
Format [test] Use host platform specific error message substitution in lit tests - continued 2021-02-03 09:53:22 -05:00
Frontend [clang][cli] Command line round-trip for HeaderSearch options 2021-02-04 10:18:34 +01:00
Headers [OpenCL] Add macro definitions of OpenCL C 3.0 features 2021-02-05 18:42:25 +03:00
Import clang-import-test: Clean up error output for files that cannot be found 2020-12-11 17:07:58 -08:00
Index [clang][index] report references from unreslovedLookupExpr. 2021-02-11 11:08:26 +01:00
Integration
InterfaceStubs
Layout [Frontend] Add pragma align natural and sort out pragma pack stack effect 2021-01-13 10:53:24 -05:00
Lexer [c++2b] Add tests for feature test macros. 2020-12-18 13:42:23 -08:00
Misc [clang] Add support for attribute 'swift_async_error' 2021-02-10 13:18:13 -05:00
Modules Make sure a module file with errors produced via '-fallow-pcm-with-compiler-errors' can be loaded when using implicit modules 2021-02-08 16:10:39 -08:00
OpenMP [FileCheck] Default --allow-unused-prefixes to false 2021-02-08 13:37:04 -08:00
PCH [clang] Allow LifetimeExtendedTemporary to have no access specifier 2021-01-18 19:19:57 +01:00
Parser [Attr] Apply GNU-style attributes to expression statements 2021-02-11 16:44:41 +03:00
Preprocessor [clang][emscripten] Add builtin define for __EMSCRIPTEN_PTHREADS__ 2021-02-05 13:53:05 -08:00
Profile [clang] Add -fprofile-prefix-map 2021-01-25 10:14:04 -08:00
Refactor
Rewriter
Sema Correct some confused diagnostic terminology 2021-02-04 15:52:07 -05:00
SemaCUDA [CUDA][HIP] Fix checking dependent initalizer 2021-02-04 18:04:54 -05:00
SemaCXX PR48545: Access check the inherited constructor, not the inheriting 2021-02-09 13:27:55 -08:00
SemaObjC Correct swift_bridge duplicate attribute warning logic 2021-02-11 07:11:27 -05:00
SemaObjCXX [Sema] Fix an assertion failure in -Wcompletion-handler 2021-01-25 13:02:02 -05:00
SemaOpenCL [OpenCL] Add cl_khr_subgroup_extended_types to TableGen BIFs 2021-02-11 09:32:42 +00:00
SemaOpenCLCXX [OpenCL] Fix default address space in template argument deduction. 2021-02-04 13:51:53 +00:00
SemaSYCL Fix missing error for use of 128-bit integer inside SPIR64 device code. 2020-12-07 10:42:32 -08:00
SemaTemplate Fix miscomputation of dependence for elaborated types that are 2021-02-04 13:14:15 -08:00
TableGen
Templight
Tooling [Syntax] Add syntax-tree-dump in clang-check. 2021-01-29 14:10:27 +01:00
Unit
VFS [VFS] Add support to RedirectingFileSystem for mapping a virtual directory to one in the external FS. 2021-02-02 14:56:17 +10:00
clang-rename
utils/update_cc_test_checks [utils] Fix UpdateTestChecks case where 2 runs differ for last label 2020-12-15 07:16:54 -08:00
.clang-format
CMakeLists.txt [clang] Add llvm-strip to test dependencies 2021-01-09 11:57:27 -08:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [FileCheck] Default --allow-unused-prefixes to false 2021-02-08 13:37:04 -08:00
lit.site.cfg.py.in Reland [CMake][NewPM] Move ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER into llvm/ 2020-12-01 14:00:32 -08:00
make_test_dirs.pl