llvm-project/clang/lib/AST
Alexander Kornienko 637da9de4c Revert "[clang] template / auto deduction deduces common sugar"
This reverts commit d200db3863, which causes a
clang crash. See https://reviews.llvm.org/D111283#3785755

Test case for convenience:
```
template <typename T>
using P = int T::*;

template <typename T, typename... A>
void j(P<T>, T, A...);

template <typename T>
void j(P<T>, T);

struct S {
  int b;
};
void g(P<S> k, S s) { j(k, s); }
```
2022-09-13 12:18:07 +02:00
..
Interp [clang][Interp][NFC] Use constexpr if in OffsetHelper 2022-09-13 10:41:34 +02:00
APValue.cpp [clang] add APValue type check in `TryPrintAsStringLiteral` 2022-08-10 08:42:59 +08:00
ASTConcept.cpp [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
ASTConsumer.cpp
ASTContext.cpp Revert "[clang] template / auto deduction deduces common sugar" 2022-09-13 12:18:07 +02:00
ASTDiagnostic.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
ASTDumper.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
ASTImporter.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00
ASTImporterLookupTable.cpp [clang][ASTImporter] Update lookup table correctly at deduction guides. 2021-12-06 20:40:16 +01:00
ASTStructuralEquivalence.cpp Revert "Clang: fix AST representation of expanded template arguments." 2022-08-26 13:09:55 +02:00
ASTTypeTraits.cpp [clang] Add `ObjCProtocolLoc` to represent protocol references 2022-02-18 15:24:00 -05:00
AttrDocTable.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
AttrImpl.cpp [OpenMP][NFC] Use OMPInteropInfo in the OMPDeclareVariantAttr attribute 2022-08-22 10:41:16 -07:00
CMakeLists.txt [ODRHash diagnostics] Move `ODRDiagsEmitter` to libAST in separate files. NFC. 2022-09-07 14:40:37 -07:00
CXXABI.h [clang] Remove unused forward declarations (NFC) 2022-01-08 11:56:40 -08:00
CXXInheritance.cpp [clang] Use llvm::erase_if (NFC) 2021-10-17 13:50:29 -07:00
Comment.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
CommentBriefParser.cpp [AST] Remove an unnecessary continue (NFC) 2021-12-11 23:04:08 -08:00
CommentCommandTraits.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
CommentLexer.cpp [Clang][Comments] Parse `<img src=""/>` in doc comments correctly 2022-09-01 13:17:42 +01:00
CommentParser.cpp Resolve overload ambiguity on Mac OS when printing size_t in diagnostics 2022-05-14 12:37:36 +02:00
CommentSema.cpp Comment parsing: Allow inline commands to have 0 or more than 1 argument 2022-05-13 13:48:46 +02:00
ComparisonCategories.cpp [clang] Fix a few more comment typos to cycle bots 2021-09-20 20:06:03 -04:00
ComputeDependence.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-20 10:51:34 -07:00
DataCollection.cpp
Decl.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00
DeclBase.cpp [AST] [Modules] Introduce Decl::getNonTransparentDeclContext to handle exported friends 2022-08-12 11:50:35 +08:00
DeclCXX.cpp [Clang] Implement P0848 (Conditionally Trivial Special Member Functions) 2022-08-26 00:52:52 +03:00
DeclFriend.cpp
DeclGroup.cpp
DeclObjC.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00
DeclOpenMP.cpp
DeclPrinter.cpp Remove an unsued-variable warning, NFC. 2022-07-15 14:40:52 +02:00
DeclTemplate.cpp Start support for HLSL `RWBuffer` 2022-07-28 08:49:50 -05:00
DeclarationName.cpp [NFC][AST] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
Expr.cpp Use llvm::is_contained (NFC) 2022-08-27 09:53:11 -07:00
ExprCXX.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
ExprClassification.cpp [Clang] Implement __builtin_source_location. 2022-03-28 18:29:02 -04:00
ExprConcepts.cpp [clang] Remove redundant member initialization (NFC) 2022-01-02 10:20:23 -08:00
ExprConstant.cpp Rewording note note_constexpr_invalid_cast 2022-09-12 07:47:39 -04:00
ExprObjC.cpp [clang] NFC: refactor multiple implementations of getDecltypeForParenthesizedExpr 2021-07-28 23:27:43 +02:00
ExternalASTMerger.cpp [clang] Use llvm::erase_if (NFC) 2021-10-17 13:50:29 -07:00
ExternalASTSource.cpp
FormatString.cpp [clang][Sema] check default argument promotions for printf 2022-09-01 10:10:10 +08:00
FormatStringParsing.h
InheritViz.cpp
ItaniumCXXABI.cpp Change __builtin_sycl_unique_stable_name to just use an Itanium mangling 2021-09-28 06:41:03 -07:00
ItaniumMangle.cpp [clang] adds unary type transformations as compiler built-ins 2022-08-22 03:03:32 +00:00
JSONNodeDumper.cpp Revert "Clang: fix AST representation of expanded template arguments." 2022-08-26 13:09:55 +02:00
Linkage.h
Mangle.cpp [HLSL] Initial codegen for SV_GroupIndex 2022-08-25 11:17:54 -05:00
MicrosoftCXXABI.cpp [clang]Silence warning in MicrosoftCXXABI.cpp 2022-05-12 12:04:05 -04:00
MicrosoftMangle.cpp [X86][BF16] Add type mangling for Windows 2022-08-29 16:12:26 +08:00
NSAPI.cpp [Clang] Add __ibm128 type to represent ppc_fp128 2021-09-06 18:00:58 +08:00
NestedNameSpecifier.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
ODRDiagsEmitter.cpp [ODRHash diagnostics] Move `ODRDiagsEmitter` to libAST in separate files. NFC. 2022-09-07 14:40:37 -07:00
ODRHash.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00
OSLog.cpp [Clang] Rename StringLiteral::isAscii() => isOrdinary() [NFC] 2022-06-29 18:28:51 +02:00
OpenMPClause.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00
ParentMap.cpp Use DenseMap::lookup (NFC) 2021-12-17 18:19:25 -08:00
ParentMapContext.cpp [AST] Use std::apply to pop front of tuples. NFCI. 2022-08-25 00:03:08 +02:00
PrintfFormatString.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
QualTypeNames.cpp Preserve qualifiers when getting fully qualified type 2022-07-29 19:42:54 -07:00
Randstruct.cpp [randstruct] Randomize all elements of a record 2022-04-28 12:01:11 -07:00
RawCommentList.cpp [clang][extract-api] Add global record support 2022-03-16 15:13:55 -07:00
RecordLayout.cpp
RecordLayoutBuilder.cpp [PS4/PS5] Don't inherit base class alignment 2022-06-10 13:15:17 -07:00
ScanfFormatString.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
SelectorLocationsKind.cpp
Stmt.cpp [FPEnv] Allow CompoundStmt to keep FP options 2022-07-03 17:06:26 +07:00
StmtCXX.cpp [C++20] [Coroutines] Implement return value optimization for get_return_object 2022-02-16 13:38:00 +08:00
StmtIterator.cpp
StmtObjC.cpp [clang] Convert ObjCAtTryStmt to llvm::TrailingObjects 2021-10-27 08:57:05 -04:00
StmtOpenMP.cpp [OpenMP] Initial parsing and semantic support for 'parallel masked taskloop simd' construct 2022-07-01 08:57:15 -07:00
StmtPrinter.cpp [clangd] Avoid crash when printing call to string literal operator template 2022-09-05 03:42:08 -04:00
StmtProfile.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00
StmtViz.cpp
TemplateBase.cpp [clang] fix profiling of template arguments of template and declaration kind 2022-09-06 18:27:39 +02:00
TemplateName.cpp [AST] Consider QualifiedTemplateName in TemplateName::getAsUsingDecl(). 2022-04-27 14:16:19 +02:00
TextNodeDumper.cpp Revert "Clang: fix AST representation of expanded template arguments." 2022-08-26 13:09:55 +02:00
Type.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00
TypeLoc.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
TypePrinter.cpp [clang] adds unary type transformations as compiler built-ins 2022-08-22 03:03:32 +00:00
VTTBuilder.cpp
VTableBuilder.cpp [clang] Add a raw_ostream operator<< overload for QualType 2022-04-20 22:09:05 +01:00