llvm-project/clang/lib/Sema
Sven van Haastregt 663e47a50f [OpenCL] Reduce emitting candidate notes for builtins
When overload resolution fails, clang emits a note diagnostic for each
candidate.  For OpenCL builtins this often leads to many repeated note
diagnostics with no new information.  Stop emitting such notes.

Update a test that was relying on counting those notes to check how
many builtins are available for certain extension configurations.

Differential Revision: https://reviews.llvm.org/D127961
2022-06-27 09:55:44 +01:00
..
AnalysisBasedWarnings.cpp [NFC] Replace not-null and not-isa check with a not-isa_and_nonnull 2022-05-10 13:34:07 -07:00
CMakeLists.txt Revert "wip" 2022-06-17 13:36:53 -05:00
CodeCompleteConsumer.cpp [clangd][ObjC] Filter ObjC method completions on the remaining selector 2022-05-20 11:49:16 -04:00
CoroutineStmtBuilder.h
DeclSpec.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
DelayedDiagnostic.cpp
IdentifierResolver.cpp Reland "[Clang][Sema] Fix invalid redefinition error in if/switch/for statement" 2022-04-21 01:18:58 +08:00
JumpDiagnostics.cpp [clang] Add range accessor for ObjCAtTryStmt catch_stmts and use it 2021-10-27 08:57:05 -04:00
MultiplexExternalSemaSource.cpp [clang][AST] Improve AST Reader/Writer memory footprint 2021-05-20 15:34:29 -07:00
OpenCLBuiltins.td [OpenCL] Fix atomic_fetch_add/sub half overloads 2022-06-17 09:53:45 +01:00
ParsedAttr.cpp [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
Scope.cpp Revert D119136 "[clang] Implement Change scope of lambda trailing-return-type" and its follow-up 2022-04-20 10:57:12 -07:00
ScopeInfo.cpp [clang] Disallow mixing SEH and Objective-C exceptions 2021-10-20 14:18:12 -04:00
Sema.cpp [OpenMP] Add diagnostic for unterminated 'omp [begin] declare target' 2022-05-25 10:34:07 -07:00
SemaAccess.cpp [C++2b] Implement multidimentional subscript operator 2022-02-08 12:10:47 -05:00
SemaAttr.cpp [MSVC] Add initial support for MSVC pragma optimize 2022-06-24 08:03:42 -07:00
SemaAvailability.cpp [clang] Don't use Optional::getValue (NFC) 2022-06-20 22:59:26 -07:00
SemaCUDA.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
SemaCXXScopeSpec.cpp [clang][sema] Provide better diagnostic for missing template arguments 2022-06-15 16:06:06 +02:00
SemaCast.cpp [randstruct] Add randomize structure layout support 2022-04-09 13:15:36 -07:00
SemaChecking.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
SemaCodeComplete.cpp Revert "Don't use Optional::hasValue (NFC)" 2022-06-25 11:56:50 -07:00
SemaConcept.cpp [Sema] Fix assertion failure when instantiating requires expression 2022-06-23 16:20:30 +02:00
SemaConsumer.cpp
SemaCoroutine.cpp [NFC] [Coroutines] Add test for ambiguous allocation functions in 2022-06-06 14:23:35 +08:00
SemaDecl.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
SemaDeclAttr.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
SemaDeclCXX.cpp [Concepts] Implement overload resolution for destructors (P0848) 2022-06-19 00:30:37 +03:00
SemaDeclObjC.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-20 10:51:34 -07:00
SemaExceptionSpec.cpp [OpenMP] Initial parsing and sema support for 'masked taskloop' construct 2022-06-24 10:00:08 -07:00
SemaExpr.cpp [clang] Call *set::insert without checking membership first (NFC) 2022-06-18 10:41:26 -07:00
SemaExprCXX.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
SemaExprMember.cpp Add some helpers to better check Scope's kind. NFC 2022-04-16 11:31:40 +08:00
SemaExprObjC.cpp [clang] Fix bugprone argument comments (NFC) 2022-01-09 00:19:49 -08:00
SemaFixItUtils.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaInit.cpp Fix an unused-variable warning in release build, NFC. 2022-06-21 20:52:07 +02:00
SemaLambda.cpp [clang] Don't use Optional::getValue (NFC) 2022-06-20 22:59:26 -07:00
SemaLookup.cpp [NFC] follow up code cleanup after D123837 2022-05-10 10:01:06 +08:00
SemaModule.cpp [C++20][Modules] Remove an empty statement [NFC]. 2022-04-11 10:06:23 +01:00
SemaObjCProperty.cpp [Clang][Sema] Fix attribute mismatch warning for ObjC class properties 2022-01-11 12:10:18 +00:00
SemaOpenMP.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
SemaOverload.cpp [OpenCL] Reduce emitting candidate notes for builtins 2022-06-27 09:55:44 +01:00
SemaPseudoObject.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaSYCL.cpp [SYCL] Diagnose uses of zero length arrays 2021-12-29 15:30:18 +03:00
SemaStmt.cpp clang: Tweak behaviour of warn_empty_while_body and warn_empty_if_body 2022-06-24 02:40:25 +02:00
SemaStmtAsm.cpp Stop wrapping GCCAsmStmts inside StmtExprs to destruct temporaries 2022-06-17 17:28:00 -07:00
SemaStmtAttr.cpp [clang][parse] Move source range into ParsedAttibutesView 2022-03-24 08:11:57 +01:00
SemaTemplate.cpp [clang] Don't use Optional::getValue (NFC) 2022-06-20 22:59:26 -07:00
SemaTemplateDeduction.cpp Don't use Optional::hasValue (NFC) 2022-06-20 20:05:16 -07:00
SemaTemplateInstantiate.cpp [NFC] Add parentheses around && within || to avoid warning 2022-06-27 14:44:10 +08:00
SemaTemplateInstantiateDecl.cpp Revert "Don't use Optional::hasValue (NFC)" 2022-06-25 11:56:50 -07:00
SemaTemplateVariadic.cpp Use range based for loop in Sema::CheckParameterPacksForExpansion. NFC 2022-04-22 13:31:31 +08:00
SemaType.cpp [Sema] Remove unused function after 8c7b64b5ae 2022-06-15 12:20:44 +02:00
TreeTransform.h [OpenMP] Initial parsing and sema support for 'masked taskloop' construct 2022-06-24 10:00:08 -07:00
TypeLocBuilder.cpp
TypeLocBuilder.h
UsedDeclVisitor.h [HIP][OpenMP] Fix assertion in deferred diag 2021-10-25 11:07:40 -04:00