Details
- Reviewers
aaron.ballman - Commits
- rG8d018c79ee5f: Add srcloc output to clang-query
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
Thank you for this, it looks really useful!
clang-tools-extra/clang-query/Query.cpp | ||
---|---|---|
92 | ||
95 | It should be named Locs per the usual coding conventions. (I'll hold my nose on the use of auto here, but if it got spelled out since you're touching the line anyway, that would not be a terrible thing.) | |
97 | it -> Iter | |
104 | SourceLocations -> source locations ? | |
106 | CommonLoc and the type should definitely be spelled out. | |
107 | Scout | |
121 | it -> Iter | |
134 | SourceRanges -> source ranges ? | |
137–138 | Same here as above. Given how common this code seems to be with the first block of code, would it make sense to turn some of this code into a lambda? | |
150 | it -> Iter | |
163 | SourceRange -> source range ? | |
166–167 | More names to correct for conventions. Can you also spell out at least the location datatype? |