llvm-capstone/clang/test
Haojian Wu efa9aaad70 [clang] Suppress "follow-up" diagnostics on recovery call expressions.
Because of typo-correction, the AST can be transformed, and the transformed
AST is marginally useful for diagnostics purpose, the following
diagnostics usually do harm than good (easily cause confusions).

Given the following code:

```
void abcc();
void test() {
  if (abc());
  // diagnostic 1 (for the typo-correction): the typo is correct to `abcc()`, so the code is treate as `if (abcc())` in AST perspective;
  // diagnostic 2 (for mismatch type): we perform an type-analysis on `if`, discover the type is not match
}
```

The secondary diagnostic "convertable to bool" is likely bogus to users.

The idea is to use RecoveryExpr (clang's dependent mechanism) to preserve the
recovery behavior but suppress all follow-up diagnostics.

Differential Revision: https://reviews.llvm.org/D89946
2020-10-26 12:40:00 +01:00
..
Analysis Revert "[SYCL] Implement __builtin_unique_stable_name." 2020-10-12 01:10:09 -04:00
APINotes/Inputs/Frameworks/SomeKit.framework/Headers docs: add documentation describing API Notes 2020-10-05 18:29:13 +00:00
ARCMT
AST [clang] Suppress "follow-up" diagnostics on recovery call expressions. 2020-10-26 12:40:00 +01:00
ASTMerge [clang] Improve Serialization/Imporing/Dumping of APValues 2020-10-21 19:03:13 +02:00
clang-rename [clang-rename] Fix rename on variable templates. 2020-10-19 09:44:59 +02:00
ClangScanDeps
CodeCompletion [clang] Make signature help work with dependent args 2020-08-17 10:06:36 +02:00
CodeGen [Annotation] Allows annotation to carry some additional constant arguments. 2020-10-26 10:50:05 +01:00
CodeGenCoroutines Reapply "OpaquePtr: Add type to sret attribute" 2020-10-16 11:05:02 -04:00
CodeGenCUDA Revert "[HIP] Change default --gpu-max-threads-per-block value to 1024" 2020-10-15 17:25:55 -04:00
CodeGenCXX [Annotation] Allows annotation to carry some additional constant arguments. 2020-10-26 10:50:05 +01:00
CodeGenHIP
CodeGenObjC [CodeGen] Emit destructor calls to destruct non-trivial C struct 2020-10-23 14:46:17 -07:00
CodeGenObjCXX Reapply "OpaquePtr: Add type to sret attribute" 2020-10-16 11:05:02 -04:00
CodeGenOpenCL Don't permit array bound constant folding in OpenCL. 2020-10-20 16:52:28 -07:00
CodeGenOpenCLCXX Reapply "OpaquePtr: Add type to sret attribute" 2020-10-16 11:05:02 -04:00
CodeGenSYCL Revert "[SYCL] Implement __builtin_unique_stable_name." 2020-10-12 01:10:09 -04:00
Coverage
CoverageMapping [Coverage] Add empty line regions to SkippedRegions 2020-09-21 12:42:53 -07:00
CXX [clang] Enable support for #pragma STDC FENV_ACCESS 2020-10-25 06:46:25 -07:00
Driver [X86] Add a stub for Intel's alderlake. 2020-10-24 19:01:22 +02:00
FixIt
Format [clang-format] Add a test showing the current config file list parsing 2020-09-04 16:57:46 +01:00
Frontend [IR] add fn attr for no_stack_protector; prevent inlining on mismatch 2020-10-23 11:55:39 -07:00
Headers [ARM] Add missing target for Arm neon test case. 2020-10-01 00:32:33 +01:00
Import
Index Fix hidden-redecls.m test for some environments 2020-10-16 09:51:13 +02:00
Integration
InterfaceStubs
Layout [AIX] Support two itanium alignment LIT testcases for AIX using regex 2020-10-13 16:47:01 -04:00
Lexer [clang][feature] Add cxx_abi_relative_vtable feature 2020-10-08 10:30:54 -07:00
Misc [Annotation] Allows annotation to carry some additional constant arguments. 2020-10-26 10:50:05 +01:00
Modules Reapply "OpaquePtr: Add type to sret attribute" 2020-10-16 11:05:02 -04:00
OpenMP [OpenMP] Fixing OpenMP/driver.c failing on 32-bit hosts 2020-10-21 17:01:36 -04:00
Parser [Annotation] Allows annotation to carry some additional constant arguments. 2020-10-26 10:50:05 +01:00
PCH Add more test coverage for APValue serialization / deserialization and 2020-10-21 13:21:41 -07:00
Preprocessor [clang] Enable support for #pragma STDC FENV_ACCESS 2020-10-25 06:46:25 -07:00
Profile PR44406: Follow behavior of array bound constant folding in more recent versions of GCC. 2020-10-16 14:34:35 -07:00
Refactor
Rewriter
Sema [Annotation] Allows annotation to carry some additional constant arguments. 2020-10-26 10:50:05 +01:00
SemaCUDA Recommit "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-10-19 17:48:04 -04:00
SemaCXX [clang] Suppress "follow-up" diagnostics on recovery call expressions. 2020-10-26 12:40:00 +01:00
SemaObjC PR44406: Follow behavior of array bound constant folding in more recent versions of GCC. 2020-10-16 14:34:35 -07:00
SemaObjCXX [SemaObjC] Fix composite pointer type calculation for void* and pointer to lifetime qualified ObjC pointer type 2020-10-15 15:21:01 -04:00
SemaOpenCL [OpenCL] Remove unused extensions 2020-10-22 17:01:31 +01:00
SemaOpenCLCXX
SemaSYCL
SemaTemplate For P0732R2, P1907R1: ensure that template parameter objects don't refer 2020-10-24 22:11:43 -07:00
TableGen Recommit "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-10-19 17:48:04 -04:00
Templight
Tooling
Unit
utils/update_cc_test_checks [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
VFS
.clang-format
CMakeLists.txt Revert "Re-Re-land: [CodeView] Add full repro to LF_BUILDINFO record" 2020-08-17 15:49:18 -04:00
cxx-sections.data
lit.cfg.py [OpenMP] Fixing OpenMP/driver.c failing on 32-bit hosts 2020-10-21 17:01:36 -04:00
lit.site.cfg.py.in [CMake] Simplify CMake handling for zlib 2020-08-11 20:22:11 -07:00
make_test_dirs.pl
TestRunner.sh