llvm-project/clang/unittests/AST
Malcolm Parsons 57c09c8e23 [Sema] Store a SourceRange for multi-token builtin types
Summary:
clang-tidy's modernize-use-auto check uses the SourceRange of a
TypeLoc when replacing the type with auto.
This was producing the wrong result for multi-token builtin types
like long long:

-long long *ll = new long long();
+auto long *ll = new long long();

Reviewers: alexfh, hokein, rsmith, Prazek, aaron.ballman

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D25363

llvm-svn: 284885
2016-10-21 21:13:56 +00:00
..
ASTContextParentMapTest.cpp Prune away some unused using decls. NFC. 2016-06-08 15:34:36 +00:00
ASTImporterTest.cpp [ASTImporter] Implement some expression-related AST node import (part 2) 2016-09-28 10:16:56 +00:00
ASTTypeTraitsTest.cpp Reorder ASTNodeKind::AllKindInfo to match NodeKindId. 2016-04-14 00:47:40 +00:00
ASTVectorTest.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CMakeLists.txt Recommit r274348 and r274349. The Windows failures should be fixed. 2016-07-08 08:33:56 +00:00
CommentLexer.cpp unique_ptrify SourceManager::createFileID 2014-08-29 07:59:55 +00:00
CommentParser.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
DeclPrinterTest.cpp Rename AST node matchers to match the AST node names directly. Part of this rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxRecordDecl (that matches CXXRecordDecl). Also adds isStruct(), isUnion(), and isClass() narrowing matchers for RecordDecl objects. 2015-09-17 13:30:52 +00:00
DeclTest.cpp
EvaluateAsRValueTest.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
ExternalASTSourceTest.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
MatchVerifier.h Adding new AST matchers for: addrLabelExpr, atomicExpr, binaryConditionalOperator, designatedInitExpr, designatorCountIs, hasSyntacticForm, implicitValueInitExpr, labelDecl, opaqueValueExpr, parenListExpr, predefinedExpr, requiresZeroInitialization, and stmtExpr. 2016-03-09 17:11:51 +00:00
NamedDeclPrinterTest.cpp Adjust printQualifiedName to handle unscoped enums in a way similar to anonymous namespaces. 2015-11-09 16:45:17 +00:00
PostOrderASTVisitor.cpp Recommit r274348 and r274349. The Windows failures should be fixed. 2016-07-08 08:33:56 +00:00
SourceLocationTest.cpp [Sema] Store a SourceRange for multi-token builtin types 2016-10-21 21:13:56 +00:00
StmtPrinterTest.cpp Rename AST node matchers to match the AST node names directly. Part of this rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxRecordDecl (that matches CXXRecordDecl). Also adds isStruct(), isUnion(), and isClass() narrowing matchers for RecordDecl objects. 2015-09-17 13:30:52 +00:00