]> granicus.if.org Git - clang/commit
[Debug] Annotate compiler generated range-for loop variables.
authorMatt Davis <Matthew.Davis@sony.com>
Wed, 14 Feb 2018 21:22:11 +0000 (21:22 +0000)
committerMatt Davis <Matthew.Davis@sony.com>
Wed, 14 Feb 2018 21:22:11 +0000 (21:22 +0000)
commit06fcaea8ad23e9e2423d1050a80847838584ce54
treecbedad97fcf0e9a0146016d0d483c5f021f01ea4
parent3e5efa055bf4a738d69cc8f04ea2635436a9c1e1
[Debug] Annotate compiler generated range-for loop variables.

Summary:
This change aims to simplify debugging by annotating the range-for loop artificial variables (range, begin, end) with the scope depth.

Reviewers: rsmith, dblaikie

Reviewed By: dblaikie

Subscribers: dblaikie, cfe-commits

Tags: #debug-info

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325175 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Scope.h
lib/Sema/SemaStmt.cpp
test/CodeGenCXX/debug-info-range-for-var-names.cpp [new file with mode: 0644]
test/CodeGenCXX/debug-info-scope.cpp
test/CodeGenCXX/vla.cpp