New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: armv8-a clang doesn't filter out function comment #5964
Comments
Despite it being called 'comments', the filter actually only removes lines that are "just comments" So this is working as expected |
I don't need to be told the name of the label twice on the same line. I can add |
That's technically true, but since armv8-a clang added some visual clutter of the type our filters aim to clean - it makes since to extend them to this case now. No? |
Actually I'm not entirely sure:
but EOL comments say something about exhausting registers, like:
@partouf WDYT? Do these qualify as visual-noise that we wish to declutter by default? (or maybe provide a different option to filter out?) |
Describe the bug
If you compile the example C program
with armv8-a clang (any version I tried trunk and the oldest one) with the "Comments" filter enabled, it compiles to
that "
// @square(int)
" shouldn't be there. The comment filter is probably getting tripped up because it's on the same line as the label.Compare armv7-a clang:
Steps to reproduce
Expected behavior
Reproduction link
https://compiler-explorer.com/#g:!((g:!((g:!((h:codeEditor,i:(filename:'1',fontScale:14,fontUsePx:'0',j:1,lang:c%2B%2B,selection:(endColumn:2,endLineNumber:4,positionColumn:2,positionLineNumber:4,selectionStartColumn:1,selectionStartLineNumber:1,startColumn:1,startLineNumber:1),source:'//+Type+your+code+here,+or+load+an+example.%0Aint+square(int+num)+%7B%0A++++return+num+*+num%3B%0A%7D'),l:'5',n:'0',o:'C%2B%2B+source+%231',t:'0')),k:50,l:'4',n:'0',o:'',s:0,t:'0'),(g:!((h:compiler,i:(compiler:armv7-clang1101,filters:(b:'0',binary:'1',binaryObject:'1',commentOnly:'0',debugCalls:'1',demangle:'0',directives:'0',execute:'1',intel:'0',libraryCode:'0',trim:'1'),flagsViewOpen:'1',fontScale:14,fontUsePx:'0',j:1,lang:c%2B%2B,libs:!(),options:'',overrides:!(),selection:(endColumn:19,endLineNumber:8,positionColumn:19,positionLineNumber:8,selectionStartColumn:1,selectionStartLineNumber:1,startColumn:1,startLineNumber:1),source:1),l:'5',n:'0',o:'+armv7-a+clang+11.0.1+(Editor+%231)',t:'0')),k:50,l:'4',n:'0',o:'',s:0,t:'0')),l:'2',n:'0',o:'',t:'0')),version:4
Screenshots
Not applicable
Operating System
No response
Browser version
No response
The text was updated successfully, but these errors were encountered: