Skip to content

[clang] Rename some variables with stale names #165346

@localspook

Description

@localspook

Commit bcd0350 renamed DeclaratorInfo to TypeSourceInfo. This left behind some cases like:

TypeSourceInfo *DI;

Where the variable name is now meaningless. I was quite confused the first time I stumbled into one of these. These variables should be renamed; something simple like replacing DI with TSI will work just fine.

Doing a

git grep -n 'TypeSourceInfo.*DI'

should find most of them (I see 33 hits running it locally).

Note: if you want to take on this issue, it's a good idea to post a comment saying you're looking into it, but you don't need to wait for anyone's approval to get started; just go for it!

Metadata

Metadata

Assignees

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"code-cleanupgood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions