diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-10-21 21:13:56 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-10-21 21:13:56 +0000 |
commit | d18ea6642f4cf9ef2e0836355aab5f54a23863df (patch) | |
tree | c5594f57981cb15a25c8c5a7dcaad868015b30ee /lib/Frontend/CompilerInvocation.cpp | |
parent | 583d818adcdfbb239ea81ef73c33c837ec3c3980 (diff) | |
download | clang-d18ea6642f4cf9ef2e0836355aab5f54a23863df.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions