compiler-explorer / compiler-explorer/compiler-explorer
[REQUEST]: map string constants to source code
- Dominant language
- TypeScript
- Stars
- 19.1k
- Forks
- 2.1k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 67
Description
When I put my cursor in `"hello world\n"` here in [this code](https://godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(filename:'1',fontScale:14,fontUsePx:'0',j:1,lang:___c,selection:(endColumn:1,endLineNumber:5,positionColumn:1,positionLineNumber:5,selectionStartColumn:1,selectionStartLineNumber:5,startColumn:1,startLineNumber:5),source:'%23include+%3Cstdio.h%3E%0Aint+main(void)+%7B%0A++++puts(%22helo+world%5Cn%22)%3B%0A%7D%0A'),l:'5',n:'1',o:'C+source+%231',t:'0')),k:49.1027383093643,l:'4',n:'0',o:'',s:0,t:'0'),(g:!((h:compiler,i:(compiler:armv8-cclang-trunk,filters:(b:'0',binary:'1',binaryObject:'1',commentOnly:'0',debugCalls:'1',demangle:'0',directives:'0',execute:'1',intel:'0',libraryCode:'0',trim:'1',verboseDemangling:'0'),flagsViewOpen:'1',fontScale:14,fontUsePx:'0',j:2,lang:___c,libs:!(),options:'',overrides:!(),selection:(endColumn:1,endLineNumber:1,positionColumn:1,positionLineNumber:1,selectionStartColumn:1,selectionStartLineNumber:1,startColumn:1,startLineNumber:1),source:1),l:'5',n:'0',o:'+armv8-a+clang+(trunk)+(Editor+%231)',t:'0')),k:50.897261690635716,l:'4',n:'0',o:'',s:0,t:'0')),l:'2',n:'0',o:'',t:'0')),version:4), it should highlight the string in the source code and vice-versa when I put my cursor in `"hello world\n"` in the C code it should highlight it in the assembly. Currently, neither works.
This is probably a feature request issue for LLVM
Contributor guide
Assessment
This issue has not been assessed yet.