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 | 57c09c8e23ec30c61d31fbb89f97c27413c3e8fe (patch) | |
tree | 1f341355f3b7684916e1b203733f6cec3e53ca94 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8659d16631fdd1ff519a25d6867ddd9dbda8aea9 (diff) | |
download | bcm5719-llvm-57c09c8e23ec30c61d31fbb89f97c27413c3e8fe.tar.gz bcm5719-llvm-57c09c8e23ec30c61d31fbb89f97c27413c3e8fe.zip |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions