aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineTraceMetrics.cpp
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-04-02 20:43:57 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-04-02 20:43:57 +0000
commiteeed39a58372135639c0b5918efb13ca552daec5 (patch)
tree320828cd2dfd70e37e60973c788deec4ccda2f39 /llvm/lib/CodeGen/MachineTraceMetrics.cpp
parent1afa68ed14ad9636dda390add3bf74e32b5c0303 (diff)
downloadllvm-eeed39a58372135639c0b5918efb13ca552daec5.zip
llvm-eeed39a58372135639c0b5918efb13ca552daec5.tar.gz
llvm-eeed39a58372135639c0b5918efb13ca552daec5.tar.bz2
Use 'auto' with 'new' expressions
For variable declarations initialized with new expressions, use 'auto' for the type specifier. The 'auto' replacement happens only when the type of the VarDecl exactly matches the type of the initializer and the VarDecl is *not* CV-qualified. The only case that is currently handled is if the pointer type of the VarDecl is itself CV qualified. Some improvements need to be made to Clang's TypeLoc information in order for other CV qualifier cases to be successfully handled. See the new test suite new_cv_failing.cpp for examples of usages that could be handled with such an improvement. Function pointers are, for now, not transformed until the identifier info can be extracted. Reviewer: klimek llvm-svn: 178575
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions