Code & text
Response-file argument tokens
Inspect quoted and escaped compiler arguments without running a command.
Your inputs
Start with an exampleYour result
Example resultHow it works
Follow LLVM’s response-file token rules: GNU-style backslashes escape the next character; Windows-style backslash runs and doubled double quotes follow the argument tokenizer. Export tokens and source spans.
The GNU example produces five arguments: one include path, one definition, one source filename, an unresolved @more.rsp and an empty argument.
Limits
UTF-8 text up to 2 MB and 20000 arguments. Spans use UTF-16 indices after a leading BOM is removed. Unclosed quotes consume through EOF with a diagnostic, matching the selected tokenizer. No argv[0] special case, shell/environment/glob expansion, @file fetch or command execution. Compiler-specific behavior can differ; MSVC cl does not support nested response files.