llvm-project/clang/lib/Sema
Richard Smith 0a088ead85 Improve diagnostics for missing import / #include of module.
Fix a few bugs where we would fail to properly determine header to
module correspondence when determining whether to suggest a #include or
import, and suggest a #include more often in language modes where there
is no import syntax. Generally, if the target is in a header with
include guards or #pragma once, we should suggest either #including or
importing that header, and not importing a module that happens to
textually include it.

In passing, improve the notes we attach to the corresponding
diagnostics: calling an entity that we couldn't see "previous" is
confusing.
2020-04-28 18:41:14 -07:00
..
AnalysisBasedWarnings.cpp Revert "[clang] detect switch fallthrough marked by a comment (PR43465)" 2020-03-02 22:33:25 +01:00
CMakeLists.txt Add SemaTemplateDeduction.cpp to /bigobj 2020-04-17 16:33:07 -07:00
CodeCompleteConsumer.cpp Remove llvm::Error include form Diagnostic.h 2020-04-06 10:42:17 -07:00
CoroutineStmtBuilder.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclSpec.cpp Reland Implement _ExtInt as an extended int type specifier. 2020-04-17 10:45:48 -07:00
DelayedDiagnostic.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IdentifierResolver.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
JumpDiagnostics.cpp [CodeGen] Emit destructor calls to destruct compound literals 2020-03-10 14:08:28 -07:00
MultiplexExternalSemaSource.cpp recommit 1b978ddba0 [CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese 2020-03-23 12:09:07 -04:00
OpenCLBuiltins.td [OpenCL] Add sub-group builtin functions 2020-04-02 13:18:56 +01:00
ParsedAttr.cpp Const-initialize ParsedAttrInfos 2020-03-28 19:04:53 +01:00
Scope.cpp Un-revert "[coroutines][PR40978] Emit error for co_yield within catch block" 2019-03-25 00:53:10 +00:00
ScopeInfo.cpp PR42104: Support instantiations of lambdas that implicitly capture 2019-06-04 17:17:20 +00:00
Sema.cpp [NFC] Rename Sema.FPFeatures to CurFPFeatures and accessor to getCurFPFeatures 2020-04-16 08:50:14 -07:00
SemaAccess.cpp [c++20] Delete defaulted comparison functions if they would invoke an 2019-12-10 19:28:30 -08:00
SemaAttr.cpp [NFC] Rename Sema.FPFeatures to CurFPFeatures and accessor to getCurFPFeatures 2020-04-16 08:50:14 -07:00
SemaAvailability.cpp Prune TargetInfo.h include from ParsedAttr.h, NFC 2020-03-11 20:47:11 -07:00
SemaCUDA.cpp recommit 1b978ddba0 [CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese 2020-03-23 12:09:07 -04:00
SemaCXXScopeSpec.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SemaCast.cpp [Sema][SVE] Allow casting SVE types to themselves in C 2020-03-25 10:52:43 +00:00
SemaChecking.cpp [AMDGPU] Expose llvm fence instruction as clang intrinsic 2020-04-27 09:39:03 +05:30
SemaCodeComplete.cpp [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
SemaConcept.cpp [Concepts] Add missing CXXThisScope to function template constraint substitution 2020-02-05 01:10:35 +02:00
SemaConsumer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SemaCoroutine.cpp [coroutines] Don't build promise init with no args 2020-04-02 21:44:54 -04:00
SemaDecl.cpp [AST] Preserve the invalid initializer for auto VarDecl. 2020-04-27 10:25:36 +02:00
SemaDeclAttr.cpp [CMSE] Clear padding bits of struct/unions/fp16 passed by value 2020-04-28 17:05:58 +01:00
SemaDeclCXX.cpp [NFC] Correct spelling of "ambiguous" 2020-04-28 14:51:37 -07:00
SemaDeclObjC.cpp [ObjC generics] Fix not inheriting type bounds in categories/extensions. 2020-04-24 16:32:28 -07:00
SemaExceptionSpec.cpp [OPENMP50]Add initial support for OpenMP 5.0 iterator. 2020-04-02 08:28:15 -04:00
SemaExpr.cpp [CMSE] Clear padding bits of struct/unions/fp16 passed by value 2020-04-28 17:05:58 +01:00
SemaExprCXX.cpp C++2a -> C++20 in some identifiers; NFC. 2020-04-21 15:37:19 -04:00
SemaExprMember.cpp Resolve exception specifications after marking the corresponding 2019-12-15 22:02:30 -08:00
SemaExprObjC.cpp [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
SemaFixItUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SemaInit.cpp Rename warning identifiers from cxx2a to cxx20; NFC. 2020-04-22 14:31:13 -04:00
SemaLambda.cpp Rename warning identifiers from cxx2a to cxx20; NFC. 2020-04-22 14:31:13 -04:00
SemaLookup.cpp Improve diagnostics for missing import / #include of module. 2020-04-28 18:41:14 -07:00
SemaModule.cpp [DeclCXX] Remove unknown external linkage specifications 2019-11-21 15:23:05 +02:00
SemaObjCProperty.cpp [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
SemaOpenMP.cpp [OPENMP]Fix capturing of global variables in OpenMP regions. 2020-04-09 10:36:09 -04:00
SemaOverload.cpp [NFC] Correct spelling of "ambiguous" 2020-04-28 14:51:37 -07:00
SemaPseudoObject.cpp [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
SemaStmt.cpp [CMSE] Clear padding bits of struct/unions/fp16 passed by value 2020-04-28 17:05:58 +01:00
SemaStmtAsm.cpp Support output constraints on "asm goto" 2020-02-24 18:51:29 -08:00
SemaStmtAttr.cpp [NFCI]Create CommonAttributeInfo Type as base type of *Attr and ParsedAttr. 2019-09-13 17:39:31 +00:00
SemaTemplate.cpp C++2a -> C++20 in some identifiers; NFC. 2020-04-21 15:37:19 -04:00
SemaTemplateDeduction.cpp Reland Implement _ExtInt as an extended int type specifier. 2020-04-17 10:45:48 -07:00
SemaTemplateInstantiate.cpp PR45000: Let Sema::SubstParmVarDecl handle default args of lambdas in initializers 2020-04-22 22:37:21 +02:00
SemaTemplateInstantiateDecl.cpp PR45000: Let Sema::SubstParmVarDecl handle default args of lambdas in initializers 2020-04-22 22:37:21 +02:00
SemaTemplateVariadic.cpp Reland Implement _ExtInt as an extended int type specifier. 2020-04-17 10:45:48 -07:00
SemaType.cpp Re-land "[MS] Fix assert handling enum forward decls in hasVisibleDefinition" 2020-04-23 16:22:01 -07:00
TreeTransform.h PR45000: Let Sema::SubstParmVarDecl handle default args of lambdas in initializers 2020-04-22 22:37:21 +02:00
TypeLocBuilder.cpp [NFC] avoid AlignedCharArray in clang 2019-07-29 23:12:48 +00:00
TypeLocBuilder.h [NFC] avoid AlignedCharArray in clang 2019-07-29 23:12:48 +00:00
UsedDeclVisitor.h recommit 1b978ddba0 [CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese 2020-03-23 12:09:07 -04:00