llvm-project/clang/unittests
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
..
AST [Sema] Store a SourceRange for multi-token builtin types 2016-10-21 21:13:56 +00:00
ASTMatchers [ASTMatcher] Clarify isStaticStorageClass and hasStaticStorageDuration documents. 2016-09-27 07:53:20 +00:00
Analysis CFGTests: Update libdeps. 2016-07-08 17:06:27 +00:00
Basic Turn FileManager DirectoryEntry::Name from raw pointer to StringRef (NFC) 2016-10-11 07:31:29 +00:00
CodeGen Make sure the LLVMContext outlive the CompilerInstance 2016-04-14 05:37:41 +00:00
Driver [Driver] Set the default driver mode based on the executable. 2016-08-12 17:47:52 +00:00
Format clang-format: [JS] Fix template string ASI. 2016-10-21 05:11:38 +00:00
Frontend [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
Lex [Lexer] Don't merge macro args from different macro files 2016-05-19 23:44:02 +00:00
Rewrite Remove autoconf support 2016-01-26 21:30:40 +00:00
Sema [Sema] Allow an external sema source to handle delayed typo corrections. 2016-05-19 10:46:10 +00:00
StaticAnalyzer Remove autoconf support 2016-01-26 21:30:40 +00:00
Tooling Try to fix windows bot file path style failure caused by r284219. 2016-10-14 10:10:26 +00:00
libclang Fixed more signed/unsigned mismatch warnings introduced in my change at r279076 2016-08-18 20:56:48 +00:00
CMakeLists.txt CFGBuilder: Fix crash when visiting a range-based for over a dependent type 2016-07-08 10:50:51 +00:00