Page MenuHomePhabricator

[Clang] Added method getTokenLocations to StringLiteral
Needs ReviewPublic

Authored by njames93 on Jan 28 2020, 3:51 AM.

Details

Reviewers
rsmith
Summary

Adds a helper method ArrayRef<SourceLocation> getTokenLocations() const to clang::StringLiteral for easier analysis on the pieces that make up a string.

Diff Detail

Event Timeline

njames93 created this revision.Jan 28 2020, 3:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 28 2020, 3:51 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
njames93 edited the summary of this revision. (Show Details)Jan 28 2020, 3:52 AM
njames93 edited the summary of this revision. (Show Details)

Unit tests: pass. 62255 tests passed, 0 failed and 827 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.