llvm-project/clang/lib/Sema
Alex Lorenz a43d1aa852 [clang] Make 'align-mismatch' warning work without an associated function declaration
This change fixes a crash where a NULL fd was used to emit a diagnostic.
Instead of crashing, just avoid printing the declaration name when there's no
associated function declaration.

Differential Revision: https://reviews.llvm.org/D109402
2021-10-29 13:39:16 -07:00
..
AnalysisBasedWarnings.cpp Use llvm::any_of and llvm::none_of (NFC) 2021-10-24 17:35:33 -07:00
CMakeLists.txt [clang] Make libBasic not depend on MC 2021-04-28 12:16:22 -04:00
CodeCompleteConsumer.cpp [CodeComplete] Basic code completion for attribute names. 2021-08-12 23:49:10 +02:00
CoroutineStmtBuilder.h
DeclSpec.cpp [Clang] Enable _Complex __ibm128 type 2021-10-09 10:48:44 +08:00
DelayedDiagnostic.cpp
IdentifierResolver.cpp
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] Add atomic_half type builtins 2021-10-12 10:45:30 +01:00
ParsedAttr.cpp [Clang] Add an explicit makeArrayRef to appease gcc 5.4. 2021-08-13 09:42:28 -07:00
Scope.cpp
ScopeInfo.cpp [clang] Disallow mixing SEH and Objective-C exceptions 2021-10-20 14:18:12 -04:00
Sema.cpp Reland [clang] Check unsupported types in expressions 2021-10-15 13:55:36 +03:00
SemaAccess.cpp [Sema] Use llvm::is_contained (NFC) 2021-10-11 11:06:44 -07:00
SemaAttr.cpp Relax assert in ExprConstant to a return None. 2021-10-21 13:09:56 +01:00
SemaAvailability.cpp [clang] Convert a few loops to for-each 2021-10-11 14:24:32 -04:00
SemaCUDA.cpp [HIP] Warn capture this pointer in device lambda 2021-09-08 13:45:26 -04:00
SemaCXXScopeSpec.cpp [clang] Fix a few comment more typos to cycle bots 2021-09-20 19:42:49 -04:00
SemaCast.cpp [clang] p0388 conversion to incomplete array 2021-10-12 07:35:20 -07:00
SemaChecking.cpp [clang] Make 'align-mismatch' warning work without an associated function declaration 2021-10-29 13:39:16 -07:00
SemaCodeComplete.cpp PR50644: Do not warn on a declaration of `operator"" _foo`. 2021-10-06 15:13:05 -07:00
SemaConcept.cpp [clang] Fix a few comment more typos to cycle bots 2021-09-20 19:42:49 -04:00
SemaConsumer.cpp
SemaCoroutine.cpp [clang] don't mark as Elidable CXXConstruct expressions used in NRVO 2021-09-21 21:41:20 +02:00
SemaDecl.cpp Fix consteval crash when transforming 'this' expressions 2021-10-27 11:25:07 -04:00
SemaDeclAttr.cpp format_arg attribute should allow instancetype in NSString definition 2021-10-28 20:25:00 -07:00
SemaDeclCXX.cpp [clang] Use llvm::{count,count_if,find_if,all_of,none_of} (NFC) 2021-10-25 09:14:45 -07:00
SemaDeclObjC.cpp [clang] Fix a few comment more typos to cycle bots 2021-09-20 19:42:49 -04:00
SemaExceptionSpec.cpp [OpenMP] Initial parsing/sema for the 'omp loop' construct 2021-10-28 08:26:43 -07:00
SemaExpr.cpp [Sema, StaticAnalyzer] Use StringRef::contains (NFC) 2021-10-20 08:02:36 -07:00
SemaExprCXX.cpp Relax assert in ExprConstant to a return None. 2021-10-21 13:09:56 +01:00
SemaExprMember.cpp [clang] fix typo correction not looking for candidates in base classes. 2021-10-16 00:35:22 +02:00
SemaExprObjC.cpp Cleanup identifier parsing; NFC 2021-09-14 09:12:22 -04:00
SemaFixItUtils.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaInit.cpp [Sema] Use llvm::is_contained (NFC) 2021-10-11 11:06:44 -07:00
SemaLambda.cpp Implement if consteval (P1938) 2021-10-05 08:04:14 -04:00
SemaLookup.cpp [modules] Fix tracking ObjCInterfaceType decl when there are multiple definitions. 2021-10-21 12:08:06 -07:00
SemaModule.cpp Change Module::ASTFile and ModuleFile::File => Optional<FileEntryRef>, NFC 2020-11-02 15:11:51 -05:00
SemaObjCProperty.cpp [clang] don't mark as Elidable CXXConstruct expressions used in NRVO 2021-09-21 21:41:20 +02:00
SemaOpenMP.cpp [OpenMP] Initial parsing/sema for the 'omp loop' construct 2021-10-28 08:26:43 -07:00
SemaOverload.cpp [Sema] haveSameParameterTypes - replace repeated isNull() test with assertions 2021-10-18 12:36:44 +01:00
SemaPseudoObject.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaSYCL.cpp Fix a comment in SemaSYCL to make sure I can commit 2021-10-18 10:12:28 -07:00
SemaStmt.cpp [clang] Disallow mixing SEH and Objective-C exceptions 2021-10-20 14:18:12 -04:00
SemaStmtAsm.cpp Fix assertion when passing function into inline asm's input operand 2021-08-27 13:39:41 -04:00
SemaStmtAttr.cpp Implemented [[clang::musttail]] attribute for guaranteed tail calls. 2021-04-15 17:12:21 -07:00
SemaTemplate.cpp [clang] deprecate frelaxed-template-template-args, make it on by default 2021-10-27 22:48:27 +02:00
SemaTemplateDeduction.cpp Relax assert in ExprConstant to a return None. 2021-10-21 13:09:56 +01:00
SemaTemplateInstantiate.cpp [Sema] Use llvm::is_contained (NFC) 2021-10-11 11:06:44 -07:00
SemaTemplateInstantiateDecl.cpp [OPENMP51]Initial parsing/sema for append_args clause for 'declare variant' 2021-10-25 09:38:50 -07:00
SemaTemplateVariadic.cpp Use llvm::any_of and llvm::none_of (NFC) 2021-10-24 17:35:33 -07:00
SemaType.cpp [AArch64][Driver][SVE] Allow -msve-vector-bits=<n>+ syntax to mean no maximum vscale 2021-10-25 11:10:52 +00:00
TreeTransform.h [OpenMP] Initial parsing/sema for the 'omp loop' construct 2021-10-28 08:26:43 -07:00
TypeLocBuilder.cpp
TypeLocBuilder.h
UsedDeclVisitor.h [HIP][OpenMP] Fix assertion in deferred diag 2021-10-25 11:07:40 -04:00