Allow single-quoted strings and double-quoted character values, as well as doubled-quote escaping.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This is missing tests for almost all of the functionality added in this patch ('asdf''''jkl' -> asdf''jkl but "asdf''''jkl" -> asdf''''jkl, similar for with ' and " swapped, and the single-char case).
llvm/lib/MC/MCParser/AsmLexer.cpp | ||
---|---|---|
596 | put a return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart)); here, and leave the rest of the function unmodified |
llvm/test/tools/llvm-ml/strings.test | ||
---|---|---|
15 ↗ | (On Diff #302665) | Correct - null termination has to be manually added by passing a zero initializer after the string. (e.g., https://stackoverflow.com/q/19033872) |
put a return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart)); here, and leave the rest of the function unmodified