diff options
| author | Dehao Chen <dehao@google.com> | 2015-10-30 05:07:15 +0000 |
|---|---|---|
| committer | Dehao Chen <dehao@google.com> | 2015-10-30 05:07:15 +0000 |
| commit | 49359bf3d7d3205cc7aa18b34685778f24d27104 (patch) | |
| tree | 1a30ef35a2df7d9d1bef25976d4e2cc03f1e5576 /clang/unittests/Format | |
| parent | fa425069771d03c4f7824c9ec9ce86ded10a0391 (diff) | |
| download | bcm5719-llvm-49359bf3d7d3205cc7aa18b34685778f24d27104.tar.gz bcm5719-llvm-49359bf3d7d3205cc7aa18b34685778f24d27104.zip | |
Recommit r251680 (also need to update clang test)
Update the discriminator assignment algorithm
* If a scope has already been assigned a discriminator, do not reassign a nested discriminator for it.
* If the file and line both match, even if the column does not match, we should assign a new discriminator for the stmt.
original code:
; #1 int foo(int i) {
; #2 if (i == 3 || i == 5) return 100; else return 99;
; #3 }
; i == 3: discriminator 0
; i == 5: discriminator 2
; return 100: discriminator 1
; return 99: discriminator 3
llvm-svn: 251689
Diffstat (limited to 'clang/unittests/Format')
0 files changed, 0 insertions, 0 deletions

